/* ============================================================
   BHIMAVAANI HEALTH — Page-specific styles
   ============================================================ */

/* ---- Hero ---- */
.h-hero {
    padding: 130px 0 80px;
    background: linear-gradient(140deg, #0D9488 0%, #0F766E 55%, #134E4A 100%);
    position: relative;
    overflow: hidden;
}
.h-hero-dots {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.h-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.25); border-radius: 100px;
    padding: 7px 18px; font-size: 0.82rem; font-weight: 600; color: white;
    margin-bottom: 28px;
}
.h-hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 700; color: white; line-height: 1.12; margin-bottom: 20px;
}
.h-hero-title em {
    font-family: 'Playfair Display', serif;
    font-style: italic; color: rgba(255,255,255,0.92);
}
.h-hero-desc {
    font-size: 1.05rem; color: rgba(255,255,255,0.85);
    max-width: 520px; line-height: 1.65; margin-bottom: 36px;
}
.h-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.h-hero-ctas .h-btn-primary {
    padding: 13px 28px; background: white; color: #0D9488;
    border-radius: 10px; font-size: 0.95rem; font-weight: 700;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.2s;
}
.h-hero-ctas .h-btn-primary:hover { background: #F0FDFA; transform: translateY(-2px); }
.h-hero-ctas .h-btn-ghost {
    padding: 13px 24px; border: 1.5px solid rgba(255,255,255,0.45); color: white;
    border-radius: 10px; font-size: 0.95rem; font-weight: 600;
    text-decoration: none; display: inline-flex; align-items: center;
    transition: all 0.2s;
}
.h-hero-ctas .h-btn-ghost:hover { background: rgba(255,255,255,0.12); }
.h-hero-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.h-hero-pills span {
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px; padding: 6px 14px;
    font-size: 0.8rem; color: rgba(255,255,255,0.9); font-weight: 500;
}

/* ---- How It Works ---- */
.h-how { padding: 80px 0; background: #F6F9F5; }
.h-how-grid {
    display: flex; align-items: flex-start;
    justify-content: center; gap: 0; margin-top: 0;
}
.h-how-step {
    flex: 1; max-width: 280px; text-align: center;
    padding: 32px 24px; background: white;
    border: 1.5px solid #E5E7EB; border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.05);
}
.h-how-arrow {
    font-size: 1.4rem; color: #0D9488;
    padding: 54px 12px 0; flex-shrink: 0; line-height: 1;
}
.h-how-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.14em; color: #0D9488; margin-bottom: 16px;
}
.h-how-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: #F0FDFA; color: #0D9488;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.h-how-step h3 { font-size: 1rem; font-weight: 700; color: #111827; margin-bottom: 8px; }
.h-how-step p  { font-size: 0.85rem; color: #6B7280; line-height: 1.6; }

/* ---- Doctors section ---- */
.h-doctors {
    padding: 80px 0 96px;
    background: #F0FDFA; position: relative;
}
.h-doctors::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(13,148,136,0.08) 1px, transparent 1px);
    background-size: 28px 28px; pointer-events: none;
}

/* Doctor card additions for health page */
.doctor-card-full { padding: 36px; }
.dc-top { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 16px; }
.dc-top .dc-avatar { flex-shrink: 0; }
.dc-top h3 { font-size: 1.2rem; font-weight: 700; color: #111827; margin-bottom: 4px; }
.dc-services {
    margin: 18px 0 24px; padding: 16px 18px;
    background: #F9FAFB; border-radius: 12px;
}
.dc-services h4 {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: #6B7280; margin-bottom: 10px;
}
.dc-service-list { display: flex; flex-wrap: wrap; gap: 7px; }
.dc-service-list span {
    background: white; border: 1px solid #E5E7EB; border-radius: 6px;
    padding: 4px 10px; font-size: 0.78rem; color: #374151; font-weight: 500;
}

/* ---- Modal ---- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-box {
    background: white; border-radius: 20px;
    width: 100%; max-width: 860px; max-height: 90vh;
    overflow-y: auto; position: relative;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 80px rgba(0,0,0,0.22);
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }

/* Custom scrollbar in modal */
.modal-box::-webkit-scrollbar { width: 4px; }
.modal-box::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 2px; }

