:root {
  --ink: #12212b;
  --muted: #62727c;
  --line: #dce8e6;
  --surface: #ffffff;
  --surface-soft: #f4fbf9;
  --teal: #0e9f92;
  --teal-dark: #08756f;
  --gold: #d7a73a;
  --gold-soft: #fff5d8;
  --danger: #b54708;
  --shadow: 0 22px 70px rgba(18, 33, 43, 0.12);
  --radius: 8px;
  font-family: "Noto Sans Myanmar", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f8fbfa;
  color: var(--ink);
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 232, 230, 0.9);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  width: 100%;
}

.brand {
  align-items: center;
  display: flex;
  flex: 0 1 210px;
  min-width: 150px;
}

.brand-logo {
  display: block;
  height: 54px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  width: 210px;
}

.nav {
  align-items: center;
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

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

.nav-cta,
.primary-btn,
.secondary-btn,
.book-btn {
  align-items: center;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  text-align: center;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
  white-space: nowrap;
}

.nav-cta,
.primary-btn,
.book-btn {
  background: var(--teal);
  box-shadow: 0 14px 30px rgba(14, 159, 146, 0.22);
  color: white;
}

.secondary-btn {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}

.nav-cta:hover,
.primary-btn:hover,
.book-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.nav-cta svg,
.primary-btn svg,
.secondary-btn svg,
.book-btn svg,
.notice svg,
.floating-status svg,
.selected-doctor svg {
  height: 18px;
  width: 18px;
}

main {
  overflow: hidden;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  min-height: auto;
  padding: clamp(38px, 5vw, 60px) clamp(18px, 4vw, 56px) 38px;
  width: 100%;
}

.hero > *,
.booking-shell > *,
.request-section > *,
.support-band > * {
  min-width: 0;
}

.hero-copy {
  max-width: 650px;
  min-width: 0;
  width: 100%;
}

.eyebrow {
  color: var(--teal-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(34px, 5.2vw, 64px);
  letter-spacing: 0;
  line-height: 1.18;
  margin-bottom: 22px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(24px, 3.6vw, 38px);
  letter-spacing: 0;
  line-height: 1.25;
  margin-bottom: 0;
}

.hero-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.hero-stats {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 540px;
  padding-top: 22px;
}

.hero-stats div {
  min-width: 0;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: var(--ink);
  font-size: 24px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.hero-media {
  min-height: 430px;
  position: relative;
  width: 100%;
}

.hero-media img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 100%;
}

.floating-status {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(220, 232, 230, 0.95);
  border-radius: var(--radius);
  bottom: 22px;
  box-shadow: 0 18px 40px rgba(18, 33, 43, 0.12);
  display: flex;
  gap: 12px;
  left: 22px;
  max-width: min(420px, calc(100% - 44px));
  padding: 14px;
  position: absolute;
}

.floating-status > span {
  align-items: center;
  background: var(--gold-soft);
  border-radius: 8px;
  color: var(--gold);
  display: inline-flex;
  flex: 0 0 40px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.floating-status strong,
.floating-status small {
  display: block;
}

.floating-status div {
  min-width: 0;
}

.floating-status small {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.floating-status strong {
  overflow-wrap: anywhere;
}

.booking-shell {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: 320px minmax(0, 1fr);
  padding: 32px clamp(18px, 4vw, 56px) 58px;
  width: 100%;
}

.filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(18, 33, 43, 0.07);
  display: grid;
  gap: 18px;
  padding: 20px;
  position: sticky;
  top: 96px;
}

.section-heading {
  display: grid;
  gap: 0;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 46px;
  outline: 0;
  padding: 0 13px;
  width: 100%;
}

textarea {
  line-height: 1.5;
  min-height: 116px;
  padding: 12px 13px;
  resize: vertical;
}

.hidden-field {
  display: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14, 159, 146, 0.12);
}

.notice {
  align-items: flex-start;
  background: var(--gold-soft);
  border: 1px solid rgba(215, 167, 58, 0.35);
  border-radius: var(--radius);
  color: var(--danger);
  display: flex;
  gap: 10px;
  padding: 12px;
}

.notice p {
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.doctor-panel {
  min-width: 0;
}

.panel-toolbar {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-toolbar p {
  color: var(--muted);
  font-weight: 700;
  margin: 0;
}

.segmented {
  background: #eaf4f2;
  border-radius: var(--radius);
  display: flex;
  padding: 4px;
}

.segment {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  min-height: 34px;
  padding: 0 12px;
}

.segment.active {
  background: white;
  box-shadow: 0 8px 20px rgba(18, 33, 43, 0.08);
  color: var(--teal-dark);
}

.doctor-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.doctor-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(18, 33, 43, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 470px;
  padding: 18px;
}

.doctor-top {
  align-items: center;
  display: flex;
  gap: 12px;
}

.avatar {
  align-items: center;
  background: linear-gradient(135deg, #e9fffb, #fff2c5);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  display: flex;
  flex: 0 0 58px;
  font-weight: 800;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.doctor-card h3 {
  font-size: 18px;
  line-height: 1.45;
  margin-bottom: 4px;
}

.specialty {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}

.bio {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 9px;
}

.price-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding: 13px 0;
}

.price-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.price-row strong {
  color: var(--ink);
}

.slots {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.slot {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  min-height: 44px;
  padding: 6px 8px;
}

.slot:hover,
.slot.active {
  background: var(--gold-soft);
  border-color: var(--gold);
}

.book-btn {
  width: 100%;
}

.request-section {
  background: #10232b;
  color: white;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  padding: 58px clamp(18px, 4vw, 56px);
  width: 100%;
}

.request-section .eyebrow {
  color: #72eadb;
}

.request-form {
  background: white;
  border-radius: var(--radius);
  color: var(--ink);
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
}

.selected-doctor {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 12px;
  padding: 14px;
}

.selected-doctor > span {
  align-items: center;
  background: var(--teal);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.selected-doctor strong,
.selected-doctor small {
  display: block;
}

.selected-doctor small {
  color: var(--muted);
  margin-top: 3px;
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.success-message {
  color: var(--teal-dark);
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.support-band {
  align-items: center;
  background: white;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  padding: 42px clamp(18px, 4vw, 56px);
  width: 100%;
}

.support-band p {
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}

.empty-state {
  background: white;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
  padding: 28px;
}

@media (max-width: 1100px) {
  .doctor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .hero-media {
    min-height: 400px;
  }
}

@media (max-width: 840px) {
  .nav {
    display: none;
  }

  .booking-shell,
  .request-section,
  .support-band {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }
}

@media (max-width: 620px) {
  .topbar {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand {
    flex-basis: 166px;
    min-width: 130px;
  }

  .brand-logo {
    height: 42px;
    width: 166px;
  }

  .nav-cta {
    flex: 0 0 44px;
    font-size: 0;
    min-height: 40px;
    padding: 0;
    width: 44px;
  }

  .hero {
    display: block;
    max-width: 100vw;
    padding: 30px 14px 32px;
  }

  .hero-copy {
    max-width: calc(100vw - 28px);
    width: calc(100vw - 28px);
  }

  h1 {
    font-size: 29px;
    line-height: 1.3;
  }

  .hero-copy p {
    font-size: 16px;
    max-width: 340px;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin: 22px 0;
    max-width: calc(100vw - 28px);
    width: calc(100vw - 28px);
  }

  .hero-actions a {
    min-height: 46px;
    white-space: normal;
    width: 100%;
  }

  .hero-stats {
    gap: 8px;
    max-width: calc(100vw - 28px);
    width: calc(100vw - 28px);
  }

  .hero-stats strong {
    font-size: 21px;
    line-height: 1.2;
  }

  .hero-stats span {
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .hero-media {
    margin-top: 24px;
    max-width: calc(100vw - 28px);
    min-height: 280px;
    width: calc(100vw - 28px);
  }

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

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
  }

  .panel-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented {
    width: max-content;
  }

  .booking-shell,
  .request-section,
  .support-band {
    padding-left: 14px;
    padding-right: 14px;
  }

  .floating-status {
    bottom: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
  }

  .floating-status small {
    display: none;
  }
}
