/* Shared styles for the /payment page and the 404 page.
   Same tokens as the homepage: plum, cream, Hussar, Arimo, Kawaii RT accents. */
:root {
  --plum: #6F2A3D;
  --plum-dark: #4A1A28;
  --plum-deeper: #24101A;
  --cream: #F6EBDD;
  --cream-deep: #EEDDC8;
  --ink: rgba(74, 26, 40, 0.78);
  --line: rgba(111, 42, 61, 0.16);
  --radius: 8px;
  --pad: 1.25rem;
}
@media (min-width: 640px) { :root { --pad: 2rem; } }

@font-face { font-family: 'Hussar'; src: url('fonts/HussarBold.woff2') format('woff2'), url('fonts/HussarBold.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Arimo'; src: url('fonts/Arimo-VariableFont_wght.woff2') format('woff2'), url('fonts/Arimo-VariableFont_wght.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Kawaii RT'; src: url('fonts/KawaiiRT-MonaShine.woff2') format('woff2'), url('fonts/KawaiiRT-MonaShine.ttf') format('truetype'); font-display: swap; }
@font-face {
  font-family: 'Hussar Fallback'; src: local('Georgia Bold'), local('Georgia');
  ascent-override: 90%; descent-override: 35%; line-gap-override: 0%; size-adjust: 119%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Arimo', Arial, 'Helvetica Neue', sans-serif;
  font-size: 1.0625rem; line-height: 1.6;
  background: var(--cream); color: var(--plum);
  -webkit-font-smoothing: antialiased;
  min-height: 100svh; display: flex; flex-direction: column;
  overflow-x: hidden;
}
.flow-main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }

/* ─── Header: logo only ─── */
.flow-head {
  background: var(--plum); padding: 0.875rem var(--pad);
  display: flex; justify-content: center;
}
.flow-head img { height: 2.5rem; width: auto; }

.flow-main {
  flex: 1; width: 100%; max-width: 560px; margin: 0 auto;
  padding: 1.75rem var(--pad) 3rem;
}

/* ─── Photo band under the header, heading on top in cream ─── */
.flow-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--plum-dark); color: var(--cream); }
.flow-hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.flow-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(36,16,26,0.25) 0%, rgba(74,26,40,0.7) 50%, rgba(74,26,40,0.96) 100%);
}
.flow-hero-inner { max-width: 560px; margin: 0 auto; padding: 3.25rem var(--pad) 1.25rem; }
.flow-hero .h1 { color: var(--cream); }
.flow-hero .sub { color: rgba(246,235,221,0.9); margin-bottom: 0; }
.flow-hero + .flow-main { padding-top: 1.5rem; }

/* ─── Progress steps ─── */
.progress { display: flex; align-items: flex-start; margin-bottom: 2rem; }
.progress li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; position: relative; text-align: center; }
.progress li + li::before {
  content: ''; position: absolute; top: 0.9375rem; right: 50%; width: 100%; height: 2px;
  background: var(--line); z-index: 0;
}
.progress li.done + li::before, .progress li.done + li.current::before { background: var(--plum); }
.step-dot {
  position: relative; z-index: 1;
  width: 1.875rem; height: 1.875rem; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--cream); border: 2px solid var(--line); color: rgba(111,42,61,0.5);
  font-size: 0.9375rem; line-height: 1;
}
.step-dot svg { width: 0.9375rem; height: 0.9375rem; }
.progress .done .step-dot { background: var(--plum); border-color: var(--plum); color: var(--cream); }
.progress .current .step-dot { border-color: var(--plum); color: var(--plum); box-shadow: 0 0 0 4px rgba(111,42,61,0.12); }
.step-label { font-size: 0.8125rem; font-weight: 700; color: rgba(111,42,61,0.55); }
.progress .done .step-label, .progress .current .step-label { color: var(--plum); }
.progress .in-progress .step-dot { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(111,42,61,0.25); } 50% { box-shadow: 0 0 0 7px rgba(111,42,61,0); } }