.modal-close {
    position: sticky; top: 12px; left: calc(100% - 52px);
    float: right; margin: 12px 12px 0 0;
    width: 36px; height: 36px; border-radius: 10px;
    background: #F3F4F6; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #6B7280; transition: all 0.15s; z-index: 10;
    flex-shrink: 0;
}
.modal-close:hover { background: #E5E7EB; color: #111827; }

.modal-doc-hdr { padding: 0 24px 0; margin-top: -24px; }
.modal-doc-hdr-inner {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px; background: #F0FDFA;
    border-radius: 14px;
}
.modal-doc-hdr-inner.indigo-hdr { background: #EEF2FF; }
.modal-doc-hdr .drc-av { width: 48px; height: 48px; border-radius: 12px; font-size: 0.88rem; }
.modal-doc-hdr strong { display: block; font-size: 1rem; font-weight: 700; color: #111827; }
.modal-doc-hdr span   { font-size: 0.82rem; color: #6B7280; }
.modal-free-tag {
    margin-left: auto; background: #DCFCE7; color: #166534;
    border-radius: 100px; padding: 4px 12px;
    font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}

/* Side-by-side split layout */
.modal-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 0;
}
.modal-left {
    padding: 20px 24px 28px;
    border-right: 1.5px solid #E5E7EB;
}
.modal-right {
    padding: 20px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.modal-right .frow,
.modal-right .fgroup { margin: 0; }
.modal-right .health-submit-btn { margin-top: auto; }

.modal-sec-lbl {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.14em; color: #6B7280; margin-bottom: 16px;
}

/* ---- Success state ---- */
.modal-success-wrap { padding: 48px 24px 40px; }
.modal-success { text-align: center; }
.success-check { font-size: 3.5rem; margin-bottom: 18px; display: block; }
.modal-success h3 { font-size: 1.4rem; font-weight: 700; color: #111827; margin-bottom: 10px; }
.modal-success p {
    font-size: 0.9rem; color: #6B7280; line-height: 1.65;
    max-width: 380px; margin: 0 auto 28px;
}
.success-actions { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin: 0 auto 20px; }
.success-wa-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px; background: #25D366; color: white;
    border: none; border-radius: 10px; font-size: 0.92rem; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.success-wa-btn:hover { background: #1ebe5d; transform: translateY(-1px); }
.success-email-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px; background: #F9FAFB; color: #111827;
    border: 1.5px solid #E5E7EB; border-radius: 10px;
    font-size: 0.92rem; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: all 0.2s;
}
.success-email-btn:hover { background: #F3F4F6; }
.success-close-btn {
    background: none; border: none; color: #6B7280;
    font-size: 0.88rem; cursor: pointer; padding: 8px;
    font-family: inherit; text-decoration: underline; display: block; margin: 0 auto;
}

/* ---- Health teaser on main page ---- */
.health-teaser {
    padding: 80px 0;
    background: linear-gradient(135deg, #F0FDFA 0%, #FFFEF9 100%);
    border-top: 1px solid rgba(13,148,136,0.12);
    border-bottom: 1px solid rgba(13,148,136,0.12);
}
.health-teaser-inner {
    display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center;
}
.health-teaser-left p {
    font-size: 0.95rem; color: #374151; line-height: 1.65;
    margin: 16px 0 28px; max-width: 480px;
}
.health-teaser-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px; background: #0D9488; color: white;
    border-radius: 10px; font-size: 0.92rem; font-weight: 700;
    text-decoration: none; transition: all 0.2s;
}
.health-teaser-btn:hover { background: #0F766E; transform: translateY(-2px); }
.health-teaser-doctors { display: flex; flex-direction: column; gap: 12px; }
.htd-card {
    display: flex; align-items: center; gap: 14px;
    background: white; border: 1.5px solid #E5E7EB; border-radius: 14px;
    padding: 14px 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.05);
    min-width: 260px;
}
.htd-card strong { display: block; font-size: 0.9rem; font-weight: 700; color: #111827; }
.htd-card span   { font-size: 0.78rem; color: #6B7280; }
.htd-av { width: 44px !important; height: 44px !important; font-size: 0.85rem !important; border-radius: 12px !important; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .h-how-grid { flex-direction: column; align-items: center; gap: 12px; }
    .h-how-step { max-width: 100%; width: 100%; }
    .h-how-arrow { padding: 0; transform: rotate(90deg); font-size: 1.2rem; }
    .h-hero-ctas { flex-direction: column; align-items: flex-start; }
    .h-hero-ctas a { width: auto; }
    .dc-top { flex-direction: column; gap: 12px; }
    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal-box {
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
        transform: translateY(100%);
    }
    .modal-overlay.open .modal-box { transform: translateY(0); }
    .modal-split { grid-template-columns: 1fr; }
    .modal-left { border-right: none; border-bottom: 1.5px solid #E5E7EB; padding-bottom: 20px; }
    .modal-right { padding-top: 20px; }
    .health-teaser-inner { grid-template-columns: 1fr; gap: 32px; }
    .health-teaser-doctors { flex-direction: row; flex-wrap: wrap; }
    .htd-card { flex: 1; min-width: 180px; }
    .cal-time-wrap { grid-template-columns: 1fr; }
    .slots-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .h-hero { padding: 110px 0 60px; }
    .doctor-card-full { padding: 24px 20px; }
    .modal-left, .modal-right { padding: 16px 18px; }
    .modal-doc-hdr { padding: 0 18px; }
}
