/* Página de pré-venda — herda a linguagem da página de garantia (.policy-*) */
.reserva-page .policy-hero { min-height: 460px; }
.reserva-page .policy-hero__copy { padding-top: 64px; padding-bottom: 76px; }
.reserva-page .policy-back { margin-bottom: 52px; }

.reserva-section { background: var(--ivory); }
.reserva-root { max-width: 1260px; margin: 0 auto; padding: 0 48px 130px; }

/* como funciona */
.reserva-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 76px;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #171c1b24;
}
.reserva-flow[hidden] { display: none; }
.reserva-flow li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 26px 24px 24px 0;
  color: #4d5553;
  font-size: 12px;
  line-height: 1.5;
}
.reserva-flow li span { color: var(--champagne); letter-spacing: .15em; font-size: 11px; font-weight: 600; }

/* layout */
.reserva-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}
.reserva-main { grid-column: 1; grid-row: 1; min-width: 0; }
.reserva-summary { grid-column: 2; grid-row: 1; position: sticky; top: 32px; }

/* resumo */
.reserva-summary {
  background: #ffffff59;
  border: 1px solid #171c1b21;
}
.reserva-summary__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #e8e5dc;
  overflow: hidden;
}
.reserva-summary__visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.reserva-summary__visual img.is-mark { object-fit: contain; width: 34%; height: auto; position: absolute; inset: 0; margin: auto; opacity: .22; }
.reserva-summary__visual .micro-label {
  position: absolute; top: 18px; left: 20px;
  padding: 6px 9px;
  color: var(--velador-green);
  background: #faf9f5d9;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 9px;
}
.reserva-summary__body { padding: 26px 26px 28px; }
.reserva-summary h3 { margin: 0; font-size: 24px; font-weight: 400; letter-spacing: -.04em; line-height: 1.12; }
.reserva-summary__body > p { margin: 8px 0 0; color: #68706e; font-size: 11px; letter-spacing: .04em; line-height: 1.6; }
.reserva-summary dl { margin: 24px 0 0; padding: 0; border-top: 1px solid #171c1b24; }
.reserva-summary dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid #171c1b1a; }
.reserva-summary dt { color: #68706e; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.reserva-summary dd { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.reserva-summary dl > .is-total { border-bottom: 0; padding-top: 16px; }
.reserva-summary dl > .is-total dt { color: var(--velador-green); }
.reserva-summary dl > .is-total dd { color: var(--velador-green); font-size: 24px; font-weight: 500; letter-spacing: -.025em; }
.reserva-summary .reserva-summary__note { margin: 6px 0 0; color: #7a8280; font-size: 11px; line-height: 1.7; }

/* etapas */
.reserva-step { margin: 0 0 84px; padding: 0; border: 0; min-width: 0; }
.reserva-step legend { display: flex; align-items: baseline; gap: 16px; margin: 0 0 34px; padding: 0 0 22px; width: 100%; border-bottom: 1px solid #171c1b24; float: left; }
.reserva-step legend + * { clear: both; }
.reserva-step__n { color: var(--champagne); letter-spacing: .15em; font-size: 11px; font-weight: 600; }
.reserva-step__t { font-size: clamp(30px, 3.4vw, 46px); font-weight: 400; letter-spacing: -.055em; line-height: 1; }
.reserva-field-label { margin: 0 0 14px; color: var(--velador-green); letter-spacing: .2em; text-transform: uppercase; font-size: 9px; font-weight: 600; }
.reserva-field-label:not(:first-of-type) { margin-top: 38px; }

/* coleção */
.reserva-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.reserva-choice { position: relative; display: block; cursor: pointer; }
.reserva-choice input, .reserva-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.reserva-choice__body {
  display: flex; flex-direction: column; gap: 8px;
  min-height: 132px; padding: 20px 20px 18px;
  background: #ffffff38; border: 1px solid #171c1b2e;
  transition: border-color .22s var(--ease-out), background-color .22s var(--ease-out), transform .16s var(--ease-out);
}
.reserva-choice__body small { color: #74817d; letter-spacing: .18em; text-transform: uppercase; font-size: 8px; font-weight: 600; }
.reserva-choice__body strong { font-size: 22px; font-weight: 400; letter-spacing: -.04em; line-height: 1.1; }
.reserva-choice__body em { margin-top: auto; color: #4d5553; font-style: normal; font-size: 11px; font-variant-numeric: tabular-nums; }
.reserva-choice input:checked + .reserva-choice__body { border-color: var(--velador-green); background: #fff; box-shadow: inset 0 0 0 1px var(--velador-green); }
.reserva-choice input:checked + .reserva-choice__body small { color: var(--velador-green); }
.reserva-choice input:active + .reserva-choice__body { transform: scale(.985); }
.reserva-choice input:focus-visible + .reserva-choice__body, .reserva-chip input:focus-visible + .reserva-chip__body { outline: 2px solid var(--champagne); outline-offset: 3px; }

/* cores */
.reserva-variants { display: flex; flex-wrap: wrap; gap: 10px; min-height: 58px; }
.reserva-hint { margin: 0; align-self: center; color: #7a8280; font-size: 12px; }
.reserva-chip { position: relative; display: block; cursor: pointer; }
.reserva-chip__body {
  display: grid; grid-template-columns: 18px auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 12px 18px 12px 14px; min-height: 58px;
  background: #ffffff38; border: 1px solid #171c1b2e;
  transition: border-color .22s var(--ease-out), background-color .22s var(--ease-out);
}
.reserva-chip__body i { grid-row: 1 / 3; width: 18px; height: 18px; border-radius: 50%; border: 1px solid #171c1b40; }
.reserva-chip__body strong { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.reserva-chip__body small { color: #74817d; font-size: 10px; letter-spacing: .08em; }
.reserva-chip input:checked + .reserva-chip__body { border-color: var(--velador-green); background: #fff; box-shadow: inset 0 0 0 1px var(--velador-green); }

/* quantidade */
.reserva-qty { display: inline-flex; align-items: stretch; border: 1px solid #171c1b2e; background: #ffffff38; }
.reserva-qty button { width: 52px; height: 52px; font: inherit; font-size: 20px; color: var(--graphite); background: transparent; border: 0; cursor: pointer; transition: background-color .2s var(--ease-out), color .2s var(--ease-out); }
.reserva-qty button:focus-visible { outline: 2px solid var(--champagne); outline-offset: -4px; }
.reserva-qty output { display: grid; place-items: center; min-width: 56px; font-size: 16px; font-variant-numeric: tabular-nums; border-inline: 1px solid #171c1b24; }
@media (hover: hover) { .reserva-qty button:hover { background: var(--velador-green); color: #fff; } }

/* campos */
.reserva-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 30px; }
.reserva-field { display: flex; flex-direction: column; min-width: 0; }
.reserva-field.wide { grid-column: 1 / -1; }
.reserva-field label { color: #4d5553; letter-spacing: .16em; text-transform: uppercase; font-size: 9px; font-weight: 600; }
.reserva-field input, .reserva-field select, .reserva-field textarea {
  width: 100%; margin-top: 4px; padding: 14px 0 13px;
  font: inherit; font-size: 16px; color: var(--graphite);
  background: transparent; border: 0; border-bottom: 1px solid #171c1b3d; border-radius: 0; outline: 0;
  transition: border-color .22s var(--ease-out), box-shadow .22s var(--ease-out);
  -webkit-appearance: none; appearance: none;
}
.reserva-field select { background-image: linear-gradient(45deg, transparent 50%, #4d5553 50%), linear-gradient(135deg, #4d5553 50%, transparent 50%); background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 22px; }
.reserva-field textarea { resize: vertical; min-height: 84px; line-height: 1.6; }
.reserva-field input::placeholder { color: #9aa19f; }
.reserva-field input:focus, .reserva-field select:focus, .reserva-field textarea:focus { border-bottom-color: var(--velador-green); box-shadow: 0 1px 0 var(--velador-green); }
.reserva-field.has-error input, .reserva-field.has-error select, .reserva-field.has-error textarea { border-bottom-color: #a13a33; box-shadow: 0 1px 0 #a13a33; }
.reserva-error { margin: 9px 0 0; color: #a13a33; font-size: 12px; line-height: 1.5; }
.reserva-error[hidden] { display: none; }
.reserva-error--form { margin-top: 22px; font-weight: 600; }

/* confirmação */
.reserva-note { margin: 0 0 24px; padding: 18px 22px; color: #4d5553; font-size: 12px; line-height: 1.8; background: #ffffff61; border-left: 2px solid var(--champagne); }
.reserva-check { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; color: #4d5553; font-size: 12px; line-height: 1.8; cursor: pointer; }
.reserva-check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1px solid #171c1b66; background: #ffffff80; display: grid; place-items: center; cursor: pointer; transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out); }
.reserva-check input:checked { background: var(--velador-green); border-color: var(--velador-green); }
.reserva-check input:checked::after { content: ""; width: 9px; height: 5px; margin-top: -2px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.reserva-check input:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }
.reserva-check a { color: var(--velador-green); font-weight: 600; text-underline-offset: 3px; }
.reserva-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; margin-top: 38px; }
.reserva-submit { min-height: 58px; padding: 0 34px; border: 0; font-family: inherit; cursor: pointer; }
.reserva-actions__hint { max-width: 320px; color: #7a8280; font-size: 11px; line-height: 1.7; }
.reserva-icon { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* concluído */
.reserva-done { outline: 0; }
.reserva-done[hidden] { display: none; }
.reserva-done__head { padding: 38px 36px 40px; color: #fff; background: var(--velador-green); }
.reserva-done__head .micro-label { color: #d6c096; }
.reserva-done__head h2 { margin: 16px 0 16px; font-size: clamp(38px, 4.3vw, 60px); font-weight: 400; letter-spacing: -.055em; line-height: 1; outline: 0; }
.reserva-done__head p { margin: 0; max-width: 520px; color: #ffffffb0; font-size: 14px; line-height: 1.8; }
.reserva-todo { margin: 0; padding: 0; list-style: none; }
.reserva-todo > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding: 40px 0; border-bottom: 1px solid #171c1b24; }
.reserva-todo__n { display: grid; place-items: center; width: 34px; height: 34px; color: var(--velador-green); border: 1px solid #0c3b3766; border-radius: 50%; font-size: 12px; font-weight: 600; }
.reserva-todo h3 { margin: 4px 0 10px; color: var(--velador-green); font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.reserva-todo p { margin: 0 0 22px; color: #626a67; font-size: 13px; line-height: 1.85; max-width: 560px; }
.reserva-wa { min-height: 54px; padding: 0 28px; gap: 12px; }
.reserva-pix { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 8px; }
.reserva-pix__qr { padding: 10px; background: #fff; border: 1px solid #171c1b21; }
.reserva-pix__qr svg { display: block; width: 100%; height: auto; }
.reserva-pix__amount { display: block; font-size: 38px; font-weight: 400; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.reserva-pix .reserva-pix__who { margin: 12px 0 24px; font-size: 12px; }
.reserva-pix__label { display: block; margin-bottom: 8px; color: #4d5553; letter-spacing: .16em; text-transform: uppercase; font-size: 9px; font-weight: 600; }
.reserva-pix__code { display: flex; align-items: stretch; border: 1px solid #171c1b2e; background: #ffffff7a; }
.reserva-pix__code input { flex: 1; min-width: 0; padding: 0 14px; height: 50px; font: inherit; font-size: 13px; color: #4d5553; background: transparent; border: 0; outline: 0; text-overflow: ellipsis; }
.reserva-copy { display: inline-flex; align-items: center; gap: 9px; padding: 0 18px; color: #fff; background: var(--velador-green); border: 0; font: inherit; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background-color .22s var(--ease-out), transform .16s var(--ease-out); }
.reserva-copy:active { transform: scale(.97); }
.reserva-copy:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }
.reserva-copy.is-copied { background: #15504a; }
@media (hover: hover) { .reserva-copy:hover { background: #15504a; } }
.reserva-pix .reserva-pix__tip { margin: 16px 0 0; font-size: 12px; line-height: 1.8; }
.reserva-pix .reserva-pix__fallback { margin: 0; }
.reserva-done__foot { display: flex; gap: 34px; flex-wrap: wrap; padding-top: 34px; }
.reserva-link { padding: 0 0 6px; color: var(--velador-green); background: none; border: 0; border-bottom: 1px solid currentColor; font: inherit; font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.reserva-link:focus-visible { outline: 2px solid var(--champagne); outline-offset: 4px; }

/* tablet / celular */
@media (max-width: 1040px) {
  .reserva-layout { grid-template-columns: 1fr; gap: 56px; }
  .reserva-summary { grid-column: 1; grid-row: 1; position: static; display: grid; grid-template-columns: 150px minmax(0, 1fr); }
  .reserva-summary__visual { aspect-ratio: auto; min-height: 100%; }
  .reserva-summary__visual .micro-label { display: none; }
  .reserva-summary__body { padding: 20px 22px; }
  .reserva-summary h3 { font-size: 21px; }
  .reserva-main { grid-row: 2; }
}
@media (max-width: 820px) {
  .reserva-page .policy-hero { min-height: 520px; }
  .reserva-root { padding: 0 24px 90px; }
  .reserva-flow { grid-template-columns: 1fr; margin-bottom: 44px; }
  .reserva-flow li { padding: 15px 0; border-top: 1px solid #171c1b1a; }
  .reserva-flow li:first-child { border-top: 0; }
  .reserva-step { margin-bottom: 62px; }
  .reserva-choices { grid-template-columns: 1fr; gap: 10px; }
  .reserva-choice__body { min-height: 0; padding: 16px 18px; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
  .reserva-choice__body small { flex-basis: 100%; }
  .reserva-choice__body em { margin-top: 0; margin-left: auto; }
  .reserva-grid { grid-template-columns: 1fr; gap: 28px; }
  .reserva-done__head { padding: 30px 24px 32px; }
  .reserva-todo > li { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
  .reserva-pix { grid-template-columns: 1fr; gap: 24px; }
  .reserva-pix__qr { width: 220px; }
  .reserva-submit { width: 100%; justify-content: center; }
  .reserva-wa { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .reserva-summary { grid-template-columns: 112px minmax(0, 1fr); }
  .reserva-summary__body { padding: 16px 16px; }
  .reserva-summary h3 { font-size: 18px; }
  .reserva-summary dl { margin-top: 14px; }
  .reserva-summary dl > div { padding: 8px 0; }
  .reserva-summary dl > .is-total dd { font-size: 19px; }
  .reserva-summary .reserva-summary__note { display: none; }
  .reserva-pix__amount { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .reserva-choice__body, .reserva-chip__body, .reserva-field input, .reserva-field select, .reserva-field textarea, .reserva-copy { transition: none; }
}
