:root {
  --bg: #eef5f7;
  --surface: #ffffff;
  --surface-soft: #e9f7f8;
  --ink: #102a33;
  --muted: #63747a;
  --primary: #006d77;
  --primary-dark: #02475b;
  --accent: #f6a11a;
  --accent-soft: #fff3dc;
  --line: #d7e5e8;
  --danger: #9d2d28;
  --shadow: 0 18px 45px rgba(2, 71, 91, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito Sans", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(2, 71, 91, 0.08) 0%, rgba(238, 245, 247, 0) 520px),
    var(--bg);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(18, 111, 104, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 111, 104, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  z-index: -1;
}

.site-header,
main,
.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.brand-banner {
  width: 100%;
  height: auto;
  display: block;
  max-height: 150px;
  object-fit: cover;
}

.quick-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 12px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quick-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.quick-actions a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.58rem 0.85rem;
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.quick-actions a:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 111, 104, 0.45);
  color: var(--primary-dark);
}

main {
  display: grid;
  gap: 18px;
}

.consult-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 360px;
  gap: 1rem;
  align-items: stretch;
  border-radius: 8px;
}

.consult-main,
.doctor-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.consult-main {
  min-height: 390px;
  padding: clamp(1.15rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 85% 18%, rgba(246, 161, 26, 0.18), transparent 30%),
    linear-gradient(135deg, #02475b, #006d77);
  color: #fff;
}

.consult-main .eyebrow {
  color: #ffd58d;
}

.consult-main h2 {
  margin: 0.55rem 0 0.8rem;
  max-width: 760px;
  font-family: "DM Serif Display", serif;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.consult-main p {
  margin: 0;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  font-size: 1.05rem;
}

.consult-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1.35rem;
  max-width: 760px;
  border-radius: 8px;
  background: #fff;
  padding: 0.55rem;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.consult-search span {
  color: var(--primary);
  font-size: 1.45rem;
  font-weight: 900;
  padding-left: 0.35rem;
}

.consult-search input {
  min-height: 46px;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.specialty-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.specialty-rail button {
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0.45rem 0.8rem;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.specialty-rail span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--primary-dark);
}

.doctor-card {
  display: grid;
  align-content: start;
  gap: 1rem;
  background: #fff;
  padding: 1.1rem;
}

.doctor-avatar {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #ffd58d);
  color: var(--primary-dark);
  font-family: "DM Serif Display", serif;
  font-size: 2.15rem;
  font-weight: 900;
}

.doctor-card h3 {
  margin: 0.25rem 0;
  font-family: "DM Serif Display", serif;
  font-size: 2rem;
}

.doctor-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.doctor-card dl {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.doctor-card dl div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  background: #f8fbfc;
}

.doctor-card dt,
.doctor-card dd {
  margin: 0;
}

.doctor-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.doctor-card dd {
  margin-top: 0.25rem;
  color: var(--ink);
  font-weight: 900;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  gap: clamp(1.1rem, 3vw, 2rem);
  align-items: stretch;
  min-height: 420px;
  padding: clamp(1rem, 2.2vw, 1.55rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero-copy {
  align-self: center;
}

.badge {
  display: inline-block;
  margin: 0;
  border-radius: 8px;
  padding: 0.42rem 0.7rem;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.88rem;
}

.hero h2 {
  margin: 0.9rem 0 0.7rem;
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.85rem, 3.45vw, 3.08rem);
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 720px;
}

.hero p {
  margin: 0.35rem 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 650px;
}

.hindi-copy {
  color: #343b36;
  font-weight: 800;
}

.cta-row {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid transparent;
  padding: 0.78rem 1rem;
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 111, 104, 0.2);
}

.btn-secondary {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: #2f3732;
  font-weight: 800;
}

.hero-points li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0.48rem 0.65rem;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
  max-width: 520px;
}

.metric-row div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f6faf7);
  padding: 0.72rem;
  min-height: 76px;
}

.metric-row strong {
  display: block;
  color: var(--primary-dark);
  font-family: "DM Serif Display", serif;
  font-size: 1.6rem;
  line-height: 1;
}

.metric-row span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-weight: 900;
}

.hero-media {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe8e2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  display: block;
}

.hero-panel {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 0.9rem 1rem;
  box-shadow: 0 16px 32px rgba(13, 35, 29, 0.14);
}

.hero-panel p,
.hero-panel strong {
  margin: 0;
}

