/* Alerta de Reservas: usa as cores, fontes e componentes do ../assets/css/style.css e acrescenta só o que é desta página */
/* O topo é o fm_hero_small() de inc/menu.php (mesmo de Filas ao Vivo e Lotação), com o estilo .hero-sm do paginas.css */
.al-main { gap: 22px; }
.al-main .planner { margin-top: 0; }

/* Passo 1: select com busca (combobox) */
.al-combo { position: relative; max-width: 560px; margin-left: 52px; }
.al-combo-box { position: relative; display: flex; align-items: center; }
.al-combo-box input { width: 100%; height: 50px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 76px 0 42px; font-weight: 700; font-size: 1rem; }
.al-combo-box input:focus { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 3px var(--lagoon-soft); }
.al-combo-box input::placeholder { font-weight: 400; color: var(--ink-2); }
.al-combo-box input[aria-invalid="true"] { border-color: var(--warn); }
.al-combo-ico, .al-combo-caret { position: absolute; width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.al-combo-ico { left: 14px; }
.al-combo-caret { right: 14px; }
.al-combo-clear { position: absolute; right: 40px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); font-size: 1.3rem; line-height: 1; padding: 0; }
.al-combo-clear:hover { background: var(--warn-soft); color: var(--warn); }
.al-combo-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: 320px; overflow: auto; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.al-opt-group { padding: 8px 10px 4px; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.al-opt { display: grid; gap: 1px; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.al-opt b { font-weight: 700; }
.al-opt span { font-size: .8rem; color: var(--lagoon); font-weight: 700; }
.al-opt mark { background: color-mix(in srgb, var(--sun) 45%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.al-opt[aria-selected="true"], .al-opt:hover { background: var(--lagoon-soft); }
.al-opt.is-current b::after { content: " ✓"; color: var(--mint); }
.al-opt-empty { padding: 12px; color: var(--ink-2); font-size: .9rem; }
.al-exp-desc { margin: 10px 0 0 52px; max-width: 560px; font-size: .9rem; color: var(--ink-2); }

/* Passo 2: calendário */
.al-cal-wrap { position: relative; }
.al-cal-nav { position: absolute; inset: 0 0 auto; display: flex; justify-content: space-between; pointer-events: none; z-index: 1; }
.al-cal-btn { pointer-events: auto; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); font-size: 1.3rem; line-height: 1; }
.al-cal-btn:hover:not(:disabled) { border-color: var(--lagoon); color: var(--lagoon); }
.al-cal-btn:disabled { opacity: .35; cursor: default; }
.al-cal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.al-month h3 { text-align: center; font-size: 1.05rem; font-weight: 600; height: 36px; line-height: 36px; text-transform: capitalize; }
.al-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
.al-wd { text-align: center; font-size: .72rem; font-weight: 800; color: var(--ink-2); text-transform: uppercase; padding-bottom: 2px; }
.al-day { aspect-ratio: 1 / 1; max-height: 46px; width: 100%; border: 1.5px solid transparent; border-radius: 10px; background: var(--surface-2); font-weight: 700; font-variant-numeric: tabular-nums; padding: 0; }
.al-day:hover:not(:disabled) { border-color: var(--lagoon); }
.al-day:disabled { background: transparent; color: color-mix(in srgb, var(--ink-2) 45%, transparent); cursor: default; font-weight: 400; }
.al-day[aria-pressed="true"] { background: var(--lagoon); border-color: var(--lagoon); color: #fff; }
.al-day.today { box-shadow: inset 0 0 0 1.5px var(--gold); }
.al-day { position: relative; }
.al-day .al-badge { position: absolute; top: -6px; right: -5px; }
.al-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--mint); color: #fff; font-size: .7rem; font-weight: 800; line-height: 1; box-shadow: 0 0 0 2px var(--surface); font-variant-numeric: tabular-nums; }
.al-day.has-spots:not([aria-pressed="true"]) { background: var(--mint-soft); border-color: color-mix(in srgb, var(--mint) 45%, transparent); }
.al-legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -6px 0 14px 52px; font-size: .85rem; color: var(--ink-2); }
.al-legend .al-badge { position: static; box-shadow: none; }
.al-picked { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; min-height: 32px; align-items: center; }
.al-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--lagoon-soft); color: var(--ink); font-weight: 700; font-size: .9rem; }
.al-chip button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); font-size: 1.05rem; line-height: 1; padding: 0; }
.al-chip button:hover { background: var(--warn-soft); color: var(--warn); }

