/* reserve page: Reserve your spot (same visual language as Cost of Living / About AMME) */
:root {
  --pad-x: clamp(20px, 6.77vw, 130px);
  --field-h: 54px;
  --field-line: var(--grey-300);
}
.page { border-bottom: 1px solid var(--grey-200); }
.rsv p, .rsv li { text-wrap: pretty; }
.rsv input, .rsv select, .rsv textarea { font: inherit; color: inherit; }
.rsv button { font: inherit; }
.rv { will-change: transform, opacity; }
[hidden] { display: none !important; }

/* ---------- 01 HERO ---------- */
.rsv-hero {
  background: linear-gradient(to bottom, var(--grey-300) 0%, var(--white) 80%);
  padding: clamp(190px, 16vw, 300px) var(--pad-x) clamp(50px, 4.2vw, 80px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.rsv-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px;
  padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--grey-200);
  font-size: var(--fs-xs); font-weight: 500; color: var(--ink);
}
.rsv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(var(--teal-rgb), .6); animation: rsv-ping 2s ease-out infinite; }
@keyframes rsv-ping { 70% { box-shadow: 0 0 0 10px rgba(var(--teal-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--teal-rgb), 0); } }
.rsv-hero__title { font-size: var(--fs-hero); line-height: 0.95; font-weight: 800; letter-spacing: -0.03em; }
.rsv-hero__title .line { display: block; background-image: linear-gradient(to right, var(--black), var(--grey-600)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: 0.06em; }
.rsv-hero__title .rsv-hl { background-image: linear-gradient(to right, var(--purple), var(--purple-60)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rsv-hero__lede { font-family: var(--font-book); font-size: var(--fs-lead); line-height: 1.3; color: var(--ink-80); max-width: 36ch; margin-top: 30px; text-wrap: balance; }

/* ---------- 02 BODY: batch card + form ---------- */
.rsv-body { padding: 0 var(--pad-x) clamp(80px, 6.77vw, 130px); }
.rsv-grid { max-width: 1660px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 27.5px; align-items: start; }
.rsv-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 27.5px; }

/* batch card: the same purple → amber gradient as the Upcoming Batches CTA */
.rsv-batch {
  border-radius: 20px; color: var(--white); padding: clamp(32px, 2.6vw, 50px);
  background: linear-gradient(to bottom, var(--purple) 4.3%, var(--sunset) 52.2%, var(--amber) 100%);
}
.rsv-batch__k { font-family: var(--font-book); font-size: var(--fs-body); opacity: .9; }
.rsv-batch__date { font-size: var(--fs-display); font-weight: 800; letter-spacing: -0.04em; line-height: .95; margin: 12px 0 36px; }
.rsv-batch__facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(var(--white-rgb), .35); border-radius: 12px; overflow: hidden; }
.rsv-batch__facts div { padding: 16px 18px; background: rgba(var(--white-rgb), .14); backdrop-filter: blur(6px); }
.rsv-batch__facts dt { font-size: var(--fs-2xs); opacity: .85; margin-bottom: 4px; }
.rsv-batch__facts dd { margin: 0; font-size: var(--fs-md); font-weight: 700; letter-spacing: -0.01em; }
.rsv-batch__note { margin-top: 20px; font-size: var(--fs-xs); font-weight: 500; }

.rsv-next { border-radius: 20px; border: 1px solid var(--grey-200); padding: clamp(28px, 2.4vw, 44px); background: var(--white); }
.rsv-next__title { font-size: var(--fs-lead); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px; }
.rsv-next ol { margin: 0; padding: 0; list-style: none; counter-reset: n; display: flex; flex-direction: column; gap: 20px; }
.rsv-next li { counter-increment: n; position: relative; padding-left: 52px; font-family: var(--font-book); font-size: var(--fs-sm); line-height: 1.4; color: var(--ink-80); }
.rsv-next li b { display: block; font-family: var(--font); color: var(--ink); font-size: var(--fs-sm); margin-bottom: 2px; }
.rsv-next li::before {
  content: "0" counter(n); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center; font-family: var(--font); font-size: var(--fs-2xs); font-weight: 700; color: var(--white); background: var(--amber);
}
.rsv-next li:nth-child(2)::before { background: var(--teal); }
.rsv-next li:nth-child(3)::before { background: var(--purple); }
.rsv-next__help { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--grey-200); font-size: var(--fs-xs); color: var(--ink-60); line-height: 1.6; }
.rsv-next__help a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.rsv-next__help a:hover { color: var(--purple); }
.rsv-video + .rsv-next__help { margin-top: 10px; padding-top: 0; border-top: 0; }

/* ---------- FORM CARD ---------- */
.rsv-card {
  border-radius: 20px; background: var(--white); border: 1px solid var(--grey-200);
  box-shadow: 0 30px 80px rgba(var(--black-rgb), .07);
  padding: clamp(28px, 3.2vw, 60px);
  scroll-margin-top: 110px;
}

