/* ═══════════════════════════════════════════════════
   JAGRAN CLINIC — GLOBAL STYLES
   ═══════════════════════════════════════════════════ */

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

/* ── TOKENS ─────────────────────────────────────── */
:root {
  --teal:        #0d6e6e;
  --teal-lt:     #14a39a;
  --teal-xlt:    #e0f5f5;
  --gold:        #c9954c;
  --gold-lt:     #f5e6d3;
  --cream:       #fdf9f4;
  --dark:        #0b1a1a;
  --mid:         #2d4545;
  --text:        #374040;
  --muted:       #7a9090;
  --light:       #e8f4f4;
  --white:       #ffffff;
  --danger:      #e05252;
  --success:     #2db67d;
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   22px;
  --shadow-sm:   0 2px 12px rgba(13,110,110,.08);
  --shadow:      0 8px 40px rgba(13,110,110,.13);
  --shadow-lg:   0 20px 60px rgba(13,110,110,.18);
  --transition:  .25s cubic-bezier(.4,0,.2,1);
  --font-display:'Playfair Display', Georgia, serif;
  --font-body:   'DM Sans', sans-serif;
}

/* ── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--cream); color: var(--text); overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img, svg { display: block; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }
button { cursor: pointer; }

/* ── TYPOGRAPHY ─────────────────────────────────── */
.display { font-family: var(--font-display); }
.section-label {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--dark); line-height: 1.2; margin-bottom: 16px;
}
.section-sub { font-size: 1rem; color: var(--muted); line-height: 1.7; max-width: 560px; }

