:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18332e;
  background: #f5f7f5;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f5f7f5; }
button, input, select { font: inherit; }
a { color: inherit; }

.booking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
}

.booking-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.booking-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: #155f52;
  box-shadow: 0 8px 18px rgba(21, 95, 82, .18);
}
.booking-brand-mark svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.booking-brand strong, .booking-brand small { display: block; }
.booking-brand strong { font-size: 15px; }
.booking-brand small { margin-top: 2px; color: #71827e; font-size: 12px; }
.header-help { display: flex; align-items: center; gap: 8px; color: #49675f; font-size: 12px; font-weight: 750; }
.header-help > span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; background: #2b806e; font-size: 10px; }

.booking-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #143f38;
}
.booking-hero::before,
.booking-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .09);
}
.booking-hero::before { width: 440px; height: 440px; top: -285px; right: 4%; }
.booking-hero::after { width: 240px; height: 240px; right: 19%; bottom: -190px; }
.hero-inner { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 66px 0 92px; }
.eyebrow { margin: 0 0 12px; color: #9bd5c8; font-size: 11px; font-weight: 850; letter-spacing: .18em; }
h1 { max-width: 720px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6vw, 68px); font-weight: 500; line-height: 1.04; letter-spacing: -.035em; }
.hero-inner > p:not(.eyebrow) { max-width: 610px; margin: 20px 0 0; color: #cfe0dc; font-size: 17px; line-height: 1.6; }
.trust-list { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: #e4efec; font-size: 13px; font-weight: 650; }
.trust-list span { display: inline-flex; align-items: center; gap: 8px; }
.trust-list b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #143f38; background: #90d4be; font-size: 11px; }

.booking-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  width: min(1060px, calc(100% - 40px));
  margin: -48px auto 48px;
  border: 1px solid #dce5e1;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 70px rgba(22, 66, 57, .12);
}

.booking-progress { padding: 38px 30px; background: #edf4f1; }
.progress-label { margin: 0 0 25px; color: #5b7b73; font-size: 10px; font-weight: 900; letter-spacing: .17em; }
.booking-progress ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.booking-progress li { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 13px; min-height: 84px; color: #80908c; }
.booking-progress li:not(:last-child)::after { content: ""; position: absolute; top: 45px; left: 22px; width: 2px; height: 39px; border-radius: 2px; background: linear-gradient(#bfd3cc, #dce6e2); }
.step-marker {
  position: relative;
  display: grid;
  place-items: center;
  align-self: start;
  width: 46px;
  height: 46px;
  border: 1px solid #cbdad5;
  border-radius: 15px;
  color: #6f8881;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 5px 15px rgba(31, 83, 71, .05);
}
.step-marker svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-marker em { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 18px; height: 18px; border: 2px solid #edf4f1; border-radius: 50%; color: #647b74; background: #dfe9e5; font-size: 9px; font-style: normal; font-weight: 900; }
.booking-progress li strong, .booking-progress li small { display: block; }
.booking-progress li strong { margin-top: 4px; color: #516b64; font-size: 13px; }
.booking-progress li small { margin-top: 4px; font-size: 11px; line-height: 1.35; }
.booking-progress li.active .step-marker { color: #fff; border-color: #176657; background: linear-gradient(145deg, #23806e, #115b4d); box-shadow: 0 9px 22px rgba(23, 102, 87, .22), 0 0 0 5px rgba(23, 102, 87, .07); }
.booking-progress li.active .step-marker em { color: #176657; background: #bce4d6; }
.booking-progress li.active strong { color: #153f37; }
.booking-progress li.complete .step-marker { color: transparent; border-color: #8fc1b4; background: #dceee8; box-shadow: none; }
.booking-progress li.complete .step-marker svg,
.booking-progress li.complete .step-marker em { opacity: 0; }
.booking-progress li.complete .step-marker::after { content: "✓"; position: absolute; color: #176657; font-size: 18px; font-weight: 900; }
.privacy-aside { display: flex; gap: 10px; margin-top: 30px; padding-top: 24px; border-top: 1px solid #d6e2de; }
.privacy-aside > span { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 9px; color: #176657; background: #d8ebe4; font-weight: 900; }
.privacy-aside p { margin: 0; color: #70827c; font-size: 11px; line-height: 1.5; }
.privacy-aside strong { display: block; margin-bottom: 2px; color: #345c52; }

.booking-card { min-width: 0; padding: 32px 46px 40px; }
.prototype-note { display: flex; gap: 9px; align-items: center; margin-bottom: 30px; padding: 10px 12px; border-radius: 10px; color: #6e654a; background: #faf5e7; font-size: 12px; }
.prototype-note span { padding: 4px 7px; border-radius: 6px; color: #fff; background: #9d7a2f; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.prototype-note.error { color: #7e3030; background: #fff0f0; }
.prototype-note.error span { background: #a63d3d; }
.loading-message { grid-column: 1 / -1; margin: 0; padding: 18px; border: 1px dashed #ccdcd6; border-radius: 10px; color: #667a74; text-align: center; }
.booking-step { min-height: 480px; }
.step-heading > span { color: #348271; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.step-heading h2 { margin: 8px 0 0; color: #173e36; font-family: Georgia, "Times New Roman", serif; font-size: clamp(29px, 4vw, 40px); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
.step-heading p { margin: 12px 0 28px; color: #6f7f7b; font-size: 14px; line-height: 1.55; }
fieldset { margin: 0; padding: 0; border: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.service-option { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; min-height: 108px; padding: 16px; border: 1px solid #dbe5e1; border-radius: 15px; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.service-option:hover { transform: translateY(-2px); border-color: #8bb7aa; box-shadow: 0 8px 22px rgba(22, 89, 76, .08); }
.service-option:has(input:checked) { border-color: #257765; background: #f3f8f6; box-shadow: inset 0 0 0 1px #257765; }
.service-option input { position: absolute; opacity: 0; }
.service-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #176657; background: linear-gradient(145deg, #e8f4ef, #dcece6); box-shadow: inset 0 0 0 1px rgba(34, 116, 97, .06); }
.service-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-option strong, .service-option small { display: block; }
.service-option strong { color: #23483f; font-size: 13px; line-height: 1.25; }
.service-option small { margin-top: 5px; color: #788781; font-size: 10px; line-height: 1.35; }
.service-arrow { width: 17px; height: 17px; fill: none; stroke: #82958f; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease, stroke .18s ease; }
.service-option:hover .service-arrow,
.service-option:has(input:checked) .service-arrow { transform: translateX(2px); stroke: #176657; }
.service-option:has(input:checked) .service-icon { color: #fff; background: linear-gradient(145deg, #2d8875, #176657); box-shadow: 0 7px 16px rgba(23, 102, 87, .18); }
.field-label, .form-grid label > span { display: block; margin: 22px 0 8px; color: #34554d; font-size: 12px; font-weight: 800; }
select, .form-grid input { width: 100%; min-height: 49px; padding: 0 14px; border: 1px solid #cedbd6; border-radius: 11px; color: #203d36; background: #fff; font-size: 14px; }
select:focus, .form-grid input:focus { border-color: #327b6b; outline: 3px solid rgba(35, 117, 99, .1); }

.date-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.date-options label { position: relative; cursor: pointer; }
.date-options input { position: absolute; opacity: 0; }
.date-options span { display: grid; place-items: center; min-height: 78px; padding: 8px; border: 1px solid #d8e3df; border-radius: 13px; color: #60756e; background: #fff; font-size: 11px; text-align: center; }
.date-options b { display: block; color: #244b42; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.date-options input:checked + span { color: #fff; border-color: #176657; background: #176657; box-shadow: 0 9px 20px rgba(23, 102, 87, .18); }
.date-options input:checked + span b { color: #fff; }
.time-fieldset { margin-top: 24px; }
.period-label { margin: 14px 0 8px; color: #7a8884; font-size: 11px; font-weight: 750; }
.time-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.time-options label { position: relative; cursor: pointer; }
.time-options input { position: absolute; opacity: 0; }
.time-options span { display: grid; place-items: center; min-height: 44px; border: 1px solid #d5e1dc; border-radius: 10px; color: #315a50; background: #fff; font-size: 12px; font-weight: 750; }
.time-options span small { color: #71837e; font-size: 9px; font-weight: 650; }
.time-options input:checked + span { color: #176657; border-color: #3f8b79; background: #eaf4f0; box-shadow: inset 0 0 0 1px #3f8b79; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.patient-mode { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0 2px; padding: 0; border: 0; }
.patient-mode label { position: relative; cursor: pointer; }
.patient-mode input { position: absolute; opacity: 0; pointer-events: none; }
.patient-mode span { display: flex; min-height: 76px; flex-direction: column; justify-content: center; padding: 14px 16px; border: 1px solid #cedbd6; border-radius: 12px; color: #34554d; background: #fff; transition: .2s ease; }
.patient-mode strong { font-size: 13px; }
.patient-mode small { margin-top: 4px; color: #71837e; font-size: 11px; }
.patient-mode input:checked + span { border-color: #2f7a69; box-shadow: 0 0 0 3px rgba(47, 122, 105, .1); background: #edf7f3; }
.patient-mode input:focus-visible + span { outline: 3px solid rgba(35, 117, 99, .18); }
.verification-actions { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.verification-message { margin: 0; color: #516d65; font-size: 12px; line-height: 1.45; }
.verification-panel { display: grid; grid-template-columns: minmax(180px, 1fr) auto; align-items: end; gap: 12px; margin-top: 16px; padding: 16px; border: 1px solid #d8e6e1; border-radius: 12px; background: #f7faf9; }
.verification-panel label > span { display: block; margin-bottom: 8px; color: #34554d; font-size: 12px; font-weight: 800; }
.verification-panel input { width: 100%; min-height: 47px; padding: 0 14px; border: 1px solid #cedbd6; border-radius: 11px; font-size: 18px; letter-spacing: .22em; }
.compact-success { margin-top: 16px; padding: 14px; }
.form-grid input:disabled, .form-grid select:disabled, .patient-mode input:disabled + span { color: #526a63; background: #eef3f1; cursor: default; }
.form-grid label > span small { color: #87938f; font-weight: 500; }
.required-badge { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; color: #8a332c; background: #fbe9e6; font-size: 9px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.full-field { grid-column: 1 / -1; }
.form-grid label > small { display: block; margin-top: 7px; color: #657b74; font-size: 11px; line-height: 1.45; }
.data-boundary { display: flex; gap: 12px; margin-top: 24px; padding: 14px; border: 1px solid #d8e6e1; border-radius: 12px; background: #f3f8f6; }
.data-boundary > span { display: grid; place-items: center; flex: 0 0 25px; height: 25px; border-radius: 50%; color: #fff; background: #347e6d; font-family: Georgia, serif; font-weight: 700; }
.data-boundary p { margin: 0; color: #60756e; font-size: 12px; line-height: 1.5; }
.data-boundary strong { color: #305b51; }
.consent-row { display: flex; gap: 10px; align-items: start; margin-top: 18px; color: #526963; font-size: 12px; line-height: 1.45; cursor: pointer; }
.consent-row input { width: 17px; height: 17px; margin: 0; accent-color: #176657; }
.form-error { margin: 13px 0 0; color: #a13f3f; font-size: 12px; }

.summary-box { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid #dbe5e1; border-radius: 15px; background: #dbe5e1; }
.summary-box div { min-height: 94px; padding: 18px; background: #f8faf9; }
.summary-box span, .summary-box strong { display: block; }
.summary-box span { color: #7a8984; font-size: 11px; }
.summary-box strong { margin-top: 6px; color: #21473e; font-size: 14px; line-height: 1.4; }
.summary-box a { color: #176f60; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prototype-success { display: flex; gap: 13px; margin-top: 20px; padding: 17px; border-radius: 13px; color: #345e54; background: #e7f3ee; }
.prototype-success > span { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; color: #fff; background: #2d806c; font-weight: 900; }
.prototype-success p { margin: 0; font-size: 12px; line-height: 1.5; }
.prototype-success strong { display: block; color: #245347; font-size: 13px; }

.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 24px; border-top: 1px solid #e7ecea; }
.primary-button, .secondary-button { min-height: 47px; padding: 0 22px; border-radius: 11px; cursor: pointer; font-weight: 800; }
.primary-button { min-width: 145px; border: 0; color: #fff; background: #176657; box-shadow: 0 10px 22px rgba(23, 102, 87, .17); }
.primary-button:hover { background: #10594b; }
.primary-button:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }
.secondary-button { border: 1px solid #d2dfda; color: #31594f; background: #fff; }
.secondary-button:hover { background: #f5f8f7; }
button:focus-visible, a:focus-visible, label:has(input:focus-visible) { outline: 3px solid rgba(41, 126, 107, .27); outline-offset: 3px; }
[hidden] { display: none !important; }

.booking-footer { display: flex; justify-content: space-between; width: min(1060px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 38px; color: #71827d; font-size: 11px; }
.booking-footer nav { display: flex; gap: 18px; }
.booking-footer a { text-decoration: none; }

@media (max-width: 900px) {
  .booking-shell { grid-template-columns: 1fr; width: min(720px, calc(100% - 32px)); }
  .booking-progress { padding: 22px 28px; }
  .booking-progress ol { grid-template-columns: repeat(4, 1fr); }
  .booking-progress li { display: flex; align-items: center; min-height: auto; }
  .booking-progress li:not(:last-child)::after { top: 20px; left: 40px; width: calc(100% - 40px); height: 2px; }
  .booking-progress li div { display: none; }
  .step-marker { position: relative; z-index: 1; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 13px; }
  .step-marker svg { width: 19px; height: 19px; }
  .step-marker em { right: -4px; bottom: -4px; width: 17px; height: 17px; }
  .privacy-aside, .progress-label { display: none; }
  .booking-card { padding: 30px 38px 38px; }
}

@media (max-width: 620px) {
  .booking-header, .hero-inner { width: min(100% - 28px, 1160px); }
  .booking-header { padding: 17px 0; }
  .header-help { font-size: 0; }
  .header-help > span { font-size: 10px; }
  .hero-inner { padding: 48px 0 76px; }
  h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-inner > p:not(.eyebrow) { font-size: 15px; }
  .trust-list { display: grid; gap: 11px; }
  .booking-shell { width: min(100% - 20px, 720px); margin-top: -38px; border-radius: 19px; }
  .booking-progress { padding: 18px 20px; }
  .booking-progress ol { justify-items: stretch; }
  .booking-progress li { gap: 0; }
  .booking-progress li:not(:last-child)::after { top: 18px; left: 36px; width: calc(100% - 36px); }
  .step-marker { width: 36px; height: 36px; flex-basis: 36px; border-radius: 12px; }
  .step-marker svg { width: 17px; height: 17px; }
  .step-marker em { width: 15px; height: 15px; font-size: 8px; }
  .booking-card { padding: 22px 20px 28px; }
  .prototype-note { align-items: flex-start; flex-direction: column; line-height: 1.45; }
  .booking-step { min-height: auto; }
  .service-grid { grid-template-columns: 1fr; }
  .service-option { min-height: 82px; }
  .date-options { grid-template-columns: repeat(5, minmax(58px, 1fr)); gap: 6px; overflow-x: auto; padding-bottom: 5px; }
  .date-options span { min-height: 70px; }
  .time-options { grid-template-columns: repeat(2, 1fr); }
  .form-grid, .summary-box, .patient-mode, .verification-panel { grid-template-columns: 1fr; }
  .verification-actions { align-items: stretch; flex-direction: column; }
  .full-field { grid-column: auto; }
  .form-actions { flex-direction: column-reverse; }
  .primary-button, .secondary-button { width: 100%; }
  .booking-footer { align-items: flex-start; flex-direction: column; gap: 12px; width: min(100% - 28px, 1060px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
