:root {
    --primary: #1F3A5F;
    --secondary: #1CB5A3;
    --accent: #F04E4E;
    --bg: #F8FAFC;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(31, 58, 95, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: #333; line-height: 1.6; }
h1, h2, h3 { font-family: 'Poppins', sans-serif; color: var(--primary); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.card { background: var(--white); padding: 30px; border-radius: 15px; box-shadow: var(--shadow); }

/* Navigation */
.navbar { background: var(--white); padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 50px; }
.logo-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 700; font-size: 1.2rem; color: var(--primary); }
.brand-sub { font-size: 0.75rem; color: var(--secondary); text-transform: uppercase; }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--primary); font-weight: 500; }

/* Hero */
.hero { padding: 100px 0; background: linear-gradient(135deg, #fff 0%, #eef2f7 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.hero-image img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); border: 8px solid #fff; }
.rating-tag { background: #fff; display: inline-block; padding: 5px 15px; border-radius: 20px; color: #f1c40f; font-weight: 600; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 20px; }
.hero-sub { font-size: 1.2rem; color: #555; margin-bottom: 30px; }

/* Buttons */
.btn { padding: 15px 30px; border-radius: 8px; font-weight: 600; text-decoration: none; display: inline-block; transition: 0.3s; border: none; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* Grid Helpers */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* Services */
.service-card { text-align: center; transition: 0.3s; }
.service-card i { font-size: 2.5rem; color: var(--secondary); margin-bottom: 20px; }
.service-card:hover { border-bottom: 4px solid var(--secondary); }

/* Floating UI */
.floating-contact { position: fixed; bottom: 30px; right: 30px; z-index: 999; display: flex; flex-direction: column; gap: 15px; }
.floating-contact a { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.wa-float { background: #25D366; }
.call-float { background: var(--secondary); }

/* Conditions Grid */
.conditions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.conditions-grid span { background: var(--white); padding: 12px 16px; border-radius: 8px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.conditions-grid span i { color: var(--secondary); }
.bg-alt { background: #eef2f7; }

/* Reviews */
.reviews-slider { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.review-card { background: var(--white); padding: 28px; border-radius: 16px; box-shadow: var(--shadow); border-left: 4px solid var(--secondary); }
.review-card p { color: #555; font-style: italic; margin-bottom: 12px; }
.stars { color: #f1c40f; font-size: 1.3rem; }

/* Doctor Badge */
.doctor-badge { display: flex; align-items: center; gap: 14px; background: var(--white); padding: 14px 20px; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 28px; width: fit-content; }
.badge-icon { width: 42px; height: 42px; background: var(--secondary); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; }
.doctor-badge div { display: flex; flex-direction: column; }
.doctor-badge strong { color: var(--primary); font-size: 0.95rem; }
.doctor-badge span { font-size: 0.78rem; color: #666; }

/* Hero buttons gap */
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Mobile menu */
.menu-toggle { display: none; cursor: pointer; font-size: 1.5rem; color: var(--primary); }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0d2342 100%);
    color: #fff;
}
.contact-section .section-header .subtitle { color: var(--secondary); }
.contact-section .section-header h2 { color: #fff; }
.contact-tagline { color: rgba(255,255,255,0.72); margin-top: 10px; font-size: 1rem; }

/* Social Connect Cards */
.social-connect-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}
.social-connect-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.social-connect-card:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.scc-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.maps .scc-icon-wrap { background: #4285F4; }
.instagram .scc-icon-wrap { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.facebook .scc-icon-wrap { background: #1877F2; }
.scc-content h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; color: #fff; }
.scc-content p { font-size: 0.875rem; color: rgba(255,255,255,0.72); line-height: 1.5; }
.scc-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

/* Instant Book Strip */
.instant-book-wrap {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px;
    margin-top: 36px;
    text-align: center;
}
.instant-book-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}
.instant-book-header h3 { color: #fff; font-size: 1.45rem; }
.pulse-dot {
    width: 13px;
    height: 13px;
    background: #25D366;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulseGlow 1.6s infinite;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    50%       { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
}
.instant-book-wrap > p { color: rgba(255,255,255,0.68); margin-bottom: 28px; }
.instant-book-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   SHARED BOOKING BUTTONS (.ibb)
   ============================================================ */
.ibb {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 270px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}
.ibb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.2s;
    border-radius: inherit;
}
.ibb:hover::before { background: rgba(255,255,255,0.08); }
.ibb-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.38);
}
.ibb-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(37, 211, 102, 0.46);
    color: #fff;
}
.ibb-email {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(31, 58, 95, 0.38);
}
.ibb-email:hover {
    background: #162d4a;
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(31, 58, 95, 0.46);
    color: #fff;
}
.ibb-icon {
    width: 46px;
    height: 46px;
    background: rgba(255,255,255,0.2);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}
.ibb-text { display: flex; flex-direction: column; text-align: left; }
.ibb-text strong { font-size: 0.97rem; font-weight: 700; line-height: 1.2; }
.ibb-text span { font-size: 0.76rem; opacity: 0.85; margin-top: 2px; }
.ibb-arrow { margin-left: auto; opacity: 0.65; font-size: 0.85rem; }

/* ============================================================
   BOOK SECTION (Redesigned Appointment Form)
   ============================================================ */
.book-section { background: #f0f4f9; }
.book-section-inner {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 36px;
    align-items: start;
}

/* Form Panel */
.book-form-panel {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(31, 58, 95, 0.1);
}
.book-panel-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 2px solid #eef2f7;
}
.book-panel-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.book-panel-head h3 { color: var(--primary); font-size: 1.35rem; margin-bottom: 3px; }
.book-panel-head p { color: #777; font-size: 0.88rem; }

/* Form Groups */
.fgroup { margin-bottom: 18px; }
.fgroup label {
    display: block;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.8rem;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.fgroup label i { color: var(--secondary); margin-right: 5px; }
.fgroup input,
.fgroup select,
.fgroup textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e9f3;
    border-radius: 10px;
    font-size: 0.93rem;
    color: #333;
    background: #fafbfd;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.2s;
    font-family: 'Inter', sans-serif;
}
.fgroup input:focus,
.fgroup select:focus,
.fgroup textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(28, 181, 163, 0.12);
    background: #fff;
}
.fgroup input.error,
.fgroup select.error {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(240, 78, 78, 0.1);
}
.fgroup select { cursor: pointer; }
.fgroup textarea { resize: vertical; }
.fgroup .optional { font-weight: 400; color: #aaa; text-transform: none; letter-spacing: 0; }
.fgroup-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-note {
    font-size: 0.79rem;
    color: #999;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.form-note i { color: var(--secondary); }

.form-action-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.form-action-btns .ibb { flex: 1; min-width: 200px; justify-content: flex-start; }

/* Info Panel */
.book-info-panel { display: flex; flex-direction: column; gap: 18px; }
.bip-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 28px rgba(31, 58, 95, 0.08);
}
.bip-card h4 {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bip-card h4 i { color: var(--secondary); }
.bip-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.bip-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.88rem; color: #555; }
.bip-list li i { width: 18px; color: var(--secondary); flex-shrink: 0; margin-top: 2px; }
.bip-list a { color: var(--primary); text-decoration: none; font-weight: 500; word-break: break-all; }
.bip-list a:hover { color: var(--secondary); }

.bip-doctor { display: flex; align-items: center; gap: 16px; }
.bip-doc-avatar {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.bip-doc-info { display: flex; flex-direction: column; }
.bip-doc-info strong { color: var(--primary); font-size: 0.92rem; }
.bip-doc-info span { font-size: 0.78rem; color: #666; }
.bip-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #f1c40f;
    font-size: 0.76rem;
    font-weight: 600;
    margin-top: 5px;
}
.bip-rating i { font-size: 0.72rem; }

.bip-social { display: flex; gap: 10px; flex-wrap: wrap; }
.bip-soc-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.2s, filter 0.2s;
}
.bip-soc-btn:hover { transform: translateY(-3px); filter: brightness(1.1); }
.maps-btn  { background: #4285F4; }
.insta-btn { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.fb-btn    { background: #1877F2; }
.wa-btn    { background: #25D366; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .hero-grid, .grid-2 { grid-template-columns: 1fr; }
    h1 { font-size: 2.2rem; }
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .nav-cta { display: none; }

    /* Mobile nav open state */
    .nav-links.nav-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 998;
        gap: 12px;
    }

    /* Contact section */
    .social-connect-grid { grid-template-columns: 1fr; gap: 14px; }
    .instant-book-wrap { padding: 24px 16px; }
    .instant-book-btns { flex-direction: column; align-items: center; }
    .ibb { min-width: unset; width: 100%; max-width: 400px; }

    /* Book section */
    .book-section-inner { grid-template-columns: 1fr; }
    .book-form-panel { padding: 24px; }
    .fgroup-row { grid-template-columns: 1fr; }
    .form-action-btns { flex-direction: column; }
    .form-action-btns .ibb { flex: unset; width: 100%; }
}

@media (max-width: 900px) {
    .social-connect-grid { grid-template-columns: 1fr 1fr; }
    .book-section-inner { grid-template-columns: 1fr; }
}
@media (min-width: 901px) {
    .social-connect-grid { grid-template-columns: repeat(3, 1fr); }
}