.contact-hero {
    padding: 6rem 1rem 4rem;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                url('/assets/images/contact-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    transform: none;
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
}

.contact-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-container {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-form-container h2 {
    color: #AB2138;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.form-subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    gap: 1rem;
}

.form-group.half {
    width: 100%;
}

.form-group.half > div {
    flex: 1;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    background: white;
    color: #333;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #AB2138;
    box-shadow: 0 0 0 3px rgba(171, 33, 56, 0.1);
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.required {
    color: #AB2138;
    margin-left: 2px;
    transition: color 0.3s ease;
}

.submit-btn {
    background: #AB2138;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background: #8a1a2c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(171, 33, 56, 0.3);
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-info-card h2 {
    color: #AB2138;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #AB2138;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.contact-text h4 {
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-text p {
    color: #666;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.contact-text a {
    color: #AB2138;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #8a1a2c;
    text-decoration: underline;
}

.business-hours {
    margin-top: 1rem;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: border-color 0.3s ease;
}

.hours-list li:last-child {
    border-bottom: none;
}

.day {
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

.time {
    color: #666;
    transition: color 0.3s ease;
}

.map-container {
    margin-top: 4rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}


.dark-mode .contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), 
                url('/assets/images/contact-bg.jpg');
}

.dark-mode .contact-hero h1 {
    color: white;
}

.dark-mode .contact-hero p {
    color: rgba(255, 255, 255, 0.9);
}

.dark-mode .contact-form-container,
.dark-mode .contact-info-card {
    background: #2d3748;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark-mode .contact-form-container h2,
.dark-mode .contact-info-card h2,
.dark-mode .required {
    color: #e63946;
}

.dark-mode .form-subtitle,
.dark-mode .contact-text p,
.dark-mode .time {
    color: #a0a0a0;
}

.dark-mode .form-field label,
.dark-mode .contact-text h4,
.dark-mode .day {
    color: #d0d0d0;
}

.dark-mode .form-field input,
.dark-mode .form-field select,
.dark-mode .form-field textarea {
    background: #1a202c;
    border-color: #4a5568;
    color: #e0e0e0;
}

.dark-mode .form-field input:focus,
.dark-mode .form-field select:focus,
.dark-mode .form-field textarea:focus {
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.dark-mode .form-field input::placeholder,
.dark-mode .form-field textarea::placeholder {
    color: #888;
}

.dark-mode .contact-icon {
    background: #e63946;
}

.dark-mode .contact-text a {
    color: #e63946;
}

.dark-mode .contact-text a:hover {
    color: #ff6b7a;
}

.dark-mode .hours-list li {
    border-bottom-color: #4a5568;
}

.dark-mode .submit-btn {
    background: #e63946;
}

.dark-mode .submit-btn:hover {
    background: #d62839;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.dark-mode .map-container {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}


@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-container,
    .contact-info-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 5rem 1rem 3rem;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .form-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-group.half > div {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-hero p {
        font-size: 1rem;
    }
    
    .contact-form-container,
    .contact-info-card {
        padding: 1.5rem;
    }
    
    .contact-form-container h2,
    .contact-info-card h2 {
        font-size: 1.8rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .map-container iframe {
        height: 300px;
    }
}



/* Overlay */
.window-overlay {
    display: none;
    position: fixed;  /* مهم */
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;  /* کمتر از پنجره ولی بالاتر از محتوا */
}

/* Window */
.custom-window {
    display: none;
    position: fixed;  /* مهم */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 100000; /* بالاتر از همه */
    font-family: 'Montserrat', sans-serif;
    user-select: none;
    animation: slideDown 0.3s ease;
}

/* Header */
.custom-window-header {
    background: #990606;
    color: #fff;
    padding: 10px 15px;
    font-weight: bold;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window-close {
    cursor: pointer;
    font-size: 20px;
}

/* Body */
.custom-window-body {
    padding: 20px;
    color: #333;
    text-align: center;
}

/* Footer */
.custom-window-footer {
    padding: 10px 20px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.custom-window-footer .submit-btn {
    width: 100%;
}

@keyframes slideDown {
    from { transform: translate(-50%, -60%); opacity: 0; }
    to { transform: translate(-50%, -50%); opacity: 1; }
}