.panel-label {
  color: var(--primary-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.trust-strip,
.services,
.testimonials,
.booking,
.section-card,
.process {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(27, 42, 36, 0.06);
  padding: clamp(1rem, 2.3vw, 1.7rem);
}

.services {
  background:
    linear-gradient(180deg, #fff, #f6fbfc);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  background: var(--primary-dark);
  color: #fff;
}

.trust-strip div {
  display: grid;
  gap: 0.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  padding-left: 1rem;
}

/* About Us Section */
.about-us {
  background: linear-gradient(135deg, rgba(0, 109, 119, 0.04), rgba(246, 161, 26, 0.04));
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-text p {
  margin: 0;
  color: #4f5953;
  line-height: 1.7;
  font-size: 1rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.highlight .number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  font-family: "DM Serif Display", serif;
}

.highlight .label {
  font-size: 0.85rem;
  color: #4f5953;
  margin-top: 0.5rem;
  font-weight: 600;
}

/* Homeopathy Section */
.homeopathy-intro {
  background: linear-gradient(180deg, #fff, #f6fbfc);
}

.homeopathy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.homeo-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.homeo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(27, 42, 36, 0.08);
}

.homeo-card h4 {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
  color: var(--primary-dark);
  font-family: "DM Serif Display", serif;
}

.homeo-card p {
  margin: 0;
  color: #4f5953;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Latest Findings Section */
.latest-findings {
  background: linear-gradient(135deg, rgba(0, 109, 119, 0.04), rgba(246, 161, 26, 0.04));
}

.research-article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.research-article h4 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: var(--primary-dark);
  font-family: "DM Serif Display", serif;
  line-height: 1.3;
}

.article-meta {
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.research-article p {
  margin: 0 0 1.2rem;
  color: #4f5953;
  line-height: 1.7;
  font-size: 1rem;
}

.research-article h5 {
  margin: 1.5rem 0 0.8rem;
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 700;
}

.research-article ul {
  margin: 0 0 1.2rem 1.5rem;
  padding: 0;
  color: #4f5953;
  line-height: 1.8;
}

.research-article li {
  margin-bottom: 0.6rem;
}

.article-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
}

@media (max-width: 480px) {
  * {
    margin-top: 0;
    margin-bottom: 0;
  }

  body {
    font-size: 15px;
    padding: 0;
    margin: 0;
  }

  .brand-banner {
    max-height: 120px;
  }

  .quick-actions {
    gap: 0.8rem;
    padding: 8px 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .quick-actions a {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  h1 {
    font-size: clamp(1.5rem, 4vw, 2rem) !important;
  }

  h2 {
    font-size: clamp(1.3rem, 3.5vw, 1.8rem) !important;
  }

  h3 {
    font-size: 1.3rem !important;
  }

  h4 {
    font-size: 1rem !important;
  }

  .section-head {
    margin-bottom: 0.5rem;
  }

  .section-head p {
    font-size: 0.9rem;
  }

  .consult-shell {
    padding: 0.8rem 0.8rem;
    margin: 0;
  }

  .consult-main p {
    font-size: 0.95rem;
  }

  .consult-search {
    grid-template-columns: auto 1fr auto;
    gap: 0.4rem;
    padding: 0.4rem;
  }

  .consult-search input {
    font-size: 0.85rem;
  }

  .specialty-rail {
    gap: 0.4rem;
    margin: 0.6rem 0 0 0;
  }

  .specialty-rail button {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin: 0.6rem 0;
  }

  .service-grid article {
    min-height: auto;
    padding: 0.8rem;
  }

  .service-mark {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .care-layout {
    gap: 0.8rem;
  }

  .care-tabs {
    gap: 0.5rem;
  }

  .care-tabs button,
  .care-tabs button.active {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .info-grid > div {
    padding: 1rem;
  }

  .section-card,
  .process {
    padding: 0.8rem;
    margin: 0.6rem 0;
  }

  .steps {
    padding-left: 1.5rem;
  }

  .steps li {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .testimonial-grid blockquote {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .about-highlights {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .highlight {
    padding: 1rem;
  }

  .highlight .number {
    font-size: 1.8rem;
  }

  .highlight .label {
    font-size: 0.8rem;
  }

  .about-text p {
    font-size: 0.9rem;
  }

  .homeopathy-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .homeo-card {
    padding: 1rem;
  }

  .homeo-card h4 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }

  .homeo-card p {
    font-size: 0.9rem;
  }

  .research-article {
    padding: 1rem;
  }

  .research-article h4 {
    font-size: 1.1rem;
  }

  .research-article p,
  .research-article li {
    font-size: 0.9rem;
  }

  .research-article h5 {
    font-size: 1rem;
  }

  .article-footer {
    font-size: 0.85rem;
  }

  .faq-item {
    padding: 0.8rem;
  }

  .section-head h3 {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 768px) {
  .about-content,
  .homeopathy-grid {
    grid-template-columns: 1fr;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .research-article {
    padding: 1.5rem;
  }
}

.trust-strip div:first-child {
  border-left: 0;
  padding-left: 0;
}

.trust-strip strong {
  font-size: 1.05rem;
}

.trust-strip span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.care-map {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(238, 245, 241, 0.94), rgba(255, 255, 255, 0.96)),
    #fff;
  box-shadow: 0 10px 26px rgba(27, 42, 36, 0.06);
  padding: clamp(1rem, 2.3vw, 1.7rem);
}

.care-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1rem;
}

.care-tabs {
  display: grid;
  gap: 0.55rem;
}

.care-tabs button,
.mode-picker button,
.date-shortcuts button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-align: left;
  padding: 0.68rem 0.8rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.care-tabs button:hover,
.mode-picker button:hover,
.date-shortcuts button:hover,
.service-card:hover {
  transform: translateY(-2px);
}

.care-tabs button.active,
.mode-picker button.active,
.date-shortcuts button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.care-panel {
  display: none;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(250, 238, 230, 0.72)),
    #fff;
  padding: clamp(1rem, 2vw, 1.4rem);
}

.care-panel.active {
  display: grid;
  align-content: center;
  animation: panelIn 0.25s ease;
}

.care-panel h4 {
  margin: 0.6rem 0 1rem;
  max-width: 700px;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.care-meter {
  height: 12px;
  width: min(100%, 520px);
  border-radius: 8px;
  background: #e3e9e5;
  overflow: hidden;
}

.care-meter span {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.section-head h3 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: 0;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  max-width: 520px;
}

.service-grid,
.testimonial-grid,
.info-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid article,
.testimonial-grid blockquote,
.info-grid > div {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
}

.service-grid article {
  min-height: 178px;
}

.service-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card::after {
  content: "Book";
  position: absolute;
  right: 0.85rem;
  top: 0.85rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: #875307;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.22rem 0.5rem;
}

.service-card:focus {
  outline: 3px solid rgba(18, 111, 104, 0.2);
}

.service-card:hover,
.service-card:focus {
  border-color: rgba(18, 111, 104, 0.42);
  box-shadow: 0 16px 28px rgba(27, 42, 36, 0.08);
}

.service-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--surface-soft), #fff);
  color: var(--primary-dark);
  font-weight: 900;
  margin-bottom: 0.7rem;
  border: 1px solid var(--line);
}

.service-grid h4,
.info-grid h4 {
  margin: 0;
  font-size: 1.04rem;
}

.service-grid p,
.info-grid p,
.testimonial-grid blockquote {
  margin: 0.5rem 0 0;
  color: #4f5953;
  line-height: 1.55;
}

.steps {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  counter-reset: steps;
  list-style: none;
}

.steps li {
  counter-increment: steps;
  color: #343b36;
  font-weight: 800;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.7rem;
  align-items: start;
}

.steps li::before {
  content: counter(steps);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--primary-dark);
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  background: #fff;
  margin-bottom: 0.55rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.faq p {
  margin: 0.5rem 0 0;
  color: #4d554f;
}

.booking {
  background:
    linear-gradient(90deg, rgba(238, 245, 241, 0.9), rgba(255, 255, 255, 0.96)),
    #fff;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.booking-form[hidden],
.booking-gate[hidden],
.auth-modal[hidden],
.auth-form[hidden],
#patientSessionNote[hidden] {
  display: none;
}

.booking-gate {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
  margin-bottom: 1rem;
}

.booking-gate strong {
  display: block;
  margin-bottom: 0.25rem;
}

.booking-gate p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.booking-form label,
.auth-form label {
  font-weight: 800;
  color: #303831;
  display: grid;
  gap: 0.38rem;
}

.booking-progress,
.mode-picker,
.date-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.booking-progress {
  margin-bottom: 0.2rem;
}

.booking-progress span {
  flex: 1;
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
  padding: 0.68rem 0.75rem;
  text-align: center;
}

.booking-progress span.active {
  background: var(--surface-soft);
  color: var(--primary-dark);
  border-color: rgba(18, 111, 104, 0.24);
}

.mode-picker button,
.date-shortcuts button {
  text-align: center;
}

.booking-form input,
.booking-form select,
.booking-form textarea,
.auth-form input,
#statusFilter,
.admin-action-form input,
.admin-action-form select,
.admin-action-form textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.72rem 0.75rem;
  font-family: inherit;
  color: var(--ink);
  min-height: 44px;
}

.booking-form textarea,
.admin-action-form textarea {
  min-height: 112px;
  resize: vertical;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus,
.auth-form input:focus,
#statusFilter:focus,
.admin-action-form input:focus,
.admin-action-form select:focus,
.admin-action-form textarea:focus {
  outline: 3px solid rgba(18, 111, 104, 0.18);
  border-color: rgba(18, 111, 104, 0.58);
}

.full-width {
  grid-column: 1 / -1;
}

.small-note {
  margin: 0.75rem 0 0;
  font-weight: 800;
  color: #59625d;
}

.result-box {
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 0.9rem;
  background: #fff;
  color: #343b36;
  font-weight: 800;
  display: none;
}

.result-box.show {
  display: block;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(16, 24, 20, 0.48);
}

.auth-dialog {
  width: min(100%, 520px);
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(10, 22, 17, 0.28);
  padding: 1.15rem;
}

.auth-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.auth-head h3 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-size: 1.8rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.auth-tabs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 42px;
}

.auth-tabs button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.auth-form {
  display: grid;
  gap: 0.8rem;
}

.site-footer {
  margin-top: 1rem;
  padding: 1rem 0 1.4rem;
  text-align: center;
  color: #4f5953;
  font-weight: 800;
}

.site-footer p {
  margin: 0.2rem 0;
}

.site-footer a,
.result-box a {
  color: var(--primary);
  font-weight: 900;
}

#statusFilter {
  min-width: 220px;
}

.admin-list {
  display: grid;
  gap: 0.9rem;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem;
  background: #fff;
}

.admin-card h4 {
  margin: 0;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-card-head p {
  margin: 0;
}

.status-chip {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.18rem 0.55rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: #743916;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-grid {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0.65rem 0;
}

.admin-grid p {
  margin: 0;
}

.admin-call-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.8rem 0;
}

.payment-instruction {
  display: grid;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
  padding: 0.8rem;
  margin: 0.7rem 0;
}

.payment-instruction p {
  margin: 0;
}

.admin-action-form {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-action-form label {
  font-weight: 800;
  color: #303831;
  display: grid;
  gap: 0.35rem;
}

.admin-card details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.58rem 0.7rem;
  margin: 0.55rem 0;
  background: #fff;
}

.admin-card summary {
  font-weight: 900;
  cursor: pointer;
}

.admin-card pre {
  margin: 0.45rem 0 0;
  white-space: pre-wrap;
  background: #f7f8f5;
  border-radius: 8px;
  padding: 0.55rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal 0.7s ease forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 0.05s;
}

.reveal:nth-of-type(3) {
  animation-delay: 0.1s;
}

.reveal:nth-of-type(4) {
  animation-delay: 0.14s;
}

.reveal:nth-of-type(5) {
  animation-delay: 0.18s;
}

.reveal:nth-of-type(6) {
  animation-delay: 0.22s;
}

.reveal:nth-of-type(7) {
  animation-delay: 0.26s;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .consult-shell {
    grid-template-columns: 1fr;
  }

  .consult-main {
    min-height: auto;
  }

  .doctor-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .doctor-card dl {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media,
  .hero-media img {
    min-height: 360px;
  }

  .trust-strip,
  .care-layout,
  .service-grid,
  .testimonial-grid,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1160px);
  }

  .site-header {
    flex-direction: column;
    align-items: start;
    padding-top: 18px;
  }

  .brand-banner {
    max-height: 118px;
  }

  .quick-actions {
    justify-content: flex-start;
  }

  .quick-actions a {
    padding: 0.52rem 0.65rem;
  }

  .hero {
    padding: 1rem;
  }

  .hero h2 {
    font-size: 2.05rem;
  }

  .hero-media,
  .hero-media img {
    min-height: 178px;
  }

  .hero-media {
    order: -1;
  }

  .hero-panel {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 0.65rem 0.75rem;
  }

  .hero-panel strong {
    font-size: 0.88rem;
  }

  .booking-form,
  .metric-row,
  .trust-strip,
  .care-layout,
  .care-tabs,
  .doctor-card,
  .doctor-card dl,
  .service-grid,
  .testimonial-grid,
  .info-grid,
  .admin-grid,
  .admin-action-form,
  .admin-call-row {
    grid-template-columns: 1fr;
  }

  .care-panel {
    min-height: 190px;
  }

  .booking-progress,
  .mode-picker,
  .date-shortcuts {
    display: grid;
    grid-template-columns: 1fr;
  }

  .booking-gate {
    display: grid;
  }

  .admin-call-row {
    display: grid;
  }

  .trust-strip div,
  .trust-strip div:first-child {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    padding: 0.85rem 0 0;
  }

  .trust-strip div:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .btn {
    width: 100%;
  }

  .cta-row {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Welcome / Login Screen */
.welcome-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.welcome-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  text-align: center;
}

.welcome-title {
  margin: 0 0 0.5rem;
  font-family: "DM Serif Display", serif;
  color: var(--primary-dark);
  font-size: 1.75rem;
}

.welcome-greeting {
  margin: 0 0 0.25rem;
  color: var(--accent);
  font-weight: 700;
}

.welcome-subtitle {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.login-label input {
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 1rem;
}

.btn-large {
  width: 100%;
  font-size: 1.05rem;
}

.login-help {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-error {
  margin-top: 1rem;
  color: var(--danger);
  font-weight: 700;
}