/* ─── Type ─── */
.h1 {
  font-family: 'Hussar', 'Hussar Fallback', Georgia, serif; font-weight: 700;
  font-size: clamp(2rem, 8vw, 2.75rem); line-height: 1.06; letter-spacing: -0.02em;
  text-wrap: balance; margin-bottom: 0.875rem;
}
.h2 {
  font-family: 'Hussar', 'Hussar Fallback', Georgia, serif; font-weight: 700;
  font-size: 1.5rem; line-height: 1.15; margin-bottom: 0.5rem;
}
.sub { color: var(--ink); font-size: 1.0625rem; margin-bottom: 1.75rem; text-wrap: pretty; }
.accent { font-family: 'Kawaii RT', 'Arimo', sans-serif; font-weight: 400; }

/* ─── Cards and lists ─── */
.card {
  background: #fff8ef; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: 0 10px 30px rgba(74,26,40,0.06);
}
.summary { display: grid; gap: 0.875rem; margin-bottom: 1.5rem; }
.summary div { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.summary dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(111,42,61,0.6); flex: none; }
.summary dd { text-align: right; font-weight: 700; }
.summary dd small { display: block; font-weight: 400; font-size: 0.875rem; color: var(--ink); }
.summary .total { border-top: 1px dashed var(--line); padding-top: 0.875rem; }
.summary .total dd { font-family: 'Hussar', 'Hussar Fallback', Georgia, serif; font-size: 1.5rem; }

.tick-list li { position: relative; padding-left: 2rem; margin-bottom: 0.625rem; color: var(--plum); }
.tick-list li::before {
  content: ''; position: absolute; left: 0; top: 0.2em; width: 1.25rem; height: 1.25rem; border-radius: 4px;
  background: var(--plum) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6EBDD' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 56px; padding: 0 1.5rem; width: 100%;
  border-radius: var(--radius); border: none; cursor: pointer;
  background: var(--plum); color: var(--cream);
  font-family: 'Arimo', sans-serif; font-size: 1.0625rem; font-weight: 700; text-decoration: none; text-align: center;
  box-shadow: 0 8px 24px rgba(74,26,40,0.25);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--plum-deeper);
  transform: translateX(-101%); transition: transform 0.45s cubic-bezier(0.77,0,0.18,1);
}
.btn:hover::before { transform: none; }
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--ghost { background: transparent; color: var(--plum); border: 1.5px solid var(--plum); box-shadow: none; }
.btn--ghost::before { background: var(--plum); }
.btn--ghost:hover { color: var(--cream); }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
@media (min-width: 640px) { .btn--auto { width: auto; } }

.under-btn { text-align: center; font-size: 0.875rem; color: var(--ink); margin-top: 0.75rem; display: flex; align-items: center; justify-content: center; gap: 0.375rem; }
.under-btn svg { width: 14px; height: 14px; }

