/* ============================================================
   contact.css – Dr. P R Krishnan Contact & Appointment Page
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #142e42;
    --navy-dark: #0d2232;
    --teal: #096577;
    --teal-dark: #084b59;
    --teal-light: #eff7fa;
    --teal-glow: rgba(9, 101, 119, 0.15);
    --gold: #d97706;
    --muted: #5c7180;
    --muted-light: #899ea9;
    --line: #dce6eb;
    --card-bg: #ffffff;
    --card-bdr: #e2ebf0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
    --sh-sm: 0 4px 18px rgba(20, 46, 66, 0.05);
    --sh-md: 0 10px 30px rgba(20, 46, 66, 0.09);
    --sh-hover: 0 16px 36px rgba(9, 101, 119, 0.18);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

body {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--navy);
    background: #fbfdfe;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

h1,
h2,
h3,
h4 {
    font-family: 'Manrope', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy);
}

em {
    font-style: normal;
    color: var(--teal);
}

/* ── LAYOUT ── */
.wrap {
    width: min(1232px, calc(100% - 80px));
    margin: auto;
}

/* ── TOP BAR ── */
.topline {
    background: var(--navy);
    color: #d4e1e9;
    font-size: 12px;
    letter-spacing: .04em;
    padding: 9px 0;
}

.topline .wrap {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── HEADER ── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5edf1;
}

.navrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 88px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-brand {
    gap: 0;
}

.logo-img {
    height: 100px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: opacity .2s;
}

.logo-img:hover {
    opacity: 0.85;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    max-width: 260px;
}

nav {
    display: flex;
    gap: 20px;
    font-size: 14px;
    font-weight: 500;
}

nav a {
    padding: 32px 0;
    position: relative;
    transition: color .2s;
}

nav a:hover,
nav a.active {
    color: var(--teal);
}

nav a.active:after,
nav a.active::after {
    position: absolute;
    content: '';
    bottom: 20px;
    width: 100%;
    height: 2px;
    background: var(--teal);
    left: 0;
}

/* Button components */
.button,
.btn {
    background: var(--teal);
    color: white;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
    text-decoration: none;
}

.button:hover,
.btn:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(9, 101, 119, 0.25);
    color: white;
}

.button span,
.btn span {
    font-size: 16px;
    font-weight: 400;
}

.navcta {
    padding: 10px 16px;
    font-size: 13px;
    flex-shrink: 0;
}

/* Mobile menu toggle */
.menu {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: var(--navy);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ── BREADCRUMB ── */
.breadcrumb-bar {
    background: #f4f8fb;
    border-bottom: 1px solid #e0eaef;
    padding: 10px 0;
    font-size: 13px;
    color: var(--muted);
}

.breadcrumb-bar a {
    color: var(--teal);
}

.breadcrumb-bar a:hover {
    text-decoration: underline;
}

/* ── HERO CONTACT SECTION ── */
.contact-hero {
    background: linear-gradient(135deg, #eef7fa 0%, #f4f9fc 50%, #e6f1f7 100%);
    padding: 55px 0 45px;
    border-bottom: 1px solid var(--line);
}

.contact-hero-content {
    max-width: 820px;
}

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 12px;
    display: inline-block;
}

.contact-hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.contact-hero p {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.6;
}

/* ── CONTACT MAIN GRID (Form + Info) ── */
.contact-section {
    padding: 60px 0 75px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 45px;
    align-items: start;
}

/* Contact Form Card */
.contact-form-card {
    background: #ffffff;
    border: 1px solid var(--card-bdr);
    border-radius: var(--radius-lg);
    padding: 38px;
    box-shadow: var(--sh-md);
}

.form-header {
    margin-bottom: 28px;
}

.form-header h2 {
    font-size: 24px;
    margin-bottom: 6px;
}

.form-header p {
    color: var(--muted);
    font-size: 14.5px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-family: inherit;
    color: var(--navy);
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-glow);
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

.form-submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    background: var(--teal);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(9, 101, 119, 0.25);
}

