/* ─────────────────────────────────────────────────────────────
   2026-07-27: .back-to-top aur .reveal ke rules yahan se hataye.

   Ye main.css me hain (shared chrome) aur contact.css uske BAAD
   load hoti hai — matlab yahan ke rules jeet jaate the aur shared
   behaviour override ho jaata tha:

     .back-to-top   contact.css: bottom 2rem, LEFT 1.5rem
                    main.css   : bottom 16px, RIGHT 16px
       -> contact page par button BAAYIN taraf chala jaata tha,
          baaki har page par daayin. Inconsistent.
          Aur main.css ka mobile-bar overlap fix bhi bekaar ho jaata.

     .reveal        contact.css: opacity 1  (fade nahi, sirf slide)
                    main.css   : opacity 0  (fade + slide)
       -> is page par animation baaki site se alag chalti thi.

   Ab dono main.css se aate hain — har page par ek jaisa.
   ───────────────────────────────────────────────────────────── */

/* ================================================================
   contact.css — Contact Page Styles
   Wrapper: .contact-page-wrap
   ================================================================ */

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
    /* Colours */
    --ct-blue: #1e40af;
    --ct-blue-dark: #1e3a8a;
    --ct-blue-pale: #eff6ff;
    --ct-blue-border: #bfdbfe;
    --ct-green: #16a34a;
    --ct-green-dark: #15803d;
    --ct-green-pale: #f0fdf4;
    --ct-green-pale-border: #bbf7d0;
    --ct-green-success-bg: #dcfce7;
    --ct-red: #dc2626;
    --ct-ink: #0f172a;
    --ct-ink-700: #1e293b;
    --ct-ink-500: #475569;
    --ct-ink-400: #64748b;
    --ct-border: #e2e8f0;
    --ct-border-strong: #cbd5e1;
    --ct-surface: #ffffff;
    --ct-surface-2: #f8fafc;
    --ct-light: #f1f5f9;
    --ct-hero-grad-from: #667eea;
    --ct-hero-grad-to: #764ba2;
    /* Radii */
    --ct-r-md: 10px;
    --ct-r-lg: 16px;
    --ct-r-xl: 20px;
    --ct-r-2xl: 24px;
    --ct-r-pill: 50px;
    /* Shadows */
    --ct-shadow-md: 0 4px 16px rgba(13, 27, 42, 0.08);
    --ct-shadow-lg: 0 12px 32px rgba(13, 27, 42, 0.12);
    --ct-shadow-xl: 0 20px 60px rgba(13, 27, 42, 0.15);
    --ct-shadow-blue: 0 6px 20px rgba(30, 64, 175, 0.25);
    /* Typography */
    --ct-font-sans: "Inter", system-ui, sans-serif;
    /* Transitions */
    --ct-t: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --ct-t-fast: 0.15s ease;
    /* Legacy token aliases — consumed by sections using old var names */
    --dark: var(--ct-ink);
    --primary: var(--ct-blue);
    --light: var(--ct-light);
    --blue-dark: var(--ct-blue-dark);
    --blue-pale: var(--ct-blue-pale);
    --blue-border: var(--ct-blue-border);
    --red: var(--ct-red);
    --ink-400: var(--ct-ink-400);
    --ink-500: var(--ct-ink-500);
    --ink-700: var(--ct-ink-700);
    --border-strong: var(--ct-border-strong);
    --surface: var(--ct-surface);
    --surface-2: var(--ct-surface-2);
    --shadow-md: var(--ct-shadow-md);
    --shadow-xl: var(--ct-shadow-xl);
    --shadow-blue: var(--ct-shadow-blue);
    --radius-md: var(--ct-r-md);
    --radius-lg: var(--ct-r-lg);
    --r-md: var(--ct-r-md);
    --r-lg: var(--ct-r-lg);
    --r-2xl: var(--ct-r-2xl);
    --r-pill: var(--ct-r-pill);
    --font-sans: var(--ct-font-sans);
    --t-fast: var(--ct-t-fast);

    --blue: #2563eb;
    --blue-dk: #1e3a8a;
    --blue-lt: #eff6ff;
    --green: #16a34a;
    --green-lt: #f0fdf4;
    --orange: #ea580c;
    --bg: #f8fafc;
    --white: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --r: 12px;
    --t: all 0.22s ease;
}

/* ── Page Wrapper ───────────────────────────────────────────── */
.contact-page-wrap {
    min-height: 100vh;
    font-family: "Lato", sans-serif;
    color: var(--ink);
    background: var(--bg);
}

/* ── Hero ───────────────────────────────────────────────────── */
.contact-hero {
    color: var(--ct-surface);
    text-align: center;
    padding: 3.5rem 0 2.5rem;
    position: relative;
    overflow: hidden;

    background: linear-gradient(
        135deg,
        var(--blue-dk),
        var(--blue) 70%,
        #0369a1
    );
}

.contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse 55% 70% at 85% 40%,
        rgba(30, 64, 175, 0.3) 0%,
        transparent 60%
    );
}