.pay-label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(111,42,61,0.6); margin-bottom: 0.75rem; }
.or { display: flex; align-items: center; gap: 0.75rem; margin: 1.75rem 0 1.5rem; color: rgba(111,42,61,0.6); font-size: 0.875rem; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px dashed var(--line); }
.bank-intro { color: var(--ink); font-size: 0.9375rem; margin-bottom: 0.75rem; }
.bank-intro strong { color: var(--plum); }
.bank { display: grid; gap: 0.625rem; padding: 1rem; margin-bottom: 1rem; border-radius: var(--radius); background: rgba(111,42,61,0.06); }
.bank div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.bank dt { font-size: 0.875rem; color: var(--ink); flex: none; }
.bank dd { text-align: right; font-weight: 700; display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; flex-wrap: wrap; }
.bank-number { font-size: 1.25rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.copy-btn {
  font: inherit; font-size: 0.8125rem; font-weight: 700; color: var(--plum); cursor: pointer;
  background: transparent; border: 1.5px solid var(--plum); border-radius: var(--radius);
  min-height: 32px; padding: 0 0.75rem;
}
.bank-actions { display: grid; gap: 0.625rem; }

/* ─── Bank transfer card (always open) and the Selar button under it ─── */
.bank-panel { border: 2px solid var(--plum); }
.btn--wide { width: 100%; gap: 0.5rem; }
.btn--wide svg { width: 20px; height: 20px; flex: none; }
.card-note { margin: 0.625rem 0 1.5rem; text-align: center; font-size: 0.875rem; color: var(--ink); }
/* Dinner summary on plum, for contrast after the cream cards */
.pay-assure { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--ink); margin-top: 0.25rem; }
.pay-assure svg { flex: none; width: 18px; height: 18px; color: var(--plum); margin-top: 0.1rem; }
.pay-assure a { color: var(--plum); font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }
.summary-card { margin-top: 1.5rem; background: var(--plum); border-color: var(--plum); color: var(--cream); }
.summary-card .summary { margin-bottom: 0; }
.summary-card .summary dt { color: rgba(246,235,221,0.7); }
.summary-card .summary dd small { color: rgba(246,235,221,0.8); }
.summary-card .summary .total { border-top-color: rgba(246,235,221,0.25); }
.copy-btn:hover { background: var(--plum); color: var(--cream); }

.note {
  margin-top: 1.5rem; padding: 0.875rem 1rem; border-radius: var(--radius);
  background: rgba(111,42,61,0.06); border-left: 3px solid var(--plum);
  font-size: 0.9375rem; color: var(--plum);
}

.section { margin-top: 2.25rem; }
.help {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-size: 0.9375rem; color: var(--ink); text-align: center;
}
.help a { color: var(--plum); font-weight: 700; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ─── Contact step on /payment: name + WhatsApp before the pay options ─── */
.guest-card { margin-bottom: 1.5rem; padding-bottom: 1rem; }
.flow-hero + .flow-main .progress { margin-bottom: 1.25rem; }
.field { display: block; font-size: 0.9375rem; font-weight: 700; margin: 0 0 0.375rem; }
.input {
  display: block; width: 100%; min-height: 52px; padding: 0 1rem; margin-bottom: 1rem;
  font: inherit; font-size: 1.0625rem; color: var(--plum);   /* 16px+ so iPhones don't zoom in */
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: rgba(111,42,61,0.4); }
.input:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(111,42,61,0.14); }
.input[aria-invalid="true"] { border-color: #B3261E; }
.field-hint { font-size: 0.8125rem; color: var(--ink); margin-top: -0.375rem; }
.field-error { margin-top: 0.5rem; font-size: 0.875rem; font-weight: 700; color: #B3261E; }
.bank-acct { flex-direction: column; align-items: flex-end !important; gap: 0.125rem !important; }
.bank-acct small { font-weight: 400; font-size: 0.8125rem; color: var(--ink); }
#headline, .progress { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* ─── Payment step: "Details received" badge and "not booked yet" alert ─── */
.flow-badge {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 0.875rem;
  padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--cream); color: var(--plum);
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.04em;
}
.flow-badge svg { width: 14px; height: 14px; }
.unpaid-alert {
  display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1.5rem;
  padding: 1rem 1.125rem; border-radius: var(--radius);
  background: var(--plum); color: var(--cream); font-size: 0.9375rem; line-height: 1.6;
}
.unpaid-alert svg { flex: none; width: 22px; height: 22px; margin-top: 0.1rem; }
.unpaid-alert strong { display: block; font-size: 1.0625rem; margin-bottom: 0.125rem; }
.no-details { margin: -0.75rem 0 1.5rem; font-size: 0.875rem; color: var(--ink); }
.no-details a { color: var(--plum); font-weight: 700; text-underline-offset: 3px; }