/* Passos 3 e 4 */
.al-row .stepper { justify-self: start; }
.al-row { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: end; margin-left: 52px; }
.al-input, .field select { height: 40px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0 10px; min-width: 180px; }
.al-contact { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 14px; margin-left: 52px; }
.al-contact .field input { height: 44px; }
.field input[aria-invalid="true"], .al-input[aria-invalid="true"] { border-color: var(--warn); }
.al-check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0 52px; font-size: .9rem; color: var(--ink-2); line-height: 1.4; cursor: pointer; }
.al-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--lagoon); }
.al-error { margin: 14px 0 0 52px; padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-weight: 700; font-size: .92rem; }
.al-submit { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.al-submit .hint { margin: 0 0 0 52px; flex: 1; }

/* Confirmação */
.al-done { padding: 36px 28px; text-align: center; justify-items: center; gap: 10px; }
.al-done:focus { outline: none; }
.al-done h2 { font-size: 1.8rem; font-weight: 600; }
.al-done p { margin: 0; max-width: 52ch; }
.al-done-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint); font-size: 2rem; font-weight: 800; }
.al-done-actions { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: center; margin-top: 12px; }
.al-done-actions .btn-go { margin: 0; }
.al-link { color: var(--lagoon); font-weight: 700; }

/* Como funciona */
.al-how { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 24px 28px; }
.al-how h2 { font-size: 1.3rem; font-weight: 600; }
.al-how ol { margin: 14px 0; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.al-how li { counter-increment: s; position: relative; padding-top: 38px; font-size: .95rem; line-height: 1.45; }
.al-how li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--lagoon-soft); color: var(--lagoon); font-family: var(--f-display); font-weight: 700; }
.al-how p { margin: 0; }

/* Página de parar */
.al-stop { padding: 28px; display: grid; gap: 14px; }
.al-stop h2 { font-size: 1.5rem; font-weight: 600; }
.al-stop p { margin: 0; }
.al-dates { display: flex; flex-wrap: wrap; gap: 6px; }
.al-dates span { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: .9rem; }
.al-dates .on { background: var(--mint-soft); border-color: var(--mint); color: var(--mint); }
.al-dates .past { opacity: .5; text-decoration: line-through; }
.al-stop-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.al-stop-actions .btn-go { margin: 0; }
.al-btn-soft { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 13px 22px; font-weight: 700; }
.al-btn-soft:hover { border-color: var(--lagoon); color: var(--lagoon); }

/* Tablet e celular */
@media (max-width: 900px) {
  .al-how ol { grid-template-columns: 1fr 1fr; }
  .al-contact { grid-template-columns: 1fr 1fr; }
  .al-contact .field:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .al-cal { grid-template-columns: 1fr; }
  .al-cal .al-month + .al-month { display: none; }
  .al-row, .al-contact, .al-check, .al-error, .al-combo, .al-exp-desc, .al-legend { margin-left: 0; }
  .al-contact { grid-template-columns: 1fr; }
  .al-submit { flex-direction: column; align-items: stretch; }
  .al-submit .hint { margin: 0; }
  .al-submit .btn-go { width: 100%; margin: 0; }
  .al-form, .al-done, .al-stop { padding-inline: 18px; }
  .al-how { padding: 20px 18px; }
  .al-how ol { grid-template-columns: 1fr; }
  .field input, .field select, .al-input, .al-combo-box input { font-size: 16px; }
}

/* v3: etiqueta do tipo na busca, itens de reserva pelo site do parque */
.al-combo-list { max-height: min(60vh, 420px); }
.al-opt span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.al-tag { font-style: normal; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px;
  background: var(--lagoon-soft); color: var(--lagoon); }
.al-tag.t-dining { background: color-mix(in srgb, var(--sun) 30%, transparent); color: var(--ink); }
.al-tag.t-external { background: color-mix(in srgb, var(--ink-2) 14%, transparent); color: var(--ink-2); }
.al-opt.is-ext b { color: var(--ink-2); }
.al-ext { margin: 14px 0 0 52px; max-width: 560px; padding: 14px 16px; border-radius: 14px; background: var(--lagoon-soft); display: grid; gap: 12px; justify-items: start; }
.al-ext p { margin: 0; font-size: .95rem; }
.al-form.is-external .step:not(:first-child) { display: none; }
@media (max-width: 640px) { .al-ext { margin-left: 0; } .al-ext .btn-go { width: 100%; justify-content: center; } }
.al-soon { margin: 10px 0 0 52px; max-width: 560px; padding: 10px 14px; border-radius: 12px; font-size: .9rem; background: color-mix(in srgb, var(--sun) 22%, transparent); }
@media (max-width: 640px) { .al-soon { margin-left: 0; } }
