/* Livd Get Started: matches the Design canvas (Livd Design System tokens).
   Desktop: left column (header, step, progress) + full-height right panel.
   Phone (<900px): one column; Back/Next and the progress bar are fixed to the bottom. */
:root {
  --yellow: #f6c84b;
  --yellow-hover: #f0bc33;
  --teal: #2c7a6f;
  --ink: #211f24;
  --slate: #6b6970;
  --mist: #9c9aa1;
  --paper: #ffffff;
  --warm-mist: #f6f5f2;
  --linen: #f1efea;
  --pill: #f3f1ef;
  --line: #e7e4dd;
  --dashed: #cfcabf;
  --soft-honey: #fcefc9;
  --gold: #e0a93c;
  --error: #b3261e;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-btn: "Inter Tight", "Inter", sans-serif;
  --shadow-pop: 0 12px 32px rgba(33, 31, 36, 0.12);
  --pad-x: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 400 16px/1.5 var(--font); color: var(--ink); background: var(--paper); }
h1, h2 { margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: 40px; line-height: 1.06; font-weight: 500; letter-spacing: -0.03em; }
h1:focus, h1:focus-visible { outline: none; }
a { color: var(--ink); text-underline-offset: 2px; }
a:hover { color: var(--teal); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- page shell ---------- */
.layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 100vh; min-height: 100dvh; }
.main-col { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; min-height: 100dvh; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--pad-x); border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.brand { display: flex; }
.brand img { display: block; height: 30px; width: auto; }
.help { margin: 0; font-size: 14px; color: var(--slate); }
.help a { font-weight: 600; }

.content { flex-grow: 1; display: flex; flex-direction: column; align-items: center; padding: 96px var(--pad-x) 32px; }
.step { flex-grow: 1; display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 520px; }
.pill { margin: 0 0 -8px; font-size: 12px; line-height: 1.4; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); }
h1 + .lede { margin-top: -6px; }
.lede { margin: 0 0 8px; font-size: 16px; line-height: 1.5; color: var(--slate); }

.progress { display: flex; align-items: center; gap: 24px; padding: 14px var(--pad-x); border-top: 1px solid var(--line); background: var(--paper); flex-shrink: 0; }
.bar { flex-grow: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.bar span { height: 6px; border-radius: 100px; background: var(--line); transition: background .3s; }
.bar span.done { background: var(--yellow); }

/* ---------- buttons & links ---------- */
.actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; }
.actions.end { justify-content: flex-end; }
.actions.inline { margin-top: 0; padding-top: 0; justify-content: flex-start; }
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  font: 500 16px/1.2 var(--font-btn); color: var(--ink); white-space: nowrap; text-decoration: none;
  background: var(--yellow); border: 1px solid transparent; border-radius: 10px; padding: 12px 24px;
  cursor: pointer; transition: background .12s, border-color .12s, transform .12s;
}
.btn:hover { background: var(--yellow-hover); color: var(--ink); }
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn:disabled:hover { background: var(--line); color: var(--mist); cursor: not-allowed; transform: none; }
.btn.secondary { background: var(--paper); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--slate); }
.link { appearance: none; border: 0; background: none; padding: 0; font: 600 14px var(--font); color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; align-self: flex-start; }
.link:hover { color: var(--teal); }
.btn:focus-visible, .link:focus-visible, a:focus-visible, .unit-list button:focus-visible,
.nav-btn:focus-visible, .dots button:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---------- inputs ---------- */
form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.field { position: relative; display: flex; flex-direction: column; }
.field input::placeholder, .combo input::placeholder { color: var(--slate); opacity: 1; }
.field input, .combo input {
  width: 100%; height: 50px; padding: 0 16px; font: 400 16px var(--font); color: var(--ink);
  background: var(--paper); border: 1px solid var(--dashed); border-radius: 12px; outline: none;
}
.combo input { height: 58px; padding: 0 18px; }
.field input:focus, .combo input:focus { border-color: var(--yellow); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-error { margin: 0; color: var(--error); font-size: 14px; font-weight: 500; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 10px; line-height: 1.5; color: var(--mist); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--ink); }
.consent strong { color: var(--slate); font-weight: 700; }
.consent a { color: inherit; }