.contact-hero::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.contact-hero h1 {
    letter-spacing: -0.03em;
    font-family: "Nunito", sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.contact-hero p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    line-height: 1.7;
}

.contact-hero .hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
/* ── Body Layout ────────────────────────────────────────────── */
.contact-body {
    padding: 2.5rem 0 4rem;
}

/* FIX: .contact-grid was from the first design era (--dark, --primary tokens).
   Preserved as-is — it targets a different layout than .contact-form-card. */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info h2,
.contact-form-container h2 {
    margin-bottom: 2rem;
    color: var(--ct-ink);
}
.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
    margin-bottom: 3rem;
}
.ci-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: var(--t);
}
.ci-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
/* ── Contact Items (legacy layout) ─────────────────────────── */
.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--ct-blue);
    min-width: 40px;
}

.contact-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--ct-ink);
}

/* ── Social Links ───────────────────────────────────────────── */
.contact-social {
    margin-top: 3rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--ct-light);
    border-radius: var(--ct-r-md);
    color: var(--ct-ink);
    text-decoration: none;
    transition: all var(--ct-t);
}

.social-link:hover {
    background: var(--ct-blue);
    color: var(--ct-surface);
}

/* ── Contact Form (legacy) ──────────────────────────────────── */
.contact-form {
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* ── Map ────────────────────────────────────────────────────── */
.map-container {
    margin-top: 2rem;
    border-radius: var(--ct-r-lg);
    overflow: hidden;
    box-shadow: var(--ct-shadow-xl);
}

.map-placeholder {
    height: 400px;
    background: linear-gradient(
        135deg,
        var(--ct-hero-grad-from) 0%,
        var(--ct-hero-grad-to) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ct-surface);
    text-align: center;
}

.map-info {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--ct-r-md);
    max-width: 500px;
}

.map-info h3 {
    color: var(--ct-surface);
    margin-bottom: 1rem;
}

/* ── FAQ (legacy list layout) ───────────────────────────────── */
.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
}

/* FIX: .faq-item had a contradictory border conflict —
   `border-bottom: 1px solid var(--border)` was immediately overridden
   by `border: none` within the same rule block. Also mixed
   layout-as-button properties (width:100%, appearance:none) with
   card styles (background, box-shadow). Resolved: card version kept;
   button reset properties removed (the element is a div, not a button). */
.faq-item {
    padding: 1.5rem;
    border-radius: var(--ct-r-md);
    margin-bottom: 1rem;
    box-shadow: var(--ct-shadow-md);
    border-bottom: 1px solid var(--ct-border);
    cursor: pointer;

    width: 100%;
    text-align: left;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
}
.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: var(--ct-blue);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

/* ── Info Cards (modern layout) ─────────────────────────────── */
.contact-info-card {
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-r-lg);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--ct-t);
    height: 100%;
}

.contact-info-card:hover {
    border-color: var(--ct-blue-border);
    box-shadow: var(--ct-shadow-md);
    transform: translateY(-3px);
}

.ci-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--ct-r-md);
    background: var(--ct-blue-pale);
    color: var(--ct-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: var(--ct-t);
}
.ci-card:hover .ci-icon {
    background: var(--blue);
    color: #fff;
}

.contact-info-card:hover .ci-icon {
    background: var(--ct-blue);
    color: var(--ct-surface);
}

.ci-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.ci-value {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--ct-ink);
}

.ci-value a {
    color: var(--ct-ink);
    text-decoration: none;
    transition: color var(--ct-t-fast);
}

.ci-value a:hover {
    color: var(--ct-blue);
}

.ci-hint {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

/* ── Form Card (modern layout) ──────────────────────────────── */
.contact-form-card,
.form-card {
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-r-2xl);
    box-shadow: var(--ct-shadow-lg);
    overflow: hidden;
}
.form-inner {
    padding: 2rem;
}

.sidebar-inner {
    padding: 2.25rem;
    background: var(--ct-surface-2);
    border-left: 1px solid var(--ct-border);
}

/* ── Field Styles ───────────────────────────────────────────── */
.field-group {
    margin-bottom: 1.35rem;
}

.field-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ct-ink-700);
    margin-bottom: 0.45rem;
    display: block;
}

.field-label span {
    font-weight: 400;
    color: var(--ct-ink-400);
    font-size: 0.75rem;
}

.field-input {
    width: 100%;
    border: 1.5px solid var(--ct-border);
    border-radius: var(--ct-r-md);
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
    font-family: var(--ct-font-sans);
    color: var(--ct-ink);
    background: var(--ct-surface);
    outline: none;
    transition: border-color var(--ct-t-fast), box-shadow var(--ct-t-fast);
}

.field-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.field-input::placeholder {
    color: var(--ct-ink-400);
}

.field-error {
    font-size: 0.73rem;
    color: #dc2626;
    margin-top: 0.25rem;
    display: none;
}
.field-error.show {
    display: block;
}