/* ── LAYOUT ─────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 50px;
  font-weight: 600; font-size: .9rem;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-sm { padding: 9px 20px; font-size: .82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-primary   { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-lt); border-color: var(--teal-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,110,110,.35); }
.btn-outline   { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.btn-gold      { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,149,76,.4); }
.btn-ghost     { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-danger    { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-success   { background: var(--success); color: #fff; border-color: var(--success); }

/* ── CARDS ──────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-teal { background: linear-gradient(135deg, var(--teal), var(--teal-lt)); color: #fff; }
.card-dark { background: var(--dark); color: #fff; }

/* ── FORMS ──────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: .78rem; font-weight: 700;
  color: var(--mid); margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: .06em;
}
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid #d5e8e8; border-radius: var(--radius-sm);
  font-size: .93rem; color: var(--dark); background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,110,110,.1); }
.form-control.error { border-color: var(--danger); }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { font-size: .78rem; color: var(--danger); margin-top: 4px; display: none; }
.form-error.show { display: block; }

/* ── BADGES ─────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 50px;
  font-size: .75rem; font-weight: 600;
}
.badge-teal  { background: var(--teal-xlt); color: var(--teal); }
.badge-gold  { background: var(--gold-lt); color: #a07030; }
.badge-green { background: #d4f5e9; color: #1a8a57; }
.badge-red   { background: #fde8e8; color: #c03030; }
.badge-blue  { background: #e3eeff; color: #2255bb; }
.badge-grey  { background: #eef2f2; color: var(--mid); }
.badge-pulse::before {
  content: ''; width: 7px; height: 7px;
  background: currentColor; border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}

/* ── TOPBAR ──────────────────────────────────────── */
.topbar {
  background: var(--dark); color: #8ab8b8;
  font-size: .8rem; padding: 8px 0;
}
.topbar a { color: #8ab8b8; transition: color var(--transition); }
.topbar a:hover { color: var(--gold); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.topbar-item { display: flex; align-items: center; gap: 7px; }

/* ── NAV ─────────────────────────────────────────── */
.navbar {
  background: var(--white); position: sticky; top: 0; z-index: 900;
  box-shadow: 0 2px 20px rgba(0,0,0,.07);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 24px; max-width: 1160px; margin: 0 auto; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 44px; height: 44px; background: linear-gradient(135deg, var(--teal), var(--teal-lt)); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-mark svg { width: 24px; height: 24px; fill: #fff; }
.logo-name strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--dark); line-height: 1.1; }
.logo-name span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 8px 15px; border-radius: 8px; font-weight: 500; font-size: .88rem; color: var(--text); transition: all var(--transition); }
.nav-links a:hover, .nav-links a.active { background: var(--teal-xlt); color: var(--teal); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: all .3s; }

/* ── MOBILE MENU ─────────────────────────────────── */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: var(--white); flex-direction: column;
  padding: 20px 24px; gap: 4px; overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mobile-nav a { display: block; padding: 14px 12px; font-size: 1rem; font-weight: 500; color: var(--dark); border-radius: var(--radius-sm); border-bottom: 1px solid var(--light); }
.mobile-nav a:hover { background: var(--teal-xlt); color: var(--teal); }
.close-nav { background: none; border: none; font-size: 1.4rem; color: var(--mid); }

/* ── HERO ────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #071818 0%, var(--dark) 40%, #0d5252 100%);
  color: #fff; min-height: 88vh; display: flex; align-items: center;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: .05;
  background-image: radial-gradient(circle at 2px 2px, #fff 1px, transparent 0);
  background-size: 38px 38px;
}
.hero-glow-1 { position: absolute; right: -120px; top: -100px; width: 650px; height: 650px; background: radial-gradient(circle, rgba(20,163,154,.35) 0%, transparent 70%); border-radius: 50%; }
.hero-glow-2 { position: absolute; left: -80px; bottom: -100px; width: 450px; height: 450px; background: radial-gradient(circle, rgba(201,149,76,.18) 0%, transparent 70%); border-radius: 50%; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 88px 0; }
.hero-live-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 50px; padding: 5px 14px; font-size: .78rem; font-weight: 500; margin-bottom: 22px; }
.hero-live-badge .dot { width: 7px; height: 7px; background: #5cf; border-radius: 50%; animation: pulse 1.5s infinite; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.15; margin-bottom: 20px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-sub { font-size: 1.02rem; opacity: .82; line-height: 1.75; margin-bottom: 36px; max-width: 460px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-diagnose-cta {
  background: linear-gradient(135deg, var(--gold), #e8aa60);
  border-radius: var(--radius); padding: 20px 28px;
  display: flex; align-items: center; gap: 16px;
  max-width: 420px; transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(255,255,255,.15);
}
.hero-diagnose-cta:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(201,149,76,.4); }
.hero-diagnose-cta .icon { font-size: 2rem; flex-shrink: 0; }
.hero-diagnose-cta strong { display: block; font-size: 1rem; margin-bottom: 3px; }
.hero-diagnose-cta span { font-size: .82rem; opacity: .85; }
.hero-diagnose-cta .arrow { margin-left: auto; font-size: 1.3rem; flex-shrink: 0; }
.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-card {
  background: rgba(255,255,255,.08); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  padding: 22px; animation: floatY 4s ease-in-out infinite;
  transition: background var(--transition);
}
.hero-card:hover { background: rgba(255,255,255,.14); }
.hero-card:nth-child(2) { animation-delay: 1s; }
.hero-card:nth-child(3) { animation-delay: .5s; }
.hero-card:nth-child(4) { animation-delay: 1.5s; }
.hero-card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.hero-card strong { display: block; font-size: .92rem; margin-bottom: 4px; }
.hero-card small { font-size: .78rem; opacity: .65; }

/* ── MARQUEE ─────────────────────────────────────── */
.marquee-wrap { background: var(--teal); color: #fff; padding: 12px 0; overflow: hidden; }
.marquee-track { display: flex; white-space: nowrap; animation: marquee 24s linear infinite; }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; padding: 0 36px; font-size: .85rem; font-weight: 500; }
.marquee-dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }

