.booking {
  --sheet-line: #d6dbcf;
  --sheet-tint: #eaece3;
  --sheet-green: #354b39;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  grid-template-rows: max-content 1fr;
  grid-template-areas: "intro recap" "sheet recap";
  align-items: start;
  column-gap: clamp(40px, 6.5vw, 100px);
  max-width: 1152px;
  padding-block: clamp(32px, 5vw, 78px);
}
.booking-intro { grid-area: intro; }
.booking-intro h1 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 3.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.booking-intro p { max-width: 46ch; margin: 14px 0 0; color: var(--muted); line-height: 1.5; }
.booking-sheet { grid-area: sheet; min-width: 0; margin-top: clamp(24px, 3vw, 40px); }
.booking-steps {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  gap: 15px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  font-size: .875rem;
  color: var(--muted);
}
.booking-steps li { display: flex; align-items: center; gap: 8px; }
.booking-steps li + li::before { content: ""; width: clamp(22px, 3vw, 40px); height: 1px; margin-right: 7px; background: #c6cebe; }
.booking-steps li > span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid #bac3b3;
  border-radius: 50%;
  font-size: .8125rem;
  line-height: 1;
}
.booking-steps [aria-current] { color: var(--sheet-green); font-weight: 600; }
.booking-steps [aria-current] > span { background: var(--sheet-green); border-color: var(--sheet-green); color: white; }

.booking fieldset { min-inline-size: 0; margin: 0; }
.booking fieldset + fieldset { margin-top: 24px; }
.booking legend, .booking-sheet h2 { font-size: 1.2rem; font-weight: 550; line-height: 1.3; letter-spacing: -.025em; }
.booking legend { width: 100%; margin-bottom: 12px; }
.legend-line { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; }
.legend-line small { color: var(--muted); font-size: .875rem; font-weight: 400; letter-spacing: 0; }
#booking-month::first-letter, #recap-time::first-letter { text-transform: uppercase; }
.topic-options, .date-options, .time-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.topic-options { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; background: var(--sheet-tint); border-radius: 14px; }
.topic-options:empty { min-height: 52px; }
.date-options:empty { min-height: 90px; }
.time-options:empty { min-height: 44px; }
.choice { position: relative; min-width: 0; cursor: pointer; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.choice-face {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: #465145;
  font-size: .9375rem;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.topic-options .choice-face { border-radius: 10px; }
.topic-options input:checked + .choice-face {
  background: #fffefa;
  color: #293d2e;
  box-shadow: 0 1px 4px #28332626;
  font-weight: 550;
}
.date-options { border-block: 1px solid var(--sheet-line); padding-block: 5px; }
.date-options .choice-face { flex-direction: column; gap: 3px; padding-block: 8px; border-radius: 12px; }
.date-options small { font-size: .8125rem; line-height: 1.25; }
.date-options small::first-letter { text-transform: uppercase; }
.date-options .choice-value {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -.045em;
}
.date-options input:checked + .choice-face { color: var(--sheet-green); }
.date-options input:checked + .choice-face .choice-value { background: var(--sheet-green); color: white; }
.time-options { grid-template-columns: repeat(4, minmax(0, 88px)); gap: 8px; }
.time-options .choice-face { border: 1px solid #c9cfc2; border-radius: 999px; }
.time-options input:checked + .choice-face { background: #e2e9dc; color: #2c432f; border-color: #71866c; font-weight: 550; }
@media (hover: hover) {
  .topic-options .choice:hover input:not(:checked) + .choice-face,
  .date-options .choice:hover input:not(:checked) + .choice-face .choice-value,
  .time-options .choice:hover input:not(:checked) + .choice-face { background: #dfe5d8; }
}
.choice input:focus-visible + .choice-face { outline: 3px solid var(--brand-focus); outline-offset: 2px; z-index: 1; position: relative; }

.booking-actions { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-top: 26px; }
.booking-action, .booking-back { font: inherit; cursor: pointer; min-height: 46px; }
.booking-action { padding: 10px 26px; background: var(--sheet-green); color: white; font-weight: 550; border: 0; border-radius: 999px; }
.booking-action:hover { background: #253929; }
.booking-back { color: var(--sheet-green); background: transparent; border: 0; padding: 8px 2px; text-decoration: underline; text-underline-offset: 4px; }
.booking .entry { display: grid; gap: 7px; margin-top: 16px; font-size: .9375rem; font-weight: 550; }
.booking .entry input, .booking .entry textarea {
  display: block;
  width: 100%;
  height: auto;
  min-height: 48px;
  padding: 11px 15px;
  background: #fffefa;
  border: 1px solid #b8c2b1;
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
}
.booking .entry input::placeholder, .booking .entry textarea::placeholder { color: #697068; }
.booking .entry textarea { min-height: 6rem; resize: vertical; }
.booking details { margin-top: 18px; border-block: 1px solid var(--sheet-line); }
.booking details[open] { padding-bottom: 16px; }
.booking details summary { display: flex; align-items: center; justify-content: space-between; min-height: 46px; list-style: none; cursor: pointer; color: var(--sheet-green); }
.booking details summary::-webkit-details-marker { display: none; }
.booking details summary::after { content: "+"; font-size: 1.25rem; }
.booking details[open] summary::after { content: "−"; }
.booking details .entry { margin-top: 2px; }
.contact-hint, .privacy-line, #confirmation p { color: var(--muted); line-height: 1.5; }
.contact-hint { margin-top: 7px; font-size: .9375rem; }
.privacy-line { font-size: .875rem; margin: 16px 0 0; }
.privacy-line a { color: var(--sheet-green); text-underline-offset: 3px; }
#confirmation h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); }
#confirmation p { margin: 12px 0 16px; }

.booking-recap { grid-area: recap; overflow: hidden; border-radius: 20px; background: #e8ece2; }
.booking-recap img { display: block; width: 100%; height: auto; aspect-ratio: 1.12; object-fit: cover; object-position: center; }
.recap-body { padding: clamp(20px, 2.3vw, 34px); }
.booking-recap h2 { margin: 0 0 8px; font-size: .875rem; font-weight: 450; letter-spacing: 0; line-height: 1.4; color: #4e5e4e; }
#recap-topic { color: #263a2b; font-size: clamp(1.5rem, 2.4vw, 2.25rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.15; }
#recap-time { margin-top: 7px; line-height: 1.4; color: #415442; }
#attached-estimate { margin-top: 16px; padding-top: 12px; border-top: 1px solid #c1ccbc; color: #485848; font-size: .875rem; }

@media (max-width: 800px) {
  .booking { max-width: 600px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "intro" "sheet" "recap"; }
  .booking-sheet { margin-top: 24px; }
  .booking-recap { display: grid; grid-template-columns: minmax(84px, 24%) 1fr; margin-top: 28px; border-radius: 14px; }
  .booking-recap img { height: 100%; min-height: 104px; aspect-ratio: auto; }
  .recap-body { padding: 15px 18px; }
  .booking-recap h2 { margin-bottom: 4px; }
  #recap-topic { font-size: 1.25rem; }
  #recap-time { margin-top: 4px; font-size: .875rem; }
}
@media (max-width: 420px) {
  .topic-options .choice-face { font-size: .875rem; }
  .booking-steps { margin-bottom: 22px; }
  .booking fieldset + fieldset { margin-top: 20px; }
  .time-options { gap: 6px; }
}
