/* Áve booking portal: shared styles for /book pages. Cream, mobile first. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --parchment: #F5F0E8;
  --paper: #FFFFFF;
  --ink: #1A1A1A;
  --ink-2: #4A4540;      /* body text on cream, 8.9:1 */
  --ink-3: #6B6258;      /* muted text on cream, 5.3:1 */
  --gold: #8B7355;       /* accent on cream, 4.6:1 */
  --gold-warm: #C9A96E;
  --line: rgba(139,115,85,0.32);
  --line-soft: rgba(139,115,85,0.18);
  --tint: rgba(139,115,85,0.07);
  --error: #9E2B25;
  --ok: #3F6B3A;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--parchment); color: var(--ink);
  font-family: 'Montserrat', sans-serif; font-weight: 300; font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
a { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, label.choice:focus-within {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 0.5px solid var(--line-soft); }
.brand { font-family: 'Cormorant SC', serif; font-size: 26px; letter-spacing: 0.14em; color: var(--gold); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.top-link { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* Type */
.eyebrow { font-size: 11px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
h1 { font-family: 'Cormorant SC', serif; font-weight: 400; font-size: clamp(32px, 7vw, 48px); letter-spacing: 0.02em; line-height: 1.08; margin-bottom: 14px; }
h2 { font-family: 'Cormorant SC', serif; font-weight: 400; font-size: 24px; letter-spacing: 0.03em; line-height: 1.2; margin-bottom: 6px; }
.lede { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 19px; color: var(--ink-2); line-height: 1.5; max-width: 560px; }
.hint { font-size: 13px; color: var(--ink-3); }

/* Layout */
.page { max-width: 1080px; margin: 0 auto; padding: 32px 20px 140px; }
.hero { margin-bottom: 28px; }
.layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) {
  .page { padding: 48px 32px 80px; }
  .layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
}

/* Steps */
.step { background: var(--paper); border: 0.5px solid var(--line); padding: 22px 18px; margin-bottom: 16px; border-radius: 2px; }
@media (min-width: 600px) { .step { padding: 28px; } }
.step-head { display: flex; gap: 14px; align-items: baseline; margin-bottom: 18px; }
.step-num { font-family: 'Cormorant SC', serif; font-size: 18px; color: var(--gold); min-width: 22px; }
.step.locked { opacity: 0.45; pointer-events: none; }
.step.locked .step-body { display: none; }
.step.locked .locked-note { display: block; }
.locked-note { display: none; font-size: 13px; color: var(--ink-3); }

/* Fields */
.field { margin-bottom: 16px; }
.field label, .legend { display: block; font-size: 12px; font-weight: 400; letter-spacing: 0.08em; color: var(--ink-2); margin-bottom: 6px; }
.field .opt { color: var(--ink-3); font-weight: 300; letter-spacing: 0; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px; appearance: none; -webkit-appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
textarea { min-height: 88px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9A9088; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; }
.invalid input, .invalid select, .invalid textarea, input.invalid { border-color: var(--error); background: #FCF4F3; }
.err { display: none; font-size: 12px; color: var(--error); margin-top: 6px; }
.invalid .err { display: block; }
.row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .row.two { grid-template-columns: 1fr 1fr; } .row.addr { grid-template-columns: 2fr 1fr 1fr; } }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 2px;
  font: inherit; font-size: 12px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-gold { background: var(--gold); color: #FFFFFF; }
.btn-gold:hover { background: #7A6449; }
.btn-gold:disabled { background: #C9BCA9; color: #FFFFFF; cursor: default; }
.btn-dark { background: var(--ink); color: var(--parchment); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-block { width: 100%; }

/* Choice tiles (radio / checkbox) */
.choices { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .choices.cols-2 { grid-template-columns: 1fr 1fr; } .choices.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
label.choice { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 2px; cursor: pointer; font-size: 14px; color: var(--ink); }
label.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.choice .mark { width: 18px; height: 18px; border: 1px solid var(--gold); border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; }
label.choice.box .mark { border-radius: 2px; }
label.choice input:checked + .mark { background: var(--gold); box-shadow: inset 0 0 0 3px var(--paper); }
label.choice.box input:checked + .mark { box-shadow: none; }
label.choice.box input:checked + .mark::after { content: ''; width: 5px; height: 9px; border: solid #FFF; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
label.choice:has(input:checked) { border-color: var(--gold); background: var(--tint); }
label.choice:has(input:disabled) { opacity: 0.45; cursor: default; }
label.choice .sub { display: block; font-size: 12px; color: var(--ink-3); }
.chips label.choice { padding: 10px 16px; }

/* Package card */
.pkg { display: grid; gap: 14px; }
.pkg-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pkg-name { font-family: 'Cormorant SC', serif; font-size: 24px; letter-spacing: 0.03em; }
.pkg-price { font-family: 'Cormorant SC', serif; font-size: 28px; color: var(--gold); }
.pkg ul { list-style: none; display: grid; gap: 6px; }
.pkg li { font-size: 14px; color: var(--ink-2); padding-left: 18px; position: relative; }
.pkg li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-warm); }

/* Notices */
.note { padding: 14px 16px; border: 1px solid var(--line); background: var(--tint); font-size: 14px; color: var(--ink-2); border-radius: 2px; }
.note.ok { border-color: rgba(63,107,58,0.35); background: rgba(63,107,58,0.06); color: var(--ok); }
.note.warn { border-color: rgba(158,43,37,0.3); background: #FCF4F3; color: var(--error); }
.result { margin-top: 10px; font-size: 14px; }
.result.ok { color: var(--ok); }
.result.no { color: var(--ink-2); }
.banner { margin-bottom: 20px; }
.consent { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.consent strong { font-weight: 500; }
.legal { font-size: 12px; color: var(--ink-3); margin-top: 12px; }

/* Summary */
.summary { background: var(--paper); border: 0.5px solid var(--line); padding: 22px; border-radius: 2px; }
@media (min-width: 900px) { .summary { position: sticky; top: 24px; } }
.summary h2 { font-size: 20px; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 8px 0; border-bottom: 0.5px solid var(--line-soft); }
.sum-row span:first-child { color: var(--ink-3); }
.sum-row span:last-child { text-align: right; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; }
.sum-total .amt { font-family: 'Cormorant SC', serif; font-size: 28px; color: var(--ink); }
.sum-foot { font-size: 12px; color: var(--ink-3); margin-top: 10px; }

/* Mobile summary bar */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(139,115,85,0.6);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mbar .t { font-family: 'Cormorant SC', serif; font-size: 22px; }
.mbar .s { font-size: 12px; color: var(--ink-3); }
.mbar button { background: var(--gold); border: 0; color: #FFFFFF; min-height: 44px; padding: 0 16px; font: inherit;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; border-radius: 2px; cursor: pointer; }
@media (min-width: 900px) { .mbar { display: none; } }
@media (max-width: 899px) {
  .summary-wrap { position: fixed; inset: auto 0 0 0; z-index: 60; transform: translateY(110%); transition: transform 220ms ease; max-height: 80vh; overflow: auto;
    box-shadow: 0 -12px 40px rgba(0,0,0,0.18); }
  .summary-wrap.open { transform: none; }
  .summary-wrap .summary { border-radius: 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .summary-close { display: inline-flex !important; }
}
.summary-close { display: none; float: right; min-height: 44px; min-width: 44px; align-items: center; justify-content: center; background: none; border: 0;
  font-size: 22px; color: var(--ink-2); cursor: pointer; margin: -10px -10px 0 0; }

/* Simple centered pages */
.narrow { max-width: 620px; margin: 0 auto; padding: 40px 20px 80px; }
.card { background: var(--paper); border: 0.5px solid var(--line); padding: 24px 20px; border-radius: 2px; margin-bottom: 16px; }
@media (min-width: 600px) { .card { padding: 32px; } }
.kv { display: grid; grid-template-columns: 1fr; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 0.5px solid var(--line-soft); font-size: 14px; }
.kv div span:first-child { color: var(--ink-3); }
.kv div span:last-child { text-align: right; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.spinner { width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 800ms linear infinite; display: inline-block; vertical-align: middle; margin-right: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.foot { text-align: center; font-size: 12px; color: var(--ink-3); padding: 24px 20px 40px; }
.foot a { color: var(--ink-3); }

/* Terms */
.terms h2 { margin-top: 28px; font-size: 21px; color: var(--ink); }
.terms p, .terms li { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.terms ul { padding-left: 20px; }

/* Custom order (more water than the package) */
.custom-order { margin-top: 20px; padding: 16px; border: 1px dashed var(--line); background: var(--tint); border-radius: 2px;
  display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 600px) { .custom-order { flex-direction: row; align-items: center; justify-content: space-between; } }
.custom-title { font-family: 'Cormorant SC', serif; font-size: 19px; color: var(--ink); margin-bottom: 2px; }
.custom-order .btn { flex-shrink: 0; }

/* FAQ */
.faq { max-width: 760px; margin: 40px 0 0; }
.faq h2 { font-size: 24px; margin-bottom: 12px; }
.faq-item { border-top: 0.5px solid var(--line); padding: 4px 0; }
.faq-item:last-of-type { border-bottom: 0.5px solid var(--line); }
.faq-item summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: 400; color: var(--ink); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; margin-left: auto; color: var(--gold); font-size: 20px; padding-left: 12px; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { font-size: 14px; color: var(--ink-2); padding: 0 0 14px; }
/* Reviews inside the pay step */
.book-reviews { margin: 6px 0 20px; padding: 18px 8px 4px; border-top: 0.5px solid var(--line-soft); }
.book-reviews blockquote { font-size: 20px !important; }
/* Consultation toast */
.consult-toast { position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 86px; max-width: 420px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold-warm);
  box-shadow: 0 18px 40px -22px rgba(139,115,85,0.6); padding: 14px 48px 14px 16px; font-size: 14px; color: var(--ink-2); border-radius: 2px; }
.consult-toast a { color: var(--gold); }
.consult-toast button { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; border: 0; background: none; font-size: 20px; color: var(--ink-3); cursor: pointer; }
@media (min-width: 900px) { .consult-toast { left: auto; right: 24px; bottom: 24px; } }
