body {
  min-height: 100vh;
}

.booking-header {
  border-bottom: 1px solid var(--cetyk-line);
  background: white;
}

.booking-header-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.booking-header-inner > a:last-child {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--cetyk-blue);
  font-weight: 750;
}

.booking-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--cetyk-navy);
  text-decoration: none;
}

.booking-brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.booking-brand span {
  display: grid;
}

.booking-brand small {
  color: var(--cetyk-muted);
}

.booking-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding-block: 42px 80px;
}

.booking-panel,
.booking-summary {
  border: 1px solid var(--cetyk-line);
  border-radius: 8px;
  background: white;
}

.booking-panel {
  min-height: 680px;
  padding: 36px;
}

.booking-intro {
  max-width: 720px;
}

.booking-intro h1 {
  margin: 0;
  color: var(--cetyk-navy);
  font-size: 2.45rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.booking-intro > p:last-child,
.step-heading > p:last-child {
  color: var(--cetyk-muted);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin: 34px 0;
  padding: 0;
  list-style: none;
}

.stepper li {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 7px;
  color: #536d7e;
  font-size: 0.75rem;
  text-align: center;
}

.stepper span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #aec5d5;
  border-radius: 50%;
  background: white;
  font-weight: 850;
}

.stepper .current,
.stepper .done {
  color: var(--cetyk-navy);
}

.stepper .current span {
  border-color: var(--cetyk-blue);
  background: var(--cetyk-blue);
  color: white;
}

.stepper .done span {
  border-color: var(--cetyk-turquoise);
  background: #e0f7f3;
  color: #08786b;
}

.step-content {
  min-height: 370px;
}

.step-heading h2 {
  margin: 0;
  color: var(--cetyk-navy);
  font-size: 1.85rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.option {
  display: grid;
  min-height: 112px;
  align-content: center;
  gap: 7px;
  border: 1px solid #abc5d6;
  border-radius: 7px;
  padding: 18px;
  background: white;
  color: var(--cetyk-ink);
  text-align: left;
  cursor: pointer;
  word-break: normal;
  overflow-wrap: break-word;
}

.option:hover {
  border-color: var(--cetyk-blue);
  background: #f4f9fc;
}

.option.selected {
  border: 2px solid var(--cetyk-blue);
  background: #eaf4fb;
}

.option b {
  color: var(--cetyk-navy);
  font-size: 1.02rem;
}

.option span {
  color: var(--cetyk-muted);
  font-size: 0.9rem;
}

.option small {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: #e2f7f3;
  color: #08745d;
  font-size: 0.72rem;
  font-weight: 800;
}

.option:disabled {
  border-style: dashed;
  background: #f3f6f8;
  cursor: not-allowed;
  opacity: 0.72;
}

.option:disabled small {
  background: #e8edf0;
  color: #526b7b;
}

.inline-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  border-left: 3px solid var(--cetyk-turquoise);
  padding: 14px 16px;
  background: #e8f7f5;
  color: var(--cetyk-navy);
}

.inline-notice a {
  color: #075985;
  font-weight: 800;
}

