:root {
  --ink: #071b35;
  --ink-soft: #344153;
  --burgundy: #910020;
  --burgundy-dark: #760018;
  --burgundy-pale: #fff7f8;
  --line: #d6dbe2;
  --line-dark: #aab3c0;
  --muted: #687384;
  --subtle: #f5f7f9;
  --white: #ffffff;
  --danger: #a21628;
  --serif: Baskerville, "Times New Roman", Georgia, serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --focus: 0 0 0 3px rgba(145, 0, 32, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--white);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  min-height: 108px;
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.brand-mark {
  width: 68px;
  height: 68px;
  display: inline-grid;
  place-items: center;
  background: var(--burgundy);
  color: var(--white);
  font: 35px/1 var(--serif);
  letter-spacing: -0.08em;
}

.brand strong {
  display: block;
  font: 32px/1 var(--serif);
  letter-spacing: 0.055em;
}

.brand small {
  display: block;
  margin-top: 9px;
  font-size: 11px;
  letter-spacing: 0.32em;
}

.brand .brand-credential {
  margin-top: 5px;
  color: var(--burgundy);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.schedule-contact {
  display: grid;
  justify-items: end;
  gap: 7px;
  font-size: 13px;
}

.schedule-contact strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.schedule-contact a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.booking-shell {
  min-height: calc(100vh - 108px);
  display: grid;
  grid-template-columns: minmax(360px, 40%) minmax(0, 60%);
}

.booking-intro {
  border-right: 1px solid var(--line);
  padding: 70px clamp(40px, 5vw, 72px) 46px;
  display: flex;
  flex-direction: column;
  gap: 46px;
}

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

h1 {
  max-width: 600px;
  margin-bottom: 20px;
  font: 400 clamp(43px, 3.4vw, 52px) / 1.04 var(--serif);
  letter-spacing: -0.035em;
}

.lede {
  max-width: 510px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.65;
}

.conferencing-note {
  max-width: 510px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.date-hold-note {
  max-width: 510px;
  margin: 22px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--burgundy);
  background: var(--burgundy-pale);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.date-hold-note strong {
  color: var(--ink);
}

.meeting-types {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.meeting-types legend {
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 650;
}

.meeting-type-options {
  display: grid;
  gap: 14px;
}

.meeting-option {
  min-height: 78px;
  border: 1px solid var(--line);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.meeting-option:hover {
  border-color: var(--line-dark);
  background: var(--subtle);
}

.meeting-option:has(input:focus-visible) {
  outline: none;
  box-shadow: var(--focus);
}

.meeting-option.selected {
  border: 2px solid var(--burgundy);
  padding: 17px 21px;
  background: var(--burgundy-pale);
}

.meeting-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--line-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.selected .radio {
  border-color: var(--burgundy);
}

.selected .radio::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--burgundy);
}

.meeting-copy strong {
  display: block;
  font-size: 18px;
  line-height: 1.3;
}

.meeting-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.duration {
  color: var(--ink-soft);
  white-space: nowrap;
}

.legal-note {
  max-width: 510px;
  margin: auto 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.booking-workspace {
  min-width: 0;
  padding: 50px clamp(30px, 5vw, 78px) 46px;
}

.progress {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.progress li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 16px;
}

.progress li:first-child::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
  margin: 0 28px;
}

.progress li.active:first-child::after {
  background: var(--burgundy);
}

.progress span {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.progress .active {
  color: var(--burgundy);
}

.progress .active span {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--white);
}

.step[hidden] {
  display: none !important;
}

#date-time-step {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(200px, 0.63fr);
}

.calendar-pane {
  min-width: 0;
  padding-right: clamp(28px, 4vw, 62px);
  border-right: 1px solid var(--line);
}

.times-pane {
  padding-left: clamp(28px, 4vw, 54px);
}

.calendar-pane h2,
.times-pane h2,
.details-heading h2 {
  margin-bottom: 28px;
  font-size: 21px;
  line-height: 1.2;
}

.calendar-toolbar {
  margin-bottom: 25px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
}

.calendar-toolbar strong {
  text-align: center;
  font-size: 17px;
}

.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.icon-button svg,
.back-button svg,
.timezone-line svg,
.success-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:hover {
  border-color: var(--ink);
  background: var(--subtle);
}

.icon-button:focus-visible,
.calendar-day:focus-visible,
.time-option:focus-visible,
.button:focus-visible,
.back-button:focus-visible,
.dialog-close:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(34px, 1fr));
}

.weekday-row {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.weekday-row span {
  padding: 8px 0;
}

.calendar-grid {
  gap: 4px 2px;
}

.calendar-day {
  aspect-ratio: 1;
  min-height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  position: relative;
}

.calendar-day:hover:not(:disabled) {
  background: var(--subtle);
}

.calendar-day.outside {
  color: #a7afba;
}

.calendar-day:disabled {
  color: #b8bec7;
  cursor: default;
}

.calendar-day.available::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--burgundy);
  transform: translateX(-50%);
}

.calendar-day.selected {
  background: var(--burgundy);
  color: var(--white);
}

.calendar-day.selected::after {
  background: var(--white);
}

