/* Booking layout */
.book-page { padding: clamp(28px, 4vw, 56px) 0 clamp(64px, 8vw, 104px); }
.book-head { margin-bottom: 28px; }
.book-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 6px; }
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.book-main { background: var(--white); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); min-height: 480px; }
@media (max-width: 980px) { .book-layout { grid-template-columns: 1fr; } }

.resume { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--brass-soft); border-radius: 14px; padding: 12px 18px; margin-bottom: 20px; font-size: 0.95rem; }
.resume button { background: none; border: 0; font-weight: 600; color: var(--pine); text-decoration: underline; padding: 6px; min-height: 36px; }
.storage-note { background: #f6e3de; color: #8c3322; border-radius: 12px; padding: 10px 16px; font-size: 0.9rem; margin-bottom: 18px; }

/* Progress */
.progress { margin-bottom: 28px; }
.progress-text { font-size: 0.85rem; color: var(--muted); margin: 0 0 10px; font-weight: 500; }
.progress-bar { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; list-style: none; }
.progress-bar li { height: 6px; border-radius: 6px; background: var(--line); transition: background 0.4s var(--ease); position: relative; }
.progress-bar li.done, .progress-bar li.current { background: var(--pine); }
.progress-bar li.current { background: var(--brass); }
.progress-bar li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.step.enter { animation: step-in 0.4s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.step-title { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin-bottom: 6px; outline: none; }
.step-sub { color: var(--muted); margin-bottom: 24px; }
.step-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.step-actions .btn-back { background: none; border: 0; color: var(--muted); font-weight: 600; padding: 10px 6px; min-height: 44px; text-decoration: underline; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* Choice cards */
.choices { display: grid; gap: 12px; }
.choices.cols-2 { grid-template-columns: 1fr 1fr; }
.choices.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .choices.cols-2, .choices.cols-3 { grid-template-columns: 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice .card {
  display: block; height: 100%; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.choice:hover .card { border-color: #b9c4bb; transform: translateY(-1px); }
.choice input:focus-visible + .card { outline: 3px solid var(--brass); outline-offset: 2px; }
.choice input:checked + .card { border-color: var(--pine); background: var(--sage-soft); box-shadow: 0 0 0 1px var(--pine); }
.choice .card strong { display: block; font-size: 1.02rem; }
.choice .card .sub { display: block; font-size: 0.9rem; color: var(--muted); margin-top: 2px; }
.choice .card .price { display: block; margin-top: 10px; font: 500 1.5rem/1.1 var(--font-display); color: var(--pine); font-variant-numeric: tabular-nums; }
.choice .card .price small { font: 400 0.82rem var(--font-body); color: var(--muted); }
.choice .card .badge { display: inline-block; margin-bottom: 8px; background: var(--brass); color: var(--ink); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.choice .card .save { display: block; margin-top: 4px; color: var(--success); font-weight: 600; font-size: 0.9rem; }
.choice.check .card { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.choice.check .tick { width: 24px; height: 24px; border-radius: 8px; border: 2px solid #b3ab9a; flex: none; display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; }
.choice.check input:checked + .card .tick { background: var(--pine); border-color: var(--pine); }
.choice.check .tick::after { content: ""; width: 5px; height: 10px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 0.2s var(--ease); margin-bottom: 2px; }
.choice.check input:checked + .card .tick::after { transform: rotate(45deg) scale(1); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 500; font-size: 0.95rem; background: var(--white); transition: all 0.2s; }
.chip:hover span { border-color: #b9c4bb; }
.chip input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }
.chip input:checked + span { background: var(--pine); border-color: var(--pine); color: var(--white); }
fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
legend { font-weight: 600; font-size: 0.95rem; padding: 0; margin-bottom: 12px; }
fieldset.has-error legend { color: var(--danger); }

/* Steppers and range */
.control-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.control-row:first-of-type { padding-top: 0; }
.control-row .name strong { display: block; }
.control-row .name span { font-size: 0.88rem; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--linen); border-radius: 999px; padding: 4px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); font-size: 1.4rem; line-height: 1; color: var(--pine); box-shadow: 0 1px 3px rgba(20, 42, 35, 0.12); transition: transform 0.15s, background 0.2s; }
.stepper button:hover:not(:disabled) { background: var(--sage); }
.stepper button:active:not(:disabled) { transform: scale(0.94); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper output { min-width: 56px; text-align: center; font: 500 1.35rem var(--font-display); font-variant-numeric: tabular-nums; }
.range-wrap { width: min(100%, 340px); }
.range-wrap output { display: block; text-align: right; font: 500 1.25rem var(--font-display); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--pine); height: 32px; }

/* Calendar and picker */
.picker { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .picker { grid-template-columns: 1fr; } }
.cal { background: var(--linen); border-radius: 18px; padding: 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h4 { margin: 0; font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--white); font-size: 1.4rem; color: var(--pine); line-height: 1; }
.cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 0.72rem; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 0; }
.cal-day { aspect-ratio: 1; min-height: 40px; border: 0; border-radius: 12px; background: var(--white); font-weight: 600; font-variant-numeric: tabular-nums; position: relative; transition: background 0.15s, transform 0.15s; }
.cal-day:hover:not(:disabled) { background: var(--sage); }
.cal-day:disabled { background: transparent; color: #aaa59a; cursor: not-allowed; font-weight: 400; }
.cal-day.is-full { text-decoration: line-through; }
.cal-day.is-today::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--brass); }
.cal-day.is-low { box-shadow: inset 0 -3px 0 var(--brass); }
.cal-day.is-selected { background: var(--pine); color: var(--white); box-shadow: none; transform: scale(1.04); }
.cal-legend { list-style: none; display: flex; gap: 16px; margin-top: 14px; font-size: 0.78rem; color: var(--muted); }
.cal-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--white); border: 1px solid #cfc8ba; }
.cal-legend .dot.low { background: var(--brass); border-color: var(--brass); }
.cal-legend .dot.full { background: #d8d3c7; border-color: #d8d3c7; }
.pick-title { font-family: var(--font-body); font-weight: 600; font-size: 1rem; letter-spacing: 0; margin-bottom: 12px; }
.pick-hint { padding: 28px 0; }
.windows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .windows { grid-template-columns: 1fr; } }
.win { text-align: left; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); transition: all 0.2s; }
.win strong { display: block; font-variant-numeric: tabular-nums; }
.win small { color: var(--muted); font-size: 0.82rem; }
.win:hover:not(:disabled) { border-color: var(--pine); }
.win:disabled { background: transparent; color: #aaa59a; cursor: not-allowed; }
.win:disabled small { color: #aaa59a; }
.win.is-selected { background: var(--pine); border-color: var(--pine); color: var(--white); }
.win.is-selected small { color: #c9d6cf; }
.crew-pick { margin: 22px 0 0; }
.radio-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; }
.radio-row input { margin-top: 5px; accent-color: var(--pine); width: 18px; height: 18px; flex: none; }
.radio-row strong, .radio-row small { display: block; }
.radio-row small { color: var(--muted); font-size: 0.88rem; }
.crew-list { display: grid; gap: 8px; margin: 4px 0 0 30px; }
.crew-option { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.crew-option:hover { border-color: #b9c4bb; }
.crew-option:has(input:checked) { border-color: var(--pine); background: var(--sage-soft); }
.crew-option input { accent-color: var(--pine); }
.crew-option small { display: block; color: var(--muted); font-size: 0.85rem; }

/* Summary */
.summary { position: sticky; top: calc(var(--header-h) + 16px); background: var(--pine); color: var(--linen); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-lg); }
.summary h2 { color: var(--linen); font-size: 1.35rem; margin-bottom: 18px; }
.summary dl { margin: 0; display: grid; gap: 14px; }
.summary dt { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #a9bbb1; }
.summary dd { margin: 2px 0 0; font-weight: 500; }
.summary .empty { color: #a9bbb1; font-weight: 400; }
.lines { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.18); display: grid; gap: 8px; }
.lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.lines li span:last-child { font-weight: 600; }
.total { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.total .big { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.total .big span { font-size: 0.9rem; color: #c9d6cf; }
.total .big strong { font: 500 2.4rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.total .then { color: var(--brass-hover); font-weight: 600; margin-top: 6px; font-size: 0.95rem; }
.total .note { font-size: 0.82rem; color: #a9bbb1; margin: 10px 0 0; }
.summary-toggle { display: none; }
@media (max-width: 980px) {
  .summary { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 70; border-radius: 22px 22px 0 0; padding: 0; max-height: 82vh; overflow-y: auto; transform: translateY(calc(100% - 68px)); transition: transform 0.4s var(--ease); }
  .summary.open { transform: none; }
  .summary-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 12px 22px; background: var(--pine); color: var(--linen); border: 0; border-radius: 22px 22px 0 0; position: sticky; top: 0; font-weight: 600; text-align: left; }
  .summary-toggle .t { font: 500 1.6rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
  .summary-toggle .chev { width: 10px; height: 10px; border: solid var(--brass-hover); border-width: 2px 2px 0 0; transform: rotate(-45deg); transition: transform 0.3s; }
  .summary.open .summary-toggle .chev { transform: rotate(135deg); }
  .summary-body { padding: 4px 24px 28px; }
  .summary h2 { display: none; }
  .book-page { padding-bottom: 120px; }
}
@media (min-width: 981px) { .summary-body { display: block; } }

/* Notices */
.callout { background: var(--sage-soft); border-radius: 14px; padding: 16px 18px; margin: 20px 0; font-size: 0.95rem; }
.callout strong { color: var(--pine); }
.callout.warn { background: var(--brass-soft); }
.zip-feedback { margin-top: 16px; }
.review-block { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.review-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.review-row:last-child { border-bottom: 0; }
.review-row dt { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.review-row dd { margin: 2px 0 0; font-weight: 500; }
.review-row .change { background: none; border: 0; color: var(--pine); font-weight: 600; text-decoration: underline; align-self: center; min-height: 40px; padding: 0 6px; }
.review-block { margin: 0; }

/* Confirmation */
.confirm-hero { text-align: center; padding: 8px 0 12px; }
.check-anim { width: 84px; height: 84px; margin: 0 auto 18px; }
.check-anim circle { fill: none; stroke: var(--success); stroke-width: 4; stroke-dasharray: 226; stroke-dashoffset: 226; animation: draw 0.7s var(--ease) 0.1s forwards; }
.check-anim path { fill: none; stroke: var(--success); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.5s var(--ease) 0.65s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.code-pill { display: inline-block; margin: 8px 0 4px; padding: 8px 20px; border-radius: 999px; background: var(--sage); font: 600 1.15rem/1.2 var(--font-body); letter-spacing: 0.12em; color: var(--pine); }
.confirm-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 24px 0 8px; }
.demo-note { background: var(--brass-soft); border-radius: 12px; padding: 12px 18px; font-size: 0.92rem; text-align: center; margin-top: 18px; }
.email-tabs { display: flex; gap: 8px; margin: 32px 0 12px; flex-wrap: wrap; }
.email-tabs button { border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 0.92rem; min-height: 40px; }
.email-tabs button[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: var(--white); }
.email { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.email-head { background: var(--linen); padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 0.88rem; display: grid; gap: 2px; }
.email-head b { display: inline-block; min-width: 56px; color: var(--muted); font-weight: 500; }
.email-body { padding: 24px 24px 28px; font-size: 0.98rem; }
.email-body h3 { font-size: 1.3rem; }
.email-body ul { list-style: none; display: grid; gap: 6px; margin: 14px 0; padding: 14px 16px; background: var(--linen); border-radius: 12px; }
.email-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

/* My bookings */
.account-page { padding: clamp(28px, 4vw, 56px) 0 clamp(64px, 8vw, 104px); }
.booking-list { display: grid; gap: 20px; }
.booking-card { background: var(--white); border-radius: 22px; box-shadow: var(--shadow); padding: clamp(20px, 3.5vw, 32px); }
.booking-card.cancelled { opacity: 0.72; }
.booking-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.booking-top h3 { margin: 0 0 2px; }
.status { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: #e3f1e9; color: #1d5a3c; }
.status.cancelled { background: #f6e3de; color: #8c3322; }
.booking-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 0 0 20px; }
.booking-facts dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.booking-facts dd { margin: 2px 0 0; font-weight: 500; }
.visits { list-style: none; display: grid; gap: 6px; margin: 0 0 20px; padding: 14px 16px; background: var(--linen); border-radius: 14px; font-size: 0.93rem; }
.visits li { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.visits li.skipped { color: var(--muted); text-decoration: line-through; }
.visits-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 8px; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lookup { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 700px) { .lookup { grid-template-columns: 1fr; } }
.empty-state { text-align: center; background: var(--white); border-radius: 24px; padding: clamp(32px, 6vw, 64px) 24px; box-shadow: var(--shadow); }
.empty-state h2 { font-size: 1.8rem; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--pine); color: var(--white); padding: 12px 22px; border-radius: 999px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease); z-index: 90; font-weight: 500; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.book-layout.solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin-inline: auto; }