.form-submit-btn:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(9, 101, 119, 0.35);
}

/* Form Success Toast */
.form-success-message {
    display: none;
    padding: 16px;
    background: #e6f9f0;
    border: 1px solid #9fe5be;
    color: #126338;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-top: 16px;
    align-items: center;
    gap: 10px;
}

/* Contact Info Column */
.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: #ffffff;
    border: 1px solid var(--card-bdr);
    border-radius: var(--radius-md);
    padding: 26px;
    box-shadow: var(--sh-sm);
    transition: border-color 0.2s;
}

.info-card:hover {
    border-color: #c7dce6;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.info-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--teal-light);
    color: var(--teal);
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

.info-card h3 {
    font-size: 18px;
    margin-bottom: 2px;
}

.info-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--teal);
    letter-spacing: 0.05em;
}

.info-details {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.info-details strong {
    color: var(--navy);
}

.info-details p {
    margin-bottom: 8px;
}

.info-card.primary-clinic {
    border: 2px solid var(--teal);
    background: linear-gradient(to bottom, #ffffff, #f7fbfd);
    position: relative;
    box-shadow: 0 8px 24px rgba(9, 101, 119, 0.12);
}

.info-card.primary-clinic::before {
    content: 'PRIORITIZED CLINIC';
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--teal);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
}

.info-badge-primary {
    display: inline-block;
    background: #e1f5fe;
    color: #0277bd;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.timing-badge-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f7fa;
    border: 1px solid #d7e8f0;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin: 10px 0 12px;
    font-size: 13.5px;
    color: var(--navy);
}

.timing-badge-box .timing-icon {
    font-size: 16px;
    color: var(--teal);
}

.clinic-action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.btn-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--teal);
    background: var(--teal-light);
    padding: 7px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-map-link:hover {
    background: var(--teal);
    color: #ffffff;
}

.btn-appoint-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: var(--teal);
    padding: 7px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-appoint-link:hover {
    background: var(--teal-dark);
}

.other-practices-list {
    list-style: none;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.other-practice-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    background: #fbfdfe;
    border: 1px solid var(--card-bdr);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
}

.other-practice-item strong {
    color: var(--navy);
    display: block;
    font-size: 13.5px;
}

.other-practice-item span {
    color: var(--muted);
    font-size: 12.5px;
}

.info-link {
    color: var(--teal);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.info-link:hover {
    text-decoration: underline;
}

/* Emergency Alert Box */
.emergency-card {
    background: #fff8f5;
    border: 1.5px solid #ffd0bd;
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    gap: 16px;
}

.emergency-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.emergency-card h4 {
    color: #c0392b;
    font-size: 15.5px;
    margin-bottom: 4px;
}

.emergency-card p {
    font-size: 13.5px;
    color: #7f3c2c;
    line-height: 1.5;
}

/* ── MAP & LOCATIONS SECTION ── */
.locations-section {
    background: #f4f8fb;
    padding: 60px 0 70px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 35px;
}

.location-box {
    background: #ffffff;
    border: 1px solid var(--card-bdr);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--sh-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.location-box h3 {
    font-size: 19px;
    margin-bottom: 12px;
}

.location-box p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.6;
}

.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.location-tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--teal-light);
    color: var(--teal);
    font-weight: 500;
}

/* ── FAQ SECTION ── */
.faq-section {
    padding: 72px 0 80px;
    background: linear-gradient(180deg, #f4f8fa 0%, #eaf3f6 100%);
    border-top: 1px solid #dce8ee;
    border-bottom: 1px solid #dce8ee;
}

.faq-layout-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 48px;
    align-items: start;
}

.faq-header {
    text-align: left;
    margin-bottom: 28px;
}

.faq-header .eyebrow {
    color: var(--teal);
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 11.5px;
    margin-bottom: 8px;
    display: inline-block;
}