.timezone-line {
  margin: 30px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 14px;
}

.timezone-line svg {
  width: 20px;
  height: 20px;
}

.selected-day-label {
  min-height: 22px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.time-options {
  max-height: 410px;
  padding: 2px;
  display: grid;
  gap: 11px;
  overflow-y: auto;
}

.time-option {
  min-height: 59px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-weight: 620;
}

.time-option:hover {
  border-color: var(--burgundy);
}

.time-option.selected {
  border: 2px solid var(--burgundy);
  color: var(--burgundy);
  background: var(--burgundy-pale);
}

.empty-times {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.button {
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--white);
  text-decoration: none;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.button.primary {
  background: var(--burgundy);
  color: var(--white);
}

.button.primary:hover {
  background: var(--burgundy-dark);
}

.button.secondary {
  border-color: var(--line-dark);
}

.button.secondary:hover {
  border-color: var(--ink);
  background: var(--subtle);
}

.button.danger {
  border-color: var(--danger);
  color: var(--danger);
}

.button:disabled {
  border-color: var(--line);
  background: var(--subtle);
  color: #9ba4b0;
  cursor: not-allowed;
}

.continue-button {
  width: 100%;
  margin-top: 28px;
}

.details-step {
  max-width: 760px;
}

.details-heading {
  margin-bottom: 34px;
}

.details-heading h2 {
  margin: 24px 0 10px;
  font: 400 38px/1.1 var(--serif);
}

.details-heading p {
  color: var(--ink-soft);
}

.back-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 14px;
}

.back-button svg {
  width: 18px;
  height: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}

.form-grid label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.form-grid label span {
  color: var(--muted);
  font-weight: 400;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  margin-top: 9px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  padding: 14px;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
}

.form-grid textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: var(--focus);
}

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

.consent-row {
  margin: 24px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.consent-row input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--burgundy);
}

.form-error {
  min-height: 20px;
  margin: 18px 0 0;
  color: var(--danger);
  font-size: 14px;
}

.book-button {
  min-width: 240px;
  margin-top: 7px;
}

.success-step {
  max-width: 640px;
  padding: 52px 0;
}

.success-mark {
  width: 54px;
  height: 54px;
  margin-bottom: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--burgundy);
  border-radius: 50%;
  color: var(--burgundy);
}

.success-mark svg {
  width: 30px;
  height: 30px;
}

.success-step h2 {
  margin-bottom: 16px;
  font: 400 42px/1.12 var(--serif);
}

.success-step > p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

.success-actions {
  margin-top: 32px;
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}

.success-note {
  margin-top: 22px !important;
  color: var(--muted) !important;
  font-size: 13px !important;
}

.dialog {
  width: min(510px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 24px 80px rgba(7, 27, 53, 0.18);
}

.dialog::backdrop {
  background: rgba(7, 27, 53, 0.55);
}

.dialog form {
  padding: 38px;
}

.dialog h2 {
  margin: 0 0 12px;
  font: 400 32px/1.15 var(--serif);
}

.dialog p {
  color: var(--ink-soft);
  line-height: 1.55;
}

.dialog-close {
  position: absolute;
  top: 15px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 26px;
}

.dialog-actions {
  margin-top: 25px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.skeleton {
  background: linear-gradient(90deg, #f2f4f7 25%, #e8ebef 40%, #f2f4f7 65%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.skeleton-option {
  height: 78px;
  border: 1px solid var(--line);
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

  .booking-intro {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 40px;
  }

  .legal-note {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 82px;
    padding: 0 20px;
  }

  .brand {
    gap: 12px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    font-size: 25px;
  }

  .brand strong {
    font-size: 21px;
  }

  .brand small {
    margin-top: 5px;
    font-size: 8px;
    letter-spacing: 0.25em;
  }

  .booking-intro,
  .booking-workspace {
    padding: 38px 20px;
  }

  .booking-intro {
    gap: 35px;
  }

  h1 {
    font-size: 43px;
  }

  .lede {
    font-size: 17px;
  }

  .meeting-option {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .duration {
    grid-column: 2;
    font-size: 13px;
  }

  .progress {
    margin-bottom: 38px;
  }

  .progress li {
    font-size: 13px;
  }

  .progress li:first-child::after {
    margin: 0 12px;
  }

  .progress span {
    width: 30px;
    height: 30px;
  }

  #date-time-step {
    grid-template-columns: 1fr;
  }

  .calendar-pane {
    padding: 0 0 34px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .times-pane {
    padding: 34px 0 0;
  }

  .time-options {
    max-height: none;
    grid-template-columns: 1fr 1fr;
  }

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

  .full-width {
    grid-column: auto;
  }

  .book-button {
    width: 100%;
  }

  .dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}

@media (max-width: 430px) {
  .site-header {
    padding-inline: 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand .brand-credential,
  .schedule-contact a:last-child {
    display: none;
  }

  .schedule-contact {
    font-size: 12px;
  }

  .schedule-contact strong {
    display: none;
  }

  .meeting-copy small {
    display: none;
  }

  .time-options {
    grid-template-columns: 1fr;
  }
}