/* progress */
.rsv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rsv-steps li { display: flex; align-items: center; gap: 12px; color: var(--ink-60); transition: color .3s ease; }
.rsv-steps__n { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 700; border: 1px solid var(--ink-40); transition: background-color .3s ease, border-color .3s ease, color .3s ease; }
.rsv-steps__l { font-weight: 700; font-size: var(--fs-sm); }
.rsv-steps li.is-current, .rsv-steps li.is-done { color: var(--ink); }
.rsv-steps li.is-current .rsv-steps__n { background: var(--ink); border-color: var(--ink); color: var(--white); }
.rsv-steps li.is-done .rsv-steps__n { background: var(--teal); border-color: var(--teal); color: var(--white); }
.rsv-bar { height: 4px; border-radius: 999px; background: var(--grey-150); margin: 22px 0 clamp(30px, 2.6vw, 48px); overflow: hidden; }
.rsv-bar i { display: block; height: 100%; width: 33.34%; border-radius: inherit; background: linear-gradient(to right, var(--amber), var(--teal), var(--purple)); background-size: 300% 100%; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.rsv-form:not(.is-steps) .rsv-steps, .rsv-form:not(.is-steps) .rsv-bar { display: none; }

/* steps: all visible without JS; with JS only the current one shows */
.rsv-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.rsv-step__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
.rsv-form:not(.is-steps) .rsv-step + .rsv-step { margin-top: 60px; padding-top: 50px; border-top: 1px solid var(--grey-200); }
.rsv-form.is-steps .rsv-step:not(.is-active) { display: none; }
.rsv-step__title { display: block; width: 100%; padding: 0; margin-bottom: 32px; font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }

.rsv-field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rsv-field--full { grid-column: 1 / -1; }
.rsv-label { font-size: var(--fs-xs); font-weight: 700; color: var(--ink); }
.rsv-label em { font-style: normal; font-weight: 400; color: var(--ink-60); margin-left: 6px; font-size: var(--fs-2xs); }
.rsv-hint { font-family: var(--font-book); font-size: var(--fs-xs); color: var(--ink-60); }

.rsv input[type="text"], .rsv input[type="email"], .rsv input[type="tel"], .rsv input[type="url"], .rsv select, .rsv textarea {
  width: 100%; height: var(--field-h); padding: 0 18px; border: 1px solid var(--field-line); border-radius: 10px;
  background: var(--white); font-size: var(--fs-sm); font-weight: 500; transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none; appearance: none;
}
.rsv textarea { height: auto; min-height: 110px; padding: 15px 18px; resize: vertical; line-height: 1.4; }
.rsv ::placeholder { color: var(--ink-40); font-weight: 400; }
.rsv select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23322d35' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.rsv select:has(option[value=""]:checked) { color: var(--ink-60); font-weight: 400; }
.rsv input:hover, .rsv select:hover, .rsv textarea:hover { border-color: var(--ink-60); }
.rsv input:focus, .rsv select:focus, .rsv textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(var(--teal-rgb), .2); }
.rsv [aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(var(--danger-rgb), .12) !important; }
.rsv-err { font-size: var(--fs-xs); color: var(--danger-text); font-weight: 500; }
.rsv-alert { margin-bottom: 30px; padding: 14px 18px; border-radius: 10px; background: var(--danger-bg); color: var(--danger-deep); font-weight: 500; }

.rsv-phone { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px; }

/* chips (radio buttons) */
.rsv-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.rsv-chips--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rsv-chips--4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rsv-chips--5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rsv-chip { position: relative; cursor: pointer; }
.rsv-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rsv-chip span {
  display: flex; align-items: center; justify-content: center; text-align: center; height: 100%; min-height: 50px; padding: 10px 20px;
  border-radius: 10px; border: 1px solid var(--field-line); font-size: var(--fs-xs); font-weight: 500; line-height: 1.2;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.rsv-chip:hover span { border-color: var(--ink); }
.rsv-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); font-weight: 700; }
.rsv-chip input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 3px; }
.rsv-chip input:active + span { transform: scale(.98); }
.rsv-chips.is-invalid .rsv-chip span { border-color: var(--danger); }

