/* ============================================
   RIHAN CONTACT PAGE STYLES
   ============================================ */

/* --- 1. Variables & Global Defaults --- */
:root {
    --color-primary: #1B2B5A;
    --color-primary-dark: #152347;
    --color-accent: #2EAD4B;
    --color-text: #2D3748;
    --color-text-light: #64748B;
    --color-bg: #FFFFFF;
    --color-bg-light: #F8FAFC;
    --color-border: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-display: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section--gray {
    background-color: var(--color-bg-light);
}

/* --- 2. Page Hero --- */
 .about-hero {
            background: linear-gradient(135deg, var(--color-primary) 0%, #152347 100%);
            padding: 100px 0;
            position: relative;
            overflow: hidden;
        }

        .about-hero::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 50%;
            height: 100%;
            background: url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?w=1200&q=80') center/cover;
            opacity: 0.12;
        }

        .about-hero-content {
            position: relative;
            z-index: 1;
            max-width: 700px;
        }

        .about-hero h1 {
            font-size: clamp(2rem, 5vw, 3rem);
            color: #fff;
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .about-hero-subtitle {
            font-size: 1.2rem;
            color: rgba(255, 255, 255, 0.85);
            margin-bottom: 32px;
        }

        .about-hero-stats {
            display: flex;
            gap: 40px;
            flex-wrap: wrap;
        }

        .hero-stat {
            text-align: center;
        }

        .hero-stat-value {
            display: block;
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--color-accent);
            font-family: var(--font-display);
        }

        .hero-stat-label {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
        }

/* --- 3. Contact Grid Layout --- */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Info takes less space, Form takes more */
    gap: 60px;
    align-items: start;
}

/* --- 4. Contact Info Side --- */
.contact-info__title {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.contact-info__text {
    color: var(--color-text-light);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.contact-info__list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
}

.contact-info__item {
    display: flex;
    gap: 20px;
}

.contact-info__icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact-info__icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.contact-info__content h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--color-primary);
    font-weight: 600;
}

.contact-info__content p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.contact-info__content a {
    color: var(--color-primary);
    font-weight: 600;
    transition: color 0.2s;
}

.contact-info__content a:hover {
    color: var(--color-accent);
}

/* Office Hours Box */
.contact-info__hours {
    background: var(--color-bg-light);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.contact-info__hours h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.contact-info__hours-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
    color: var(--color-text);
}

.contact-info__hours-row:last-child {
    border-bottom: none;
    font-weight: 600;
    color: var(--color-accent);
}

/* --- 5. Contact Form Side --- */
.contact-form {
    background: #fff;
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.contact-form__title {
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.contact-form__subtitle {
    color: var(--color-text-light);
    margin-bottom: 32px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

.form__label span {
    color: #e53e3e;
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-bg-light);
    transition: var(--transition);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(27, 43, 90, 0.1);
}

.form__textarea {
    height: 120px;
    resize: vertical;
}

.form__submit {
    width: 100%;
    padding: 16px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.form__submit:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Form Success State (Hidden by default) */
.form__success {
    display: none;
    text-align: center;
    padding: 40px 0;
}

.form__success.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.form__success-icon {
    width: 64px;
    height: 64px;
    background: #DEF7EC;
    color: #03543F;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form__success-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* --- 6. Map Section --- */
.map-section {
    height: 500px;
    position: relative;
    background: #f0f0f0;
}

.map-section__inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-section__map {
    width: 100%;
    height: 100%;
}

.map-section__info {
    position: absolute;
    top: 50%;
    left: 10%; /* Positions card on the left side */
    transform: translateY(-50%);
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    z-index: 10;
}

.map-section__title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.map-section__address {
    color: var(--color-text-light);
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 1.05rem;
}

.map-section__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

.map-section__link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.2s;
}

.map-section__link:hover svg {
    transform: translateX(4px);
}

/* --- 7. FAQ Quick Section --- */
.faq-quick__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.faq-quick__card {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-quick__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.faq-quick__icon {
    width: 50px;
    height: 50px;
    background: var(--color-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.faq-quick__icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.faq-quick__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.faq-quick__text {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* --- 8. Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet (Max 1024px) */
@media (max-width: 1024px) {
    .contact__grid {
        grid-template-columns: 1fr; /* Stack layout */
        gap: 40px;
    }

    .contact-form {
        padding: 40px;
    }

    .faq-quick__grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for FAQs */
    }
}

/* Mobile (Max 768px) */
@media (max-width: 768px) {
    /* Hero */
    .page-hero {
        padding: 120px 0 60px;
    }
    .page-hero__title {
        font-size: 2rem;
    }

    /* Form */
    .contact-form {
        padding: 24px;
    }
    .form__row {
        grid-template-columns: 1fr; /* Stack form inputs */
        gap: 0;
    }

    /* Map */
    .map-section {
        height: auto;
        display: flex;
        flex-direction: column;
    }
    
    .map-section__map {
        height: 300px;
        order: 2; /* Map on bottom */
    }

    .map-section__info {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        order: 1; /* Info on top */
        padding: 40px 24px;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    /* FAQ */
    .faq-quick__grid {
        grid-template-columns: 1fr; /* Stack FAQs */
    }
}