/* ============================================================
   CHEF ANTYO — INSTANT ESTIMATE (/estimate/)
   Public page: five short steps, one decision per screen, big tap
   targets, nothing scrolls sideways. Tokens come from site.css and
   components.css.
   ============================================================ */
.est-page section { padding: 0; }                    /* site.css pads every <section> 92px */
.est-wrap { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 28px 20px 64px; }
.est-head { text-align: center; margin-bottom: 20px; }
.est-head .ca-eyebrow { display: block; margin-bottom: 8px; }
.est-head h1 { font: 400 clamp(1.9rem, 5vw, 2.8rem)/1.08 var(--display, Georgia, serif); color: var(--cream); letter-spacing: -.01em; }
.est-head h1 em { font-style: italic; color: var(--gold-soft); }
.est-head p { margin: 10px auto 0; max-width: 52ch; color: var(--muted); font-size: 1rem; }

/* demo: impossible to mistake for the real page */
.est-demo { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 10px 14px; border-radius: var(--r-sm);
  border: 1px dashed var(--gold); color: var(--gold-soft); font: 600 var(--fs-sm)/1.35 var(--body, system-ui, sans-serif);
  background: repeating-linear-gradient(135deg, rgba(201, 168, 76, .14) 0 12px, rgba(201, 168, 76, .05) 12px 24px); }
.est-demo b { flex: none; padding: 2px 8px; border-radius: 6px; background: var(--gold); color: #1b1817; font-size: var(--fs-xs); letter-spacing: .12em; }
.est-demo[hidden] { display: none; }

.est-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 860px) { .est-grid { grid-template-columns: minmax(0, 1fr) 300px; } }

/* progress: five small numbered dots, never a wide bar that pushes the page down */
.est-steps { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 0; }
.est-steps li { display: flex; align-items: center; gap: 6px; font: 600 var(--fs-xs)/1 var(--body, system-ui, sans-serif); color: var(--muted); min-width: 0; }
.est-steps li i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); font-style: normal; flex: none; }
.est-steps li span { display: none; white-space: nowrap; }
.est-steps li + li::before { content: ""; width: 14px; height: 1px; background: var(--line); }
.est-steps li.is-done i { background: rgba(201, 168, 76, .16); border-color: transparent; color: var(--gold-soft); }
.est-steps li.is-now { color: var(--cream); }
.est-steps li.is-now i { background: var(--gold); border-color: var(--gold); color: #1b1817; }
.est-steps li.is-now span { display: inline; }
@media (min-width: 620px) { .est-steps li span { display: inline; } .est-steps li + li::before { width: 20px; } }

.est-page .est-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; min-width: 0; }
.est-card h2 { font: 500 1.35rem/1.2 var(--display, Georgia, serif); color: var(--cream); margin: 0 0 4px; }
.est-card h2:focus { outline: none; }
.est-card .est-hint { color: var(--muted); font-size: var(--fs-md); margin: 0 0 16px; }
.est-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -10px 0 2px -6px; padding: 0 6px; background: none; border: 0;
  color: var(--muted); font: 600 var(--fs-sm)/1 var(--body, system-ui, sans-serif); cursor: pointer; }
.est-back:hover { color: var(--cream); }

/* options: tiles for the occasion, rows for the style */
.est-opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.est-opts--rows { grid-template-columns: minmax(0, 1fr); }
.est-opt { display: grid; gap: 3px; width: 100%; min-height: 56px; padding: 12px 14px; text-align: left; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--panel-2); color: var(--cream); font: 600 var(--fs-md)/1.3 var(--body, system-ui, sans-serif); cursor: pointer; transition: border-color .15s, background .15s; }
.est-opt small { font-weight: 400; color: var(--muted); font-size: var(--fs-sm); }
.est-opt .est-from { color: var(--gold-soft); font-weight: 600; font-size: var(--fs-sm); }
.est-opt:hover { border-color: var(--gold); }
.est-opt[aria-pressed="true"] { border-color: var(--gold); background: rgba(201, 168, 76, .12); }
.est-opt:focus-visible, .est-chip:focus-visible, .est-back:focus-visible, .est-step-btn:focus-visible, .est-link:focus-visible { outline: none; box-shadow: var(--focus); }
.est-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.est-more { margin: 14px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.est-more a, .est-link { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.est-link { background: none; border: 0; padding: 0; min-height: 44px; font: 600 var(--fs-sm)/1.3 var(--body, system-ui, sans-serif); cursor: pointer; }

/* guests */
.est-count { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 6px 0 14px; }
.est-count input { width: 120px; min-height: 60px; text-align: center; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--panel-2);
  color: var(--cream); font: 500 2rem/1 var(--display, Georgia, serif); -moz-appearance: textfield; appearance: textfield; }
.est-count input::-webkit-outer-spin-button, .est-count input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.est-count input:focus { outline: none; border-color: var(--gold); box-shadow: var(--focus); }
.est-step-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); color: var(--cream); font: 400 1.5rem/1 var(--body, sans-serif); cursor: pointer; }
.est-step-btn:hover { border-color: var(--gold); }
.est-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.est-chip { min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: transparent; color: var(--cream);
  font: 600 var(--fs-sm)/1 var(--body, system-ui, sans-serif); cursor: pointer; }
