:root {
  --bg: #0e0f0c;
  --bg-lift: #171814;
  --ink: #f3efe6;
  --muted: #a8a296;
  --line: #2c2d27;
  --line-strong: #3d3e36;
  --accent: #DCB04F;
  --danger: #e07a6a;
  --radius: 14px;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -10%, #24251e 0%, transparent 60%),
    var(--bg);
}

.page {
  width: min(100%, 440px);
  margin: 0 auto;
  padding: 36px 20px 48px;
}

.page.is-booking {
  width: min(100%, 920px);
}

.page.is-booking .brand,
.page.is-booking .hero,
.page.is-booking .perks,
.page.is-booking footer {
  width: min(100%, 480px);
  margin-left: auto;
  margin-right: auto;
}

.brand {
  text-align: center;
  margin-bottom: 28px;
}

.logo {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
}

.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero {
  text-align: center;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 7.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.perks {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.perks li {
  position: relative;
  padding: 9px 0 9px 22px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
  border-bottom: 1px solid var(--line);
}

.perks li:first-child {
  border-top: 1px solid var(--line);
}

.perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.perks .perks-sub {
  display: block;
  margin-top: 3px;
  font-size: 0.88rem;
  color: var(--muted);
}

.card {
  background: var(--bg-lift);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px 20px;
}

.page.is-booking .card {
  padding: 28px 22px 24px;
}

.field {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.name-row .field {
  margin-bottom: 16px;
}

.step-label {
  margin: 0 0 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field.question legend {
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 600;
}

label,
legend {
  display: block;
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 12px;
  color: var(--ink);
  background: #10110e;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  caret-color: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 84px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path fill='%23a8a296' d='M4 6l4 5 4-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

input::placeholder,
textarea::placeholder {
  color: #6f6c63;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 11px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #10110e;
  font-weight: 500;
  cursor: pointer;
}

.choice input {
  accent-color: var(--accent);
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.choice:has(input:checked) {
  border-color: var(--accent);
  background: #221f16;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 18px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 400;
}

.consent input {
  margin-top: 3px;
  flex: 0 0 auto;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.form-error {
  margin: 0 0 12px;
  color: var(--danger);
  font-size: 0.88rem;
}

button[type="submit"] {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #16150f;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

button[type="submit"]:hover {
  filter: brightness(1.05);
}

button[type="submit"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
}

#back-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

#back-btn:hover {
  color: var(--ink);
}

#back-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#back-btn[hidden] {
  display: none;
}

.booking-heading {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.3;
  text-align: center;
}

.booking-confirm {
  margin: 0 0 16px;
  padding: 12px 14px;
  text-align: center;
  color: #16150f;
  background: var(--accent);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
}

.booking-confirm[hidden] {
  display: none;
}

.calendly-embed {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 700px;
  height: 1000px;
  overflow: hidden;
  overflow-anchor: none;
}

.calendly-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

footer {
  margin-top: 28px;
  text-align: center;
}

footer p {
  margin: 0;
  color: #6f6c63;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

@media (min-width: 800px) {
  .page {
    width: min(100%, 480px);
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .page.is-booking {
    width: min(100%, 920px);
  }

  .logo {
    width: 88px;
    height: 88px;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .calendly-embed {
    min-height: 700px;
  }
}