/* ── ABOUT ──────────────────────────────────────── */
.about-visual { position: relative; }
.about-img {
  width: 100%; height: 420px; background: linear-gradient(145deg, var(--teal-xlt), #c2e8e8);
  border-radius: var(--radius-lg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; font-size: .9rem; color: var(--mid);
}
.about-img-icon { font-size: 5rem; opacity: .45; }
.about-float {
  position: absolute; bottom: -18px; right: -18px;
  background: var(--white); border-radius: var(--radius); padding: 16px 20px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
}
.about-float-icon { width: 42px; height: 42px; background: var(--teal-xlt); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.about-float strong { display: block; font-size: 1rem; color: var(--dark); }
.about-float span { font-size: .75rem; color: var(--muted); }
.check-list { display: flex; flex-direction: column; gap: 14px; margin: 26px 0 32px; }
.check-item { display: flex; align-items: flex-start; gap: 12px; }
.check-icon {
  width: 22px; height: 22px; background: var(--teal); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
  font-size: .65rem; color: #fff; font-weight: 800;
}
.check-item p { font-size: .92rem; line-height: 1.65; }

/* ── SERVICES ──────────────────────────────────── */
.services-section { background: var(--dark); }
.services-section .section-title { color: #fff; }
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 52px; flex-wrap: wrap; gap: 20px; }
.svc-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg); padding: 28px; transition: all var(--transition);
}
.svc-card:hover { background: rgba(20,163,154,.12); border-color: var(--teal-lt); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.svc-icon { width: 54px; height: 54px; background: linear-gradient(135deg, var(--teal), var(--teal-lt)); border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 18px; }
.svc-card h3 { font-family: var(--font-display); font-size: 1.15rem; color: #fff; margin-bottom: 10px; }
.svc-card p { font-size: .86rem; line-height: 1.65; color: rgba(255,255,255,.6); }
.svc-tag { display: inline-block; margin-top: 14px; padding: 3px 11px; background: rgba(20,163,154,.22); color: var(--teal-lt); border-radius: 50px; font-size: .72rem; font-weight: 700; }

/* ── DIAGNOSE HIGHLIGHT ─────────────────────────── */
.diagnose-highlight {
  background: linear-gradient(135deg, var(--gold) 0%, #e0a855 100%);
  border-radius: var(--radius-lg); padding: 44px; color: #fff;
  display: flex; align-items: center; gap: 36px; margin-top: 36px;
  position: relative; overflow: hidden;
}
.diagnose-highlight::before {
  content: '🔬'; font-size: 8rem; position: absolute; right: 28px; top: 50%;
  transform: translateY(-50%); opacity: .15;
}
.diagnose-highlight h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 10px; }
.diagnose-highlight p { font-size: .92rem; opacity: .88; line-height: 1.7; margin-bottom: 20px; max-width: 500px; }

/* ── WHY US ─────────────────────────────────────── */
.why-card {
  text-align: center; padding: 36px 24px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); transition: transform var(--transition);
}
.why-card:hover { transform: translateY(-6px); }
.why-num { font-family: var(--font-display); font-size: 2.8rem; color: var(--teal); font-weight: 700; line-height: 1; }
.why-card h4 { font-size: .95rem; font-weight: 700; color: var(--dark); margin: 10px 0 8px; }
.why-card p { font-size: .82rem; color: var(--muted); line-height: 1.6; }

/* ── APPOINTMENT SECTION ────────────────────────── */
.appt-section { background: linear-gradient(135deg, var(--teal) 0%, #085050 100%); color: #fff; }
.appt-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.appt-info .section-title { color: #fff; }
.appt-info p { opacity: .82; line-height: 1.75; margin-bottom: 32px; }
.contact-chip {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.1); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 14px;
}
.chip-icon { width: 42px; height: 42px; background: rgba(255,255,255,.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.chip-label { font-size: .78rem; opacity: .65; font-weight: 400; margin-bottom: 2px; }
.chip-val { font-size: .93rem; font-weight: 600; }
.appt-form-box {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 38px; box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.appt-form-box h3 { font-family: var(--font-display); font-size: 1.45rem; color: var(--dark); margin-bottom: 26px; }

/* ── HOURS / MAP ─────────────────────────────────── */
.hours-map-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.hours-table { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 28px; }
.hour-row { display: grid; grid-template-columns: 1fr 1.4fr; padding: 13px 20px; border-bottom: 1px solid var(--light); font-size: .9rem; }
.hour-row:last-child { border: none; }
.hour-row:nth-child(odd) { background: var(--cream); }
.hour-day { font-weight: 600; color: var(--dark); }
.hour-time { color: var(--teal); font-weight: 500; }
.hour-closed { color: var(--danger); font-weight: 600; }
.map-box { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); height: 340px; background: var(--light); }
.map-box iframe { width: 100%; height: 100%; border: none; }

/* ── TESTIMONIALS ────────────────────────────────── */
.testi-section { background: var(--cream); }
.testi-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow); position: relative;
}
.testi-quote { font-family: var(--font-display); font-size: 4rem; color: var(--light); position: absolute; top: 6px; left: 22px; line-height: 1; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: .9rem; margin-bottom: 12px; }
.testi-card p { font-size: .9rem; line-height: 1.72; color: var(--text); margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--teal-lt)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.testi-name strong { display: block; font-size: .88rem; color: var(--dark); }
.testi-name span { font-size: .75rem; color: var(--muted); }

/* ── FOOTER ──────────────────────────────────────── */
.footer { background: var(--dark); color: #8ab8b8; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; padding: 68px 0 44px; }
.footer-brand p { font-size: .86rem; line-height: 1.75; margin: 16px 0 22px; max-width: 270px; }
.social-row { display: flex; gap: 10px; }
.social-btn { width: 36px; height: 36px; background: rgba(255,255,255,.07); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .9rem; color: #fff; transition: background var(--transition); }
.social-btn:hover { background: var(--teal); }
.footer-col h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: .84rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 20px 0; display: flex; justify-content: space-between; font-size: .8rem; flex-wrap: wrap; gap: 10px; }

/* ── FLOATING ELEMENTS ───────────────────────────── */
.float-call {
  position: fixed; bottom: 28px; left: 28px; z-index: 800;
}
.float-call a {
  display: flex; align-items: center; gap: 9px;
  background: var(--gold); color: #fff; padding: 12px 20px;
  border-radius: 50px; font-weight: 700; font-size: .88rem;
  box-shadow: 0 4px 24px rgba(201,149,76,.5);
  animation: pulse 2.5s infinite;
}
.scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 800;
  width: 44px; height: 44px; background: var(--teal); color: #fff;
  border: none; border-radius: 50%; font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(13,110,110,.4);
  opacity: 0; pointer-events: none; transition: all var(--transition);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--teal-lt); transform: translateY(-3px); }

/* ══════════════════════════════════════════════════
   DIAGNOSE PAGE
   ══════════════════════════════════════════════════ */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, #0d5252 100%);
  color: #fff; padding: 56px 0 52px;
}
.page-header h1 { font-family: var(--font-display); font-size: clamp(1.8rem,4vw,2.6rem); margin-bottom: 10px; }
.page-header p { opacity: .78; font-size: .96rem; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .8rem; opacity: .6; margin-bottom: 16px; }
.breadcrumb a:hover { opacity: 1; }

/* Steps wizard */
.steps-bar { display: flex; align-items: center; margin-bottom: 44px; }
.step-item { display: flex; align-items: center; gap: 10px; flex: 1; }
.step-item:last-child { flex: none; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2.5px solid #d5e8e8; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; flex-shrink: 0;
  transition: all var(--transition);
}
.step-item.active .step-num { background: var(--teal); border-color: var(--teal); color: #fff; }
.step-item.done .step-num { background: var(--success); border-color: var(--success); color: #fff; }
.step-label { font-size: .8rem; font-weight: 600; color: var(--muted); transition: color var(--transition); }
.step-item.active .step-label { color: var(--teal); }
.step-item.done .step-label { color: var(--success); }
.step-line { flex: 1; height: 2px; background: #d5e8e8; margin: 0 6px; transition: background var(--transition); }
.step-line.done { background: var(--success); }

/* Panel */
.panel { display: none; }
.panel.active { display: block; animation: fadeUp .4s ease both; }
.panel-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 36px; }

/* Test type grid */
.test-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.test-type-btn {
  padding: 20px 16px; border: 2px solid #d5e8e8; border-radius: var(--radius);
  background: var(--white); cursor: pointer; text-align: center;
  transition: all var(--transition);
}
.test-type-btn:hover { border-color: var(--teal); background: var(--teal-xlt); }
.test-type-btn.selected { border-color: var(--teal); background: var(--teal-xlt); box-shadow: 0 0 0 3px rgba(13,110,110,.12); }
.test-type-btn .icon { font-size: 2rem; margin-bottom: 8px; }
.test-type-btn strong { display: block; font-size: .88rem; color: var(--dark); font-weight: 700; margin-bottom: 3px; }
.test-type-btn small { font-size: .74rem; color: var(--muted); }

/* Lab card */
.lab-card {
  background: var(--white); border: 1.5px solid #d5e8e8; border-radius: var(--radius-lg);
  padding: 22px; transition: all var(--transition); cursor: pointer;
  position: relative;
}
.lab-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.lab-card.selected { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,110,110,.12); }
.lab-card.nearby { border-color: var(--gold); }
.nearby-ribbon {
  position: absolute; top: -1px; right: 16px;
  background: var(--gold); color: #fff; font-size: .68rem; font-weight: 700;
  padding: 3px 10px; border-radius: 0 0 8px 8px; letter-spacing: .05em;
}
.lab-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.lab-name { font-family: var(--font-display); font-size: 1.1rem; color: var(--dark); margin-bottom: 3px; }
.lab-addr { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.lab-rating { display: flex; align-items: center; gap: 5px; font-size: .85rem; font-weight: 700; color: var(--gold); }
.lab-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.lab-tests { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.lab-test-tag { padding: 3px 10px; background: var(--teal-xlt); color: var(--teal); border-radius: 50px; font-size: .72rem; font-weight: 600; }
.lab-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--light); }
.lab-price { font-size: .82rem; color: var(--muted); }
.lab-price strong { font-size: 1.1rem; color: var(--dark); }
.radio-circle {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #c5d8d8; flex-shrink: 0;
  transition: all var(--transition); margin-right: 4px;
}
.lab-card.selected .radio-circle { background: var(--teal); border-color: var(--teal); box-shadow: inset 0 0 0 4px #fff; }

/* Confirm summary */
.summary-box { background: var(--teal-xlt); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(13,110,110,.1); font-size: .9rem; }
.summary-row:last-child { border: none; }
.summary-row .key { color: var(--mid); }
.summary-row .val { font-weight: 600; color: var(--dark); text-align: right; }

/* Success screen */
.success-screen { text-align: center; padding: 48px 24px; }
.success-icon { font-size: 4.5rem; margin-bottom: 20px; animation: bounceIn .5s ease; }
.success-screen h2 { font-family: var(--font-display); font-size: 2rem; color: var(--dark); margin-bottom: 12px; }
.success-screen p { color: var(--muted); font-size: .95rem; margin-bottom: 32px; max-width: 420px; margin-left: auto; margin-right: auto; }
.booking-id { background: var(--teal-xlt); border-radius: var(--radius); padding: 16px 24px; display: inline-block; margin-bottom: 32px; }
.booking-id strong { font-family: monospace; font-size: 1.3rem; color: var(--teal); letter-spacing: .1em; }

/* ══════════════════════════════════════════════════
   LAB PORTAL PAGE
   ══════════════════════════════════════════════════ */
.login-page {
  min-height: 100vh; background: linear-gradient(135deg, var(--dark) 0%, #0d5252 100%);
  display: flex; align-items: center; justify-content: center; padding: 32px;
}
.login-box {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 48px 44px; width: 100%; max-width: 440px;
  box-shadow: 0 32px 80px rgba(0,0,0,.4);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo .logo-mark { margin: 0 auto 12px; width: 56px; height: 56px; }
.login-logo h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--dark); }
.login-logo p { font-size: .82rem; color: var(--muted); }

/* Dashboard */
.portal-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.portal-sidebar {
  background: var(--dark); color: #8ab8b8;
  padding: 0; display: flex; flex-direction: column;
}
.sidebar-logo { padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar-logo strong { display: block; font-family: var(--font-display); color: #fff; font-size: 1rem; }
.sidebar-logo span { font-size: .72rem; color: rgba(255,255,255,.4); }
.sidebar-nav { padding: 16px 12px; flex: 1; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-radius: var(--radius-sm); font-size: .88rem; color: rgba(255,255,255,.6);
  transition: all var(--transition); margin-bottom: 2px;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-nav a.active { background: rgba(20,163,154,.18); color: var(--teal-lt); }
.sidebar-nav .icon { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.06); font-size: .8rem; }
.portal-main { background: #f0f5f5; }
.portal-topbar { background: var(--white); padding: 0 28px; height: 60px; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow-sm); }
.portal-topbar h1 { font-size: 1.05rem; font-weight: 700; color: var(--dark); }
.portal-content { padding: 28px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.stat-card .num { font-family: var(--font-display); font-size: 2.2rem; color: var(--teal); font-weight: 700; }
.stat-card .label { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.stat-card.gold .num { color: var(--gold); }
.stat-card.green .num { color: var(--success); }
.stat-card.red .num { color: var(--danger); }

/* Appointments table */
.data-table-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.table-header { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--light); flex-wrap: wrap; gap: 12px; }
.table-header h3 { font-size: 1rem; font-weight: 700; color: var(--dark); }
.search-input { padding: 8px 14px; border: 1.5px solid #d5e8e8; border-radius: 50px; font-size: .85rem; outline: none; transition: border-color var(--transition); width: 220px; }
.search-input:focus { border-color: var(--teal); }
.filter-tabs { display: flex; gap: 4px; }
.filter-tab { padding: 6px 14px; border-radius: 50px; font-size: .8rem; font-weight: 600; cursor: pointer; border: 1.5px solid transparent; transition: all var(--transition); background: none; color: var(--muted); }
.filter-tab.active { background: var(--teal-xlt); color: var(--teal); border-color: var(--teal); }
.filter-tab:hover { background: var(--teal-xlt); color: var(--teal); }
table { width: 100%; border-collapse: collapse; }
thead th { padding: 12px 18px; text-align: left; font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; background: var(--cream); border-bottom: 1px solid var(--light); }
tbody td { padding: 14px 18px; font-size: .88rem; border-bottom: 1px solid var(--light); color: var(--text); }
tbody tr:last-child td { border: none; }
tbody tr:hover { background: #f8fcfc; }
.action-btn { padding: 5px 12px; border-radius: 20px; font-size: .76rem; font-weight: 700; cursor: pointer; border: none; transition: all var(--transition); }
.action-btn.confirm { background: #d4f5e9; color: #1a8a57; }
.action-btn.confirm:hover { background: #1a8a57; color: #fff; }
.action-btn.reject { background: #fde8e8; color: var(--danger); }
.action-btn.reject:hover { background: var(--danger); color: #fff; }
.action-btn.complete { background: var(--teal-xlt); color: var(--teal); }
.action-btn.complete:hover { background: var(--teal); color: #fff; }
.empty-state { text-align: center; padding: 52px 24px; color: var(--muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box { background: var(--white); border-radius: var(--radius-lg); padding: 36px; max-width: 520px; width: 100%; transform: translateY(20px); transition: transform .2s; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.modal-close { background: none; border: none; font-size: 1.3rem; color: var(--muted); cursor: pointer; }

/* ── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeUp    { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatY    { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes marquee   { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse     { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes bounceIn  { 0% { transform: scale(.5); opacity:0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity:1; } }

/* ── RESPONSIVE ──────────────────────────────────── */
@media(max-width:1024px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}
@media(max-width:768px) {
  .hero-inner, .grid-2, .appt-inner, .hours-map-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-cards { display: none; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .portal-layout { grid-template-columns: 1fr; }
  .portal-sidebar { display: none; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .test-type-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar-inner { flex-direction: column; gap: 4px; }
}
@media(max-width:480px) {
  .grid-3, .grid-4, .stat-cards { grid-template-columns: 1fr; }
  .test-type-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .section, .section-sm { padding: 56px 0; }
}