.date-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.date-option,
.time-option {
  min-width: 0;
  border: 1px solid #cadde6;
  border-radius: 8px;
  background: #fff;
  color: var(--cetyk-navy);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.date-option {
  display: grid;
  min-height: 94px;
  place-items: center;
  padding: 12px 8px;
  text-transform: capitalize;
}

.date-option span,
.date-option small {
  color: #527081;
  font-size: 0.72rem;
  font-weight: 800;
}

.date-option b {
  font-size: 1.45rem;
  line-height: 1;
}

.date-option:hover,
.time-option:hover {
  border-color: var(--cetyk-blue);
  box-shadow: 0 8px 20px rgba(7, 50, 77, 0.08);
}

.date-option.selected,
.time-option.selected {
  border-color: var(--cetyk-blue);
  background: #eaf8f6;
  box-shadow: inset 0 0 0 1px var(--cetyk-blue);
}

.time-panel {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid #d8e6ec;
  border-radius: 8px;
  background: #f8fbfc;
}

.time-panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.time-panel-heading b {
  color: var(--cetyk-navy);
}

.time-panel-heading span,
.availability-note {
  color: #557180;
  font-size: 0.78rem;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.time-option {
  display: grid;
  min-height: 68px;
  place-items: center;
  padding: 10px;
}

.time-option b {
  font-size: 1rem;
}

.time-option small {
  color: #5c7481;
  font-size: 0.7rem;
}

.availability-note {
  margin: 12px 2px 0;
  line-height: 1.5;
}

.availability-state {
  display: flex;
  min-height: 116px;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #d8e6ec;
  border-radius: 8px;
  background: #f8fbfc;
}

.availability-state b {
  color: var(--cetyk-navy);
}

.availability-state p {
  margin: 4px 0 0;
  color: #557180;
  line-height: 1.5;
}

.availability-state.error-state {
  justify-content: space-between;
  border-color: #e4c9c6;
  background: #fff8f7;
}

.loading-indicator {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 3px solid #cae4e3;
  border-top-color: var(--cetyk-blue);
  border-radius: 50%;
  animation: booking-spin 0.8s linear infinite;
}

@keyframes booking-spin {
  to {
    transform: rotate(360deg);
  }
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.contact-form .field:first-child,
.contact-form .payer-fieldset,
.contact-form .coverage-field,
.contact-form .consent,
.contact-form > .error {
  grid-column: 1 / -1;
}

.payer-fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.payer-fieldset legend {
  margin-bottom: 8px;
  color: var(--cetyk-navy);
  font-weight: 750;
}

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

.payer-options label {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 9px;
  border: 1px solid #abc5d6;
  border-radius: 6px;
  padding: 10px 12px;
  background: white;
  color: var(--cetyk-navy);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.payer-options label:has(input:checked) {
  border-color: var(--cetyk-blue);
  background: #eaf4fb;
}

.payer-options input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

[hidden] {
  display: none !important;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--cetyk-muted);
}

.consent input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.confirmation {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 24px;
  border: 1px solid var(--cetyk-line);
  background: var(--cetyk-line);
}

.confirmation div {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: white;
}

.confirmation span {
  color: var(--cetyk-muted);
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
}

.submission-error {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #dfbeba;
  border-radius: 8px;
  background: #fff7f6;
  color: #742e28;
}

.submission-error p {
  margin: 5px 0 0;
  line-height: 1.5;
}

.booking-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--cetyk-line);
}

.booking-actions .button {
  min-width: 140px;
}

.booking-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.booking-summary {
  position: sticky;
  top: 24px;
  height: fit-content;
  padding: 26px;
}

.booking-summary h2 {
  margin: 0;
  color: var(--cetyk-navy);
}

.booking-summary dl {
  margin: 24px 0;
}

.booking-summary dt {
  margin-top: 18px;
  color: var(--cetyk-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.booking-summary dd {
  margin: 4px 0 0;
  color: var(--cetyk-navy);
  font-weight: 750;
  overflow-wrap: break-word;
}

.empty-summary,
.summary-note {
  color: var(--cetyk-muted);
  font-size: 0.86rem;
}

.summary-note {
  padding-top: 18px;
  border-top: 1px solid var(--cetyk-line);
}

.success {
  display: grid;
  max-width: 620px;
  justify-items: start;
  padding-block: 40px;
}

.success > span {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  background: #dff7f2;
  color: #08786b;
  font-size: 1.6rem;
  font-weight: 900;
}

.success h2 {
  margin: 0;
  color: var(--cetyk-navy);
  font-size: 2.2rem;
}

.success p {
  color: var(--cetyk-muted);
}

.success .local-mode-note {
  border-left: 3px solid var(--cetyk-blue);
  padding: 10px 12px;
  background: #eaf4fb;
  color: #385a6d;
  font-size: 0.86rem;
}

.success-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

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

  .booking-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .booking-shell {
    width: 100%;
    padding-block: 0 48px;
  }

  .booking-header-inner {
    width: calc(100% - 28px);
  }

  .booking-panel,
  .booking-summary {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .booking-panel {
    min-height: auto;
    padding: 28px 20px;
  }

  .booking-summary {
    padding: 22px 20px;
  }

  .booking-intro h1 {
    font-size: 2rem;
  }

  .stepper {
    grid-template-columns: repeat(6, 34px);
    justify-content: space-between;
  }

  .stepper b {
    display: none;
  }

  .option-grid,
  .contact-form,
  .confirmation,
  .payer-options {
    grid-template-columns: 1fr;
  }

  .date-selector {
    grid-template-columns: repeat(4, minmax(68px, 1fr));
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .time-panel {
    padding: 16px;
  }

  .time-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .time-panel-heading {
    display: grid;
    gap: 4px;
  }

  .availability-state,
  .availability-state.error-state {
    display: grid;
    justify-items: start;
  }

  .contact-form .field,
  .contact-form .payer-fieldset,
  .contact-form .coverage-field,
  .contact-form .consent,
  .contact-form > .error {
    grid-column: 1;
  }

  .inline-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-actions,
  .success-actions {
    flex-direction: column-reverse;
  }

  .booking-actions .button {
    width: 100%;
  }
}
