/* Reserve flow */
.rsv-body { background: var(--linen); }
.rsv { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 100svh; }

/* left: image panel */
.rsv__aside { position: sticky; top: 0; height: 100svh; overflow: hidden; color: var(--linen); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 3.4vw, 48px); }
.rsv__aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s ease; }
.rsv__aside img.is-fading { opacity: 0; }
.rsv__aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(39,42,30,.55) 0%, rgba(39,42,30,.1) 35%, rgba(74,52,38,.78) 100%); }
.rsv__aside > div { position: relative; z-index: 1; }
.rsv__brand { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.rsv__dates { margin: .5em 0 0; font-size: 11px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-soft); }
.rsv__summary { background: rgba(250, 246, 239, .12); backdrop-filter: blur(10px); border: 1px solid rgba(250, 246, 239, .22); border-radius: var(--radius); padding: 22px 24px; max-width: 380px; }
.rsv__summary .s-room { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; margin: 0 0 .2em; }
.rsv__summary .s-detail { font-size: 13px; opacity: .85; margin: 0 0 1em; }
.rsv__summary .s-line { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; padding: .45em 0; border-top: 1px solid rgba(250,246,239,.18); }
.rsv__summary .s-line b { font-weight: 400; color: var(--gold-soft); }

/* right: form */
.rsv__main { display: flex; flex-direction: column; padding: clamp(24px, 3.4vw, 48px) var(--gutter) clamp(40px, 5vw, 72px); }
.rsv__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; max-width: 600px; width: 100%; margin: 0 auto; }
.rsv__back-home { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.rsv__back-home:hover { color: var(--clay); }
.rsv__progress { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.rsv__progress li { width: 28px; height: 3px; border-radius: 3px; background: var(--sand); transition: background .4s; }
.rsv__progress li.is-done { background: var(--sage-deep); }
.rsv__progress li.is-current { background: var(--gold); }

.rsv__form { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 600px; width: 100%; margin: 0 auto; padding-top: clamp(36px, 6vh, 80px); }
.step { display: none; }
.step.is-active { display: block; animation: rise .6s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step.is-active { animation: none; } }
.step h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: .45em; outline: none; }
.step .eyebrow { margin-bottom: 1em; }
.step__intro { color: var(--muted); max-width: 32em; margin-bottom: 2rem; }

/* room cards */
.rooms { display: grid; gap: 14px; }
.room { display: grid; grid-template-columns: 116px 1fr auto; gap: 20px; align-items: center; width: 100%; text-align: left; padding: 12px 22px 12px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff6; cursor: pointer; font: inherit; color: inherit; transition: border-color .3s, transform .3s, box-shadow .3s; }
.room:hover, .room:focus-visible { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(46,41,34,.08); outline: none; }
.room img { width: 116px; height: 96px; object-fit: cover; border-radius: 12px; }
.room__opt { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--clay); }
.room__name { display: block; font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; margin: .2em 0 .15em; }
.room__detail { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.room__price { text-align: right; white-space: nowrap; }
.room__price strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1; }
.room__price small { display: block; font-size: 11px; color: var(--muted); margin-top: .35em; }
.room__price s { text-decoration-color: var(--gold); }
@media (max-width: 560px) {
  .room { grid-template-columns: 84px 1fr; padding-right: 16px; }
  .room img { width: 84px; height: 84px; }
  .room__price { grid-column: 2; text-align: left; display: flex; gap: 10px; align-items: baseline; }
  .room__price strong { font-size: 1.3rem; }
  .room__price small { margin: 0; }
}

/* chosen room chip */
.chosen { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 999px; background: var(--cream); margin-bottom: 2.2rem; width: fit-content; max-width: 100%; }
.chosen img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.chosen span { font-size: 13.5px; line-height: 1.35; }
.chosen b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.05rem; }