/* checkbox */
.rsv-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-family: var(--font-book); font-size: var(--fs-xs); line-height: 1.4; color: var(--ink-80); }
.rsv-check input { flex: none; -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 6px; border: 1px solid var(--ink-40); background: var(--white) center / 14px no-repeat; cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.rsv-check input:checked { background-color: var(--teal); border-color: var(--teal); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.rsv-check input:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.rsv-check input[aria-invalid="true"] { border-color: var(--danger); }
.rsv-check--sm { font-size: var(--fs-xs); align-items: center; }
.rsv-check--sm input { width: 18px; height: 18px; border-radius: 5px; background-size: 12px; }

/* honeypot */
.rsv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* nav buttons */
.rsv-nav { display: flex; align-items: center; gap: 14px; margin-top: clamp(36px, 3vw, 56px); padding-top: 28px; border-top: 1px solid var(--grey-200); }
.rsv-nav__count { margin-right: auto; font-size: var(--fs-xs); color: var(--ink-60); }
.rsv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 32px;
  border: 0; border-radius: 10px; background: var(--black); color: var(--white); font-weight: 700; font-size: var(--fs-sm); cursor: pointer;
  transition: background-color .25s ease, transform .2s ease, color .25s ease;
}
.rsv-btn::after { content: "\2192"; font-weight: 400; transition: transform .25s ease; }
.rsv-btn:hover { background: var(--purple); }
.rsv-btn:hover::after { transform: translateX(4px); }
.rsv-btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-40); }
.rsv-btn--ghost::after { content: none; }
.rsv-btn--ghost::before { content: "\2190"; font-weight: 400; transition: transform .25s ease; }
.rsv-btn--ghost:hover { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.rsv-btn--ghost:hover::before { transform: translateX(-4px); }
.rsv-btn--go { background: linear-gradient(to right, var(--purple), var(--sunset) 60%, var(--amber)); background-size: 200% 100%; background-position: 0 0; transition: background-position .5s ease, transform .2s ease; }
.rsv-btn--go:hover { background: linear-gradient(to right, var(--purple), var(--sunset) 60%, var(--amber)); background-size: 200% 100%; background-position: 100% 0; }
.rsv-btn[disabled] { opacity: .6; cursor: progress; }
.rsv-btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(var(--white-rgb),.4); border-top-color: var(--white); animation: rsv-spin .7s linear infinite; }
@keyframes rsv-spin { to { transform: rotate(360deg); } }

/* success */
.rsv-done { text-align: center; padding: clamp(30px, 4vw, 80px) 0; display: flex; flex-direction: column; align-items: center; gap: 22px; outline: none; }
.rsv-done__tick { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: var(--white); background: linear-gradient(135deg, var(--purple), var(--sunset) 55%, var(--amber)); }
.rsv-done__tick svg { width: 38px; height: 38px; }
.rsv-done__title { font-size: var(--fs-display); line-height: 1; font-weight: 800; letter-spacing: -0.03em; max-width: 14ch; }
.rsv-done p { font-family: var(--font-book); font-size: var(--fs-lead); line-height: 1.35; color: var(--ink-80); max-width: 34ch; }
.rsv-ref { font-family: var(--font); color: var(--ink); background: var(--amber-40); padding: 2px 10px; border-radius: 6px; white-space: nowrap; }
.rsv-done__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1280px) {
  .rsv-chips--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rsv-chips--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .rsv-grid { grid-template-columns: minmax(0, 1fr); }
  .rsv-aside { position: static; order: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .rsv-aside { grid-template-columns: minmax(0, 1fr); }
  .rsv-step__grid { grid-template-columns: minmax(0, 1fr); }
  .rsv-chips--3, .rsv-chips--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rsv-steps__l { display: none; }
  .rsv-steps li.is-current .rsv-steps__l { display: inline; }
  .rsv-steps { grid-template-columns: auto auto auto; justify-content: start; gap: 10px; }
  .rsv-card { border-radius: 16px; }
}
@media (max-width: 480px) {
  .rsv-chips--4 { grid-template-columns: minmax(0, 1fr); }
  .rsv-phone { grid-template-columns: 132px minmax(0, 1fr); }
  .rsv-phone select { padding: 0 34px 0 14px; background-position: right 12px center; }
  .rsv-nav { flex-wrap: wrap; }
  .rsv-nav__count { order: -1; width: 100%; }
  .rsv-btn { flex: 1; padding: 0 20px; }
  .rsv-batch__facts dd { font-size: var(--fs-sm); }
}
@media (prefers-reduced-motion: reduce) {
  .rsv-dot { animation: none; }
  .rsv-bar i, .rsv-btn, .rsv-chip span { transition: none; }
}

/* reserve-your-spot.php: line + button under the VideoAsk embed */
.rsv-alt { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: clamp(30px, 3vw, 50px); text-align: center; }
.rsv-alt p { font-family: var(--font-book); font-size: var(--fs-lead); line-height: 1.35; color: var(--ink-80); max-width: 36ch; text-wrap: balance; }

/* reserve-your-spot.php (VideoAsk): 1080px-wide embed, 200px from the top on desktop */
.rsv-hero--va { padding: 200px var(--pad-x) clamp(60px, 5vw, 100px); }
.rsv-hero--va iframe { display: block; width: 100%; max-width: 1080px; height: 600px; margin-inline: auto; }
.rsv-hero--va .rsv-alt { margin-top: 55px; }
@media (max-width: 900px) {
  .rsv-hero--va { padding-top: 120px; }
  .rsv-hero--va iframe { height: min(640px, 82vh); }
  .rsv-hero--va .rsv-alt { margin-top: 36px; }
}