.est-chip:hover, .est-chip[aria-pressed="true"] { border-color: var(--gold); background: rgba(201, 168, 76, .12); }
.est-note { margin: 12px 0 0; padding: 8px 12px; border-radius: var(--r-sm); background: var(--warn-bg); color: var(--warn); font-size: var(--fs-sm); line-height: 1.4; }
.est-note[hidden] { display: none; }

/* date and extras */
.est-fields { display: grid; gap: 14px; }
.est-check { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--cream); font-size: var(--fs-md); cursor: pointer; }
.est-check--fine { align-items: flex-start; min-height: 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }
.est-check--fine input { margin-top: 2px; }
.est-addons { display: grid; gap: 2px 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.est-legend { font: 600 var(--fs-sm)/1.3 var(--body, system-ui, sans-serif); color: var(--muted); margin-bottom: 2px; }
.est-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.est-actions .ca-btn { min-height: 48px; }
.est-actions .ca-btn--gold { flex: 1 1 220px; }

/* the result */
.est-range { text-align: center; padding: 6px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.est-range .ca-eyebrow { display: block; margin-bottom: 6px; }
.est-range b { display: block; font: 500 clamp(1.9rem, 7vw, 2.7rem)/1.05 var(--display, Georgia, serif); color: var(--cream); font-variant-numeric: tabular-nums; }
.est-range span { display: block; margin-top: 6px; color: var(--muted); font-size: var(--fs-md); }
.est-facts { list-style: none; display: grid; gap: 6px; margin: 0 0 16px; padding: 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }
.est-facts li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; }
.est-facts li::before { content: "•"; color: var(--gold); }
.est-facts li b { color: var(--cream); font-weight: 600; }
.est-form { display: grid; gap: 12px; }
.est-form h3 { font: 500 1.1rem/1.25 var(--display, Georgia, serif); color: var(--cream); margin: 0; }
.est-error { margin: 0; color: var(--bad); font-size: var(--fs-sm); }
.est-error[hidden] { display: none; }
.est-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.est-done { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 10px 0; }
.est-done .est-tick { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: 1.5rem; }
.est-done p { color: var(--muted); max-width: 46ch; margin: 0; }
.est-done .ca-btn { min-height: 48px; }

/* the running summary beside the card (a slim line above it on a phone) */
.est-side { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; min-width: 0; }
.est-side h2 { font: 700 var(--fs-xs)/1.3 var(--body, system-ui, sans-serif); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.est-side dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: var(--fs-sm); }
.est-side dt { color: var(--muted); }
.est-side dd { margin: 0; color: var(--cream); text-align: right; overflow-wrap: anywhere; }
.est-side dd.is-empty { color: var(--muted); }
.est-side .est-live { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.est-side .est-live b { display: block; font: 500 1.35rem/1.1 var(--display, Georgia, serif); color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.est-side .est-live span { font-size: var(--fs-xs); color: var(--muted); }
.est-trust { margin: 12px 0 0; font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
@media (max-width: 859px) {
  .est-side { order: -1; padding: 10px 14px; border-radius: var(--r-md); }
  .est-side h2, .est-side .est-trust { display: none; }
  .est-side dl { display: flex; flex-wrap: wrap; gap: 4px 6px; }
  .est-side dt { display: none; }
  .est-side dd { text-align: left; }
  .est-side dd.is-empty { display: none; }
  .est-side dd:not(.is-empty) ~ dd:not(.is-empty)::before { content: "· "; color: var(--muted); }
  .est-side .est-live { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; padding-top: 6px; }
  .est-side .est-live b { font-size: 1.1rem; }
  .est-side:not(.has-any) { display: none; }
  .est-wrap { padding: 18px 16px 48px; }
  .est-page .est-card { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { .est-opt { transition: none; } }