/* fields */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.field { grid-column: span 2; position: relative; }
.field.half { grid-column: span 1; }
@media (max-width: 520px) { .field.half { grid-column: span 2; } }
.field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--clay); margin-bottom: .5em; }
.field .opt { font-weight: 400; letter-spacing: .1em; color: var(--muted); text-transform: none; margin-left: .4em; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(46,41,34,.3); background: transparent; padding: .55em 0; border-radius: 0;
  font-family: var(--sans); font-size: 1.1rem; color: var(--ink); transition: border-color .3s; resize: vertical;
}
.field textarea { line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: rgba(109,100,88,.6); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
#intention { border: 1px solid rgba(46,41,34,.2); border-radius: 14px; padding: 1em 1.1em; font-size: 1.05rem; background: #fff5; }
#intention:focus { border-color: var(--gold); box-shadow: none; }
.field.has-error input, .field.has-error textarea { border-bottom-color: #a2513a; }
.field__err { display: block; font-size: 12.5px; color: #a2513a; margin-top: .45em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* tick */
.tick { display: flex; gap: 14px; align-items: flex-start; margin-top: 2rem; cursor: pointer; line-height: 1.55; }
.tick input { appearance: none; flex: none; width: 22px; height: 22px; margin: 2px 0 0; border: 1px solid var(--clay); border-radius: 6px; background: transparent; cursor: pointer; display: grid; place-content: center; transition: background .25s; }
.tick input::after { content: ""; width: 10px; height: 6px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.tick input:checked { background: var(--moss); border-color: var(--moss); }
.tick input:checked::after { opacity: 1; }
.tick input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tick.has-error input { border-color: #a2513a; }
.tick--agree { padding: 20px 22px; background: var(--cream); border-radius: var(--radius); margin-top: 1.6rem; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--clay); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; cursor: pointer; }
.note { margin-top: 1.8rem; color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 1.1rem; }

/* summary */
.summary { margin: 0 0 1.6rem; border-top: 1px solid var(--line); }
.summary div { display: flex; justify-content: space-between; gap: 24px; padding: .85em 0; border-bottom: 1px solid var(--line); }
.summary dt { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--clay); padding-top: .35em; flex: none; }
.summary dd { margin: 0; text-align: right; }
.summary .total dd { font-family: var(--serif); font-size: 1.35rem; }
.summary .deposit dd { font-family: var(--serif); font-size: 1.35rem; color: var(--moss); }
.caps-label { font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--clay); margin-bottom: .5em; }
.next-steps p:last-child { color: var(--muted); margin: 0; }
.form-error { margin-top: 1.2rem; color: #a2513a; }

/* nav */
.rsv__nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 2.8rem; }
.rsv__backbtn { background: none; border: 0; padding: .6em 0; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.rsv__backbtn:hover { color: var(--clay); }
.rsv__backbtn[hidden] { display: inline-block; visibility: hidden; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* done */
.step--done { text-align: center; }
.step--done .ornament { color: var(--gold); }
.step--done .step__intro { margin-left: auto; margin-right: auto; }
.bank { text-align: left; background: var(--sand); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); margin: 0 auto 2rem; }
.bank__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: .7em 0; border-bottom: 1px solid rgba(46,41,34,.12); }
.bank__row:last-child { border-bottom: 0; }
.bank__row dt { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--clay); }
.bank__row dd { margin: 0; display: flex; align-items: center; gap: 10px; text-align: right; font-size: 1.02rem; word-break: break-all; }
.bank__row.is-key dd { font-family: var(--serif); font-size: 1.3rem; }
.copy { flex: none; border: 1px solid rgba(46,41,34,.25); background: transparent; border-radius: 999px; padding: .35em .9em; font: inherit; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--clay); cursor: pointer; }
.copy:hover { background: var(--linen); }
.after { text-align: left; list-style: none; counter-reset: a; padding: 0; margin: 0 auto 2rem; }
.after li { counter-increment: a; position: relative; padding: .2em 0 1.1em 44px; }
.after li::before { content: counter(a); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-content: center; font-family: var(--serif); font-size: .95rem; color: var(--clay); }
.done__sign { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--clay); margin: 1rem 0 2rem; }

/* policy dialog */
.policy-dialog { border: 0; padding: 0; border-radius: var(--radius); max-width: 720px; width: calc(100% - 32px); max-height: 86vh; background: var(--linen); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.policy-dialog::backdrop { background: rgba(39,42,30,.55); backdrop-filter: blur(3px); }
.policy-dialog__inner { padding: clamp(28px, 4vw, 52px); position: relative; }
.policy-dialog h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.policy-dialog h4 { font-size: 1.25rem; margin: 1.6em 0 .4em; }
.policy-dialog__body { color: var(--muted); font-size: .95em; margin-bottom: 2rem; }
.policy-dialog__close { position: absolute; top: 14px; right: 18px; background: none; border: 0; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; }

/* mobile */
@media (max-width: 900px) {
  .rsv { grid-template-columns: 1fr; }
  .rsv__aside { position: relative; height: 30svh; min-height: 220px; padding: 22px var(--gutter); }
  .rsv__summary { display: none; }
  .rsv__form { justify-content: flex-start; padding-top: 32px; }
  .rsv__head { order: -1; }
}

/* fixes after review */
[hidden] { display: none !important; }
.rsv__backbtn[hidden] { display: inline-block !important; visibility: hidden; }
.bank__row dd { word-break: normal; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .bank__row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .bank__row dd { justify-content: space-between; width: 100%; text-align: left; }
}
.after strong { white-space: nowrap; }
