/* ============================================================
   CONTACT PAGE - Modern Minimal Design
   ============================================================ */

/* --- Contact Hero --- */
.contact-hero {
    position: relative;
    padding: 160px 0 80px;
    text-align: center;
    background: #ffffff;
    overflow: hidden;
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(5, 150, 105, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(5, 150, 105, 0.04) 0%, transparent 50%);
    z-index: 0;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(5, 150, 105, 0.08);
    border-radius: 24px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #059669;
}

.contact-hero-badge .badge-dot {
    width: 6px;
    height: 6px;
    background: #059669;
    border-radius: 50%;
    animation: contact-pulse 2s ease-in-out infinite;
}

@keyframes contact-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.contact-hero h1 {
    font-size: 38px;
    font-weight: 800;
    color: #111827;
    line-height: 1.5;
    margin-bottom: 16px;
}

.contact-hero h1 span {
    color: #059669;
}

.contact-hero p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.8;
    max-width: 480px;
    margin: 0 auto;
}


/* --- Contact Info Cards --- */
.contact-cards-section {
    position: relative;
    padding: 0 0 60px;
    background: #ffffff;
}

.contact-cards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.contact-info-card {
    background: #f9fafb;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #f3f4f6;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    border-color: rgba(5, 150, 105, 0.15);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 150, 105, 0.08);
    border-radius: 14px;
    margin: 0 auto 18px;
    color: #059669;
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-card-icon {
    background: #059669;
    color: #ffffff;
    transform: scale(1.05);
}

.contact-info-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.contact-info-card p {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 14px;
}

.contact-card-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #059669;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-card-link:hover {
    color: #047857;
}

.contact-card-address {
    font-size: 13px;
    color: #4b5563;
    font-weight: 500;
    line-height: 1.6;
}


/* --- Contact Form & Map --- */
.contact-main-section {
    padding: 60px 0 80px;
    background: #f9fafb;
}

.contact-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Form Wrapper */
.contact-form-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 36px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.contact-form-header {
    margin-bottom: 32px;
    text-align: right;
}

.form-badge {
    display: inline-block;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #059669;
    background: rgba(5, 150, 105, 0.08);
    border-radius: 8px;
    margin-bottom: 14px;
}

.contact-form-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
}

.contact-form-header p {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.7;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.form-field {
    margin-bottom: 18px;
}

.form-row-2 .form-field {
    margin-bottom: 0;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    text-align: right;
}

.field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.field-wrapper i {
    position: absolute;
    right: 14px;
    font-size: 14px;
    color: #d1d5db;
    pointer-events: none;
    transition: color 0.2s ease;
}

.field-wrapper input,
.field-wrapper select,
.field-wrapper textarea {
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-size: 14px;
    font-family: 'Vazir', 'Vazirmatn', sans-serif;
    color: #374151;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.field-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.field-wrapper-textarea {
    align-items: flex-start;
}

.field-wrapper-textarea i {
    top: 14px;
}

.field-wrapper textarea {
    resize: vertical;
    min-height: 130px;
}

.field-wrapper input:focus,
.field-wrapper select:focus,
.field-wrapper textarea:focus {
    background: #ffffff;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.08);
}

.field-wrapper input:focus + i,
.field-wrapper:focus-within i {
    color: #059669;
}

.field-wrapper input::placeholder,
.field-wrapper textarea::placeholder {
    color: #d1d5db;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Vazir', 'Vazirmatn', sans-serif;
    color: #ffffff;
    background: #059669;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
}

.contact-submit-btn:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.25);
}

.contact-submit-btn svg {
    transition: transform 0.3s ease;
}

.contact-submit-btn:hover svg {
    transform: translate(-3px, -3px);
}

/* Map Wrapper */
.contact-map-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 560px;
    background: #e5e7eb;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.contact-map-inner {
    position: absolute;
    inset: 0;
}

.contact-map-inner iframe {
    display: block;
}

.map-overlay-card {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 280px;
}

.map-card-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 10px;
    color: #059669;
}

.map-card-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.map-card-text span {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}


/* --- FAQ Section --- */
.contact-faq-section {
    padding: 80px 0 100px;
    background: #ffffff;
}

.contact-faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-faq-header {
    text-align: center;
    margin-bottom: 48px;
}

.faq-badge {
    display: inline-block;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #059669;
    background: rgba(5, 150, 105, 0.08);
    border-radius: 8px;
    margin-bottom: 14px;
}

.contact-faq-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #f9fafb;
    border-radius: 14px;
    border: 1px solid #f3f4f6;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(5, 150, 105, 0.15);
}

.faq-item.open {
    border-color: rgba(5, 150, 105, 0.2);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.06);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Vazir', 'Vazirmatn', sans-serif;
    color: #111827;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: right;
    gap: 16px;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #059669;
}

.faq-question svg {
    flex-shrink: 0;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
    color: #059669;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.9;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-main-grid {
        grid-template-columns: 1fr;
    }

    .contact-map-wrapper {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 130px 0 50px;
    }

    .contact-hero h1 {
        font-size: 28px;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row-2 .form-field {
        margin-bottom: 18px;
    }

    .contact-form-wrapper {
        padding: 28px 22px;
    }

    .contact-form-header h2 {
        font-size: 20px;
    }

    .contact-map-wrapper {
        min-height: 350px;
    }

    .contact-faq-section {
        padding: 60px 0 70px;
    }

    .contact-faq-header h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 120px 0 40px;
    }

    .contact-hero h1 {
        font-size: 24px;
    }

    .contact-hero p {
        font-size: 14px;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-card {
        padding: 24px 20px;
    }

    .contact-form-wrapper {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .contact-main-section {
        padding: 40px 0 60px;
    }

    .contact-map-wrapper {
        min-height: 280px;
    }

    .map-overlay-card {
        right: 12px;
        bottom: 12px;
        padding: 12px 14px;
    }

    .faq-question {
        padding: 16px 18px;
        font-size: 14px;
    }

    .faq-answer p {
        padding: 0 18px 16px;
        font-size: 13px;
    }
}