/* ── Submit Button ──────────────────────────────────────────── */
/* NOTE: .submit-btn also appears in appointment.css.
   Both are scoped to their respective page containers in HTML —
   keep both definitions; load contact.css after appointment.css
   if both pages share a stylesheet bundle. */
.submit-btn {
    width: 100%;
    padding: 0.9rem;
    background: var(--ct-blue);
    color: var(--ct-surface);
    border: none;
    border-radius: var(--ct-r-pill);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--ct-t);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--ct-font-sans);
}

.submit-btn:hover {
    background: var(--ct-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--ct-shadow-blue);
}

.submit-btn:disabled {
    background: var(--ct-border-strong);
    cursor: not-allowed;
    transform: none;
}

/* ── Topic Pills ────────────────────────────────────────────── */
.topic-select {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.topic-pill {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--muted);
    transition: var(--t);
}

.topic-pill:hover,
.topic-pill.selected {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-lt);
}
.topic-pill.selected {
    font-weight: 700;
}

.btn-primary-c {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background: var(--blue);
    color: #fff;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--t);
    width: 100%;
}
.btn-primary-c:hover {
    background: var(--blue-dk);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}
.btn-primary-c:disabled {
    background: var(--muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Sidebar FAQ ────────────────────────────────────────────── */

.sidebar-cta {
    background: var(--blue);
    border-radius: var(--r);
    padding: 1.25rem;
    text-align: center;
    margin-top: 1.5rem;
}
.sidebar-cta .cta-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.4rem;
}
.sidebar-cta a {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}
.sidebar-cta a:hover {
    text-decoration: underline;
}
.sidebar-cta .cta-hint {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.3rem;
}
.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ct-ink);
    gap: 0.5rem;

    width: 100%;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}

.faq-q i {
    color: var(--ct-ink-400);
    font-size: 0.8rem;
    transition: transform var(--ct-t);
    flex-shrink: 0;
}

.faq-item.open .faq-q i {
    transform: rotate(180deg);
}

.faq-a {
    font-size: 0.82rem;
    color: var(--ct-ink-500);
    line-height: 1.65;
    padding-top: 0.5rem;
    display: none;
}

.faq-item.open .faq-a {
    display: block;
}

/* ── Success State ──────────────────────────────────────────── */
.form-success {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
}

.form-success .si {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: #16a34a;
}
.form-success h3 {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 0.6rem;
}
.form-success p {
    font-size: 0.92rem;
    color: var(--muted);
}

/* ── Response Time Bar ──────────────────────────────────────── */
.resp-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
}
.resp-bar i {
    color: #16a34a;
}
.resp-bar p {
    font-size: 0.82rem;
    color: #15803d;
    font-weight: 600;
    margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991px) {
    .sidebar-inner {
        border-left: none;
        border-top: 1px solid var(--ct-border);
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .map-placeholder {
        height: 300px;
    }

    .form-inner,
    .sidebar-inner {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 3rem 0;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin-bottom: 0.5rem;
    }
}

/* ── Accessibility ──────────────────────────────────────────── */
.topic-pill:focus-visible,
.submit-btn:focus-visible,
.faq-item:focus-visible {
    outline: 2px solid var(--ct-blue);
    outline-offset: 2px;
}

.sticky-cta-desktop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
    transform: translateY(-100%);
    transition: transform 0.3s;
    z-index: 1000;
}
.sticky-cta-desktop.show {
    transform: translateY(0);
}
.sticky-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-small-cta {
    background: var(--blue);
    color: #fff;
    padding: 0.55rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
}
.sticky-cta-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    transform: translateY(100%);
    transition: transform 0.3s;
    z-index: 1000;
}
.sticky-cta-mobile.show {
    transform: translateY(0);
}
.sticky-cta-mobile a {
    flex: 1;
    text-align: center;
    padding: 0.55rem;
    border-radius: 2rem;
    font-weight: 700;
    text-decoration: none;
}
.call-btn {
    background: var(--green);
    color: #fff;
    margin-right: 0.5rem;
}
.book-btn {
    background: var(--blue);
    color: #fff;
}

.cta-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ct-ink, #0f172a);
    margin-bottom: 0.35rem;
}

.cta-hint {
    font-size: 0.72rem;
    color: var(--ct-ink-400, #94a3b8);
    margin-top: 0.3rem;
}

@media (max-width: 767px) {
    /* Keep clear of the mobile sticky bar; icon only to save space */

}

/* .faq-q is a real <button> now — strip the browser's default chrome
   so it still reads as the plain question row it was as a div. */

.faq-q:focus-visible {
    outline: 2px solid var(--ct-blue, #1e40af);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Reveal */
.reveal.rd2 {
    transition-delay: 0.1s;
}

@media (max-width: 991px) {
    .sidebar-inner {
        border-left: none;
        border-top: 1px solid var(--border);
    }
}
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .sticky-cta-desktop {
        display: none;
    }
}
@media (min-width: 769px) {
    .sticky-cta-mobile {
        display: none;
    }
}