/* address autocomplete */
.combo { position: relative; }
#suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20;
  list-style: none; margin: 0; padding: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop);
}
#suggestions li { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
#suggestions li .main { font-weight: 600; }
#suggestions li .sub { font-size: 14px; color: var(--slate); }
#suggestions li[aria-selected="true"], #suggestions li:hover { background: var(--warm-mist); }
#suggestions li.status { color: var(--slate); cursor: default; background: none; }
#suggestions .powered { padding: 4px 12px 2px; font-size: 11px; color: var(--slate); text-align: right; cursor: default; background: none !important; }

/* ---------- address block + home facts ---------- */
.address-box { display: flex; flex-direction: column; gap: 22px; padding: 14px 16px; background: var(--linen); border-radius: 12px; }
.home-box { margin-top: 12px; padding: 16px; }
.address-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.address-text { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 16px; font-weight: 500; }
.tag-out { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 100px; background: #fce4ec; color: #c2185b; font-size: 13px; font-weight: 600; line-height: 1.4; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.facts div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--paper); border-radius: 12px; }
.facts dt { font-size: 12px; color: var(--slate); }
.facts dd { margin: 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- condo units ---------- */
.unit-list {
  list-style: none; margin: 0; padding: 0 10px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start; gap: 10px; max-height: 252px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--dashed) var(--linen);
}
.unit-list::-webkit-scrollbar { width: 8px; }
.unit-list::-webkit-scrollbar-track { background: var(--linen); border-radius: 8px; }
.unit-list::-webkit-scrollbar-thumb { background: var(--dashed); border-radius: 8px; }
.unit-list button {
  width: 100%; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left;
  padding: 12px 14px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px;
  font: 400 13px var(--font); color: var(--slate); cursor: pointer;
}
.unit-list button b { font-size: 17px; font-weight: 600; color: var(--ink); }
.unit-list button:hover { border-color: var(--ink); }

/* ---------- checklist preview ---------- */
.checklist-card { position: relative; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.home-strip { position: relative; margin-bottom: 4px; overflow: hidden; background: #3a3740; }
.home-strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; }
.home-strip::after { content: ""; position: absolute; inset: 0; background: rgba(33, 31, 36, 0.15); }
.home-strip .credit { position: absolute; z-index: 1; left: 14px; bottom: 8px; font-size: 11px; color: rgba(255, 255, 255, 0.9); }
.kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); }
.checklist-card h2 { margin-bottom: 12px; font-size: 22px; line-height: 1.2; font-weight: 600; }
.checklist { display: flex; flex-direction: column; gap: 32px; }
.check-group { display: flex; flex-direction: column; gap: 8px; }
.check-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.check-group li { display: flex; gap: 10px; font-size: 15px; line-height: 1.35; }
.check-group li::before { content: ""; width: 14px; height: 14px; margin-top: 2px; flex-shrink: 0; border: 1.5px solid var(--dashed); border-radius: 4px; background: var(--paper); }
.check-group li.more { color: var(--slate); }
.check-group .guide { margin-left: auto; flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--teal); white-space: nowrap; }
.note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--slate); }