.faq-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--navy);
    font-weight: 800;
}

.faq-header p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #d5e4ec;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(20, 46, 66, 0.04);
    transition: all 0.25s ease;
}

.faq-item:hover {
    border-color: #9ec9d6;
    box-shadow: 0 6px 20px rgba(9, 101, 119, 0.09);
}

.faq-item.active {
    border-color: var(--teal);
    box-shadow: 0 8px 24px rgba(9, 101, 119, 0.12);
}

.faq-question {
    width: 100%;
    padding: 18px 22px;
    text-align: left;
    font-weight: 700;
    font-size: 15.5px;
    color: var(--navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    cursor: pointer;
    gap: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.faq-item.active .faq-question {
    background: #f4fafc;
    color: var(--teal-dark);
}

.faq-question:hover {
    color: var(--teal);
}

.faq-arrow {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: #e6f3f6;
    color: var(--teal);
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-item.active .faq-arrow {
    background: var(--teal);
    color: #ffffff;
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 22px 20px;
    font-size: 14.5px;
    color: #4a6170;
    line-height: 1.65;
    background: #ffffff;
    border-top: 1px solid #eaf2f5;
    padding-top: 16px;
}

.faq-answer strong {
    color: var(--navy);
}

.faq-item.active .faq-answer {
    display: block;
}

/* ── FAQ RIGHT IMAGE ONLY ── */
.faq-right-col {
    display: flex;
    height: 100%;
}

.faq-image-container {
    width: 100%;
    height: 100%;
    min-height: 460px;
    max-height: 540px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    /* border: 1px solid #d5e4ec; */
    /* box-shadow: 0 10px 30px rgba(20, 46, 66, 0.08); */
    position: sticky;
    top: 105px;

}

.faq-single-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.faq-image-container:hover .faq-single-img {
    transform: scale(1.03);
}

@media (max-width: 992px) {
    .faq-layout-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .faq-image-container {
        position: static;
        max-width: 540px;
        min-height: 320px;
        max-height: 400px;
        margin: 0 auto;
    }
}

/* ── CTA BANNER ── */
.cta-banner {
    background: linear-gradient(135deg, #102a3d 0%, #094754 100%);
    color: #ffffff;
    padding: 55px 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-brain-icon {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    flex-shrink: 0;
}

.cta-left h2 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 6px;
}

.cta-left p {
    color: #c4dbe6;
    font-size: 15px;
}

.cta-btn {
    background: #ffffff;
    color: var(--navy);
    padding: 13px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14.5px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.cta-btn:hover {
    background: #eef7fa;
    color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid #e4ebee;
    background: #fcfdfe;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 36px;
    padding: 56px 0 40px;
}

.footer-main h3 {
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--navy);
}

.footer-main p,
.footer-main>div>a:not(.brand) {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
    transition: color .2s;
}

.footer-main>div>a:not(.brand):hover {
    color: var(--teal);
}

.footer-about p {
    margin-top: 16px !important;
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid #e1e8ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    color: #778791;
    padding: 22px 0;
}

.footer-bottom>a {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 18px;
    transition: background .2s, border-color .2s;
}

.footer-bottom>a:hover {
    background: #ffffff;
    border-color: var(--teal);
    color: var(--teal);
}

.footer-bottom span a {
    color: var(--teal);
    text-decoration: underline;
    font-weight: 600;
    transition: color .2s;
}

.footer-bottom span a:hover {
    color: var(--navy);
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        background: white;
        padding: 16px 24px 24px;
        box-shadow: 0 15px 24px rgba(21, 59, 67, 0.12);
        border-bottom: 1px solid #e2ebf0;
    }

    nav.open {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    nav a {
        padding: 12px 0;
        border-bottom: 1px solid #f0f4f7;
    }

    nav a.active:after {
        display: none;
    }

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

    .contact-form-card {
        padding: 24px;
    }

    .contact-hero h1 {
        font-size: 30px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}