/* ---------- Step 4: day + time picker, confirm ---------- */
.picker, .confirm { display: flex; flex-direction: column; gap: 16px; padding-top: clamp(4px, 4vh - 8px, 32px); }
.days { display: flex; align-items: center; gap: 8px; }
.days .nav-btn { width: 36px; height: 36px; flex-shrink: 0; font-size: 18px; }
.days .nav-btn:disabled { opacity: .35; cursor: default; border-color: var(--dashed); }
.day-list { flex-grow: 1; min-width: 0; display: grid; grid-template-columns: repeat(var(--days, 5), minmax(0, 1fr)); gap: 8px; }
.day {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; min-width: 0;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer;
}
.day:hover { border-color: var(--slate); }
.day .dow { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.day .num { font-size: 22px; font-weight: 600; line-height: 1.1; }
.day .mon { font-size: 12px; opacity: .7; }
.day[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.day[aria-checked="true"] .dow { opacity: 1; }
.times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.time {
  height: 44px; border: 1px solid var(--dashed); border-radius: 10px; background: var(--paper);
  font: 500 15px var(--font); color: var(--ink); cursor: pointer;
}
.time:hover { border-color: var(--ink); }
.time[aria-checked="true"] { background: var(--yellow); border-color: var(--yellow); font-weight: 600; }
.picker-note { margin: 0; font-size: 14px; color: var(--slate); }
.picker.loading .day-list, .picker.loading .times { opacity: .5; pointer-events: none; }
.confirm h2 { margin: 4px 0 0; font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.summary { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--linen); border-radius: 12px; font-size: 14px; color: var(--slate); }
.summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.summary-when { font-size: 16px; font-weight: 600; color: var(--ink); }
.day:focus-visible, .time:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---------- reviews ---------- */
.rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--slate); }
.badge-honey { display: inline-flex; align-items: center; gap: 7px; padding: 6px 15px; border-radius: 100px; background: var(--soft-honey); color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.badge-honey [aria-hidden] { color: var(--gold); }
.avatars { display: flex; align-items: center; margin-right: 4px; }
.avatars img { width: 32px; height: 32px; border-radius: 100px; object-fit: cover; border: 2px solid var(--linen); display: block; }
.avatars img + img { margin-left: -10px; }
.reviews { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; background: var(--linen); border-radius: 16px; }
.slides { min-height: 110px; }
.slide { margin: 0; display: flex; flex-direction: column; gap: 16px; animation: fadein .4s ease; }
.slide blockquote { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; text-wrap: pretty; }
.slide figcaption { font-size: 14px; color: var(--slate); }
.slide figcaption b { color: var(--ink); }
.slide-nav { display: flex; align-items: center; gap: 12px; }
.nav-btn { width: 40px; height: 40px; border-radius: 100px; border: 1px solid var(--dashed); background: var(--paper); color: var(--ink); font: 400 20px/1 var(--font); cursor: pointer; }
.nav-btn:hover { border-color: var(--ink); }
.dots { display: flex; gap: 8px; align-items: center; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 100px; background: var(--dashed); cursor: pointer; }
.dots button[aria-selected="true"] { width: 22px; background: var(--ink); }
.all-reviews { font-size: 13px; color: var(--slate); align-self: flex-start; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- right panel ---------- */
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; min-width: 0; }
.panel { height: 100%; }
.panel-photo { position: relative; overflow: hidden; background: #e9e6df; }
.hero { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.float-review {
  position: absolute; z-index: 1; left: 32px; right: 32px; bottom: 32px; margin: 0;
  display: flex; flex-direction: column; gap: 10px; padding: 20px 22px;
  background: rgba(255, 255, 255, 0.94); border-radius: 16px; box-shadow: 0 8px 24px rgba(33, 31, 36, 0.12);
}
.float-review .rating { font-size: 13px; }
.float-review blockquote { margin: 0; font-size: 19px; line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; }
.float-review figcaption { font-size: 13px; color: var(--slate); }
.float-review figcaption b { font-weight: 600; color: var(--ink); }
.panel-map .media, .map { width: 100%; height: 100%; }
.map { background: #e9e6df; }
.panel-checklist { display: flex; flex-direction: column; justify-content: center; padding: 40px 48px; background: var(--linen); overflow: hidden; }
.panel-checklist .checklist-card { padding: 32px 36px; background: var(--paper); border-radius: 20px; box-shadow: 0 8px 24px rgba(33, 31, 36, 0.08); }
.panel-checklist .home-strip { height: clamp(140px, 30vh - 50px, 320px); margin: -32px -36px 4px; } /* taller on tall screens */
.panel-checklist .checklist { gap: 26px; max-height: 500px; overflow: hidden; }
.panel-book { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 56px 64px; background: var(--linen); }
.panel-book .media { position: relative; z-index: 1; }
.panel-book .reviews { padding: 32px; background: var(--paper); box-shadow: 0 8px 24px rgba(33, 31, 36, 0.06); }
.panel-book.has-photo .reviews { box-shadow: 0 16px 40px rgba(33, 31, 36, 0.28); }
.panel-book .avatars img { border-color: var(--paper); }
.panel-book .slide blockquote { font-size: 22px; }
.home-backdrop { position: absolute; inset: 0; overflow: hidden; background: #3a3740; }
.home-backdrop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: blur(1.5px); transform: scale(1.04); }
.home-backdrop::after { content: ""; position: absolute; inset: 0; background: rgba(33, 31, 36, 0.42); }
.home-backdrop .credit { position: absolute; z-index: 1; left: 16px; bottom: 12px; font-size: 11px; color: rgba(255, 255, 255, 0.85); }
.calendly {
  height: 700px; transition: height .2s; flex-shrink: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 8px 24px rgba(33, 31, 36, 0.06); overflow: hidden;
}
.calendly-inline-widget { height: 100%; min-width: 320px; }
.calendly .btn { margin: 24px; }
.m-slot:empty { display: none; }

/* ---------- phone ---------- */
@media (max-width: 899px) {
  :root { --pad-x: 16px; --bar-h: 68px; --prog-h: 34px; }
  .layout { display: block; }
  .side { display: none; }
  .topbar { padding: 14px 16px; }
  .brand img { height: 26px; }
  .help { font-size: 13px; }
  .help-long { display: none; }
  .content { padding: 48px 16px calc(var(--bar-h) + var(--prog-h) + 24px + env(safe-area-inset-bottom, 0px)); }
  .step { max-width: 560px; }
  h1 { font-size: 30px; }
  .actions:not(.inline) {
    position: fixed; left: 0; right: 0; bottom: calc(var(--prog-h) + env(safe-area-inset-bottom, 0px)); z-index: 30;
    margin: 0; padding: 12px 16px; background: var(--paper); box-shadow: 0 -6px 16px rgba(33, 31, 36, 0.06);
  }
  .actions:not(.inline) { transition: transform .25s ease; }
  body.book-picking:not(.at-end) #step-book .actions { transform: translateY(100%); box-shadow: none; }
  .progress {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 31;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .bar { max-width: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .combo input { height: 54px; }
  .consent { font-size: 11px; }
  .unit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; overflow: visible; padding: 0; }
  .m-slot[data-media="map"] .media { height: 260px; border-radius: 20px; overflow: hidden; }
  .m-slot[data-media="checklist"] .checklist-card { padding: 20px; background: var(--linen); border-radius: 16px; gap: 12px; }
  .m-slot[data-media="checklist"] .home-strip { height: 150px; margin: -20px -20px 4px; }
  .m-slot[data-media="checklist"] .home-strip::after { background: rgba(33, 31, 36, 0.3); }
  .m-slot[data-media="checklist"] h2 { font-size: 18px; }
  .cal-slot { margin: 0 -16px; padding: 16px; background: var(--warm-mist); }
  .times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .day-list { --days: 4; }
  .picker, .confirm { padding-top: 8px; }
  .calendly { height: 760px; }
}
@media (min-width: 900px) {
  #contactForm { flex-grow: 1; }
  /* short laptop screens: less space above the step, and Back/Next + progress stay pinned in view */
  .content { padding-top: clamp(40px, 12vh - 24px, 96px); }
  .progress { position: sticky; bottom: 0; z-index: 6; }
  .actions:not(.inline) {
    margin-top: 12px; /* right under the step's content, not at the bottom of the column */
    position: sticky; bottom: 35px; z-index: 5; /* 35px = the progress bar */
    margin-left: -16px; margin-right: -16px; padding: 20px 16px 16px; background: var(--paper);
    transition: box-shadow .2s;
  }
  body.scrolls .actions:not(.inline) { box-shadow: 0 -8px 16px -8px rgba(33, 31, 36, 0.12); }
}
/* short laptop screens (800px tall or less): smaller headline to save space */
@media (min-width: 900px) and (max-height: 800px) { h1 { font-size: 30px; } }
/* Step 4 headline on one line on desktop: sized to the left column (half the screen minus its padding) */
@media (min-width: 900px) { #step-book h1 { font-size: clamp(22px, calc((50vw - 2 * var(--pad-x)) / 15), 34px); } }
@media (max-width: 340px) { .grid2 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
