/* ==========================================================================
   Instant Flames — signup / checkout / confirmation flow styles
   Layers on top of styles.css (variables, header, footer, buttons, fields).
   ========================================================================== */

.site-header.solid {
  background: rgba(23, 17, 13, .95);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8);
}

.flow-main {
  background: var(--ink-dark);
  color: var(--cream-txt);
  min-height: 100vh;
  padding: 7.5rem 0 4.5rem;
}
.flow-wrap { width: min(760px, 92vw); margin: 0 auto; }
.flow-wrap-wide { width: min(920px, 92vw); margin: 0 auto; }

/* ---------- stepper ---------- */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  list-style: none;
  margin: 0 0 2.4rem;
  padding: 0;
  flex-wrap: wrap;
}
.stepper li { display: flex; align-items: center; gap: .5rem; color: var(--cream-mut); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.stepper .dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(201,166,107,.4); font-size: .8rem; font-weight: 600;
  color: var(--cream-mut);
}
.stepper li.active .dot { background: var(--flame); border-color: transparent; color: #fff; }
.stepper li.active { color: var(--cream-txt); }
.stepper li.done .dot { border-color: var(--orange); color: var(--orange); }
.stepper .bar { width: 28px; height: 1.5px; background: rgba(201,166,107,.3); }

/* ---------- page head ---------- */
.flow-eyebrow { font-family: "Dancing Script", cursive; font-size: 1.7rem; color: var(--orange); text-align: center; margin: 0 0 .2rem; }
.flow-title { font-family: "Playfair Display", serif; font-size: clamp(1.9rem, 4.4vw, 2.7rem); color: var(--cream-2); text-align: center; margin: 0 0 .6rem; }
.flow-sub { text-align: center; color: var(--cream-mut); margin: 0 auto 2.4rem; max-width: 540px; }

/* ---------- event summary bar ---------- */
.event-bar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(242,147,63,.08), var(--ink-dark-2));
  border: 1px solid rgba(242,147,63,.35);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.8rem;
}
.event-bar .ev-when { font-family: "Playfair Display", serif; font-size: 1.25rem; color: var(--cream-2); }
.event-bar .ev-where { color: var(--cream-mut); font-size: .95rem; }
.event-bar .ev-tag { margin-left: auto; background: var(--flame); color: #fff; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; padding: .35em .9em; border-radius: 20px; }

/* ---------- card panel ---------- */
.flow-card {
  background: var(--ink-dark-2);
  border: 1px solid rgba(201,166,107,.25);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  margin-bottom: 1.6rem;
}
.flow-card h2 { font-family: "Playfair Display", serif; color: var(--cream-2); font-size: 1.4rem; margin: 0 0 .3rem; }
.flow-card .card-hint { color: var(--cream-mut); font-size: .92rem; margin: 0 0 1.3rem; }
.field-label {
  display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange); margin: 0 0 1rem; font-weight: 600;
}

/* ---------- ticket selector ---------- */
.ticket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: .4rem; }
.ticket {
  position: relative; cursor: pointer;
  border: 1.5px solid rgba(201,166,107,.3);
  border-radius: 12px;
  padding: 1.3rem 1.2rem;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
  background: rgba(255,255,255,.02);
}
.ticket:hover { transform: translateY(-2px); }
.ticket input { position: absolute; opacity: 0; pointer-events: none; }
.ticket .t-who { font-family: "Playfair Display", serif; font-size: 1.4rem; color: var(--cream-2); }
.ticket .t-price { color: var(--orange); font-size: 1.5rem; font-weight: 600; margin-top: .2rem; font-family: "Playfair Display", serif; }
.ticket .t-note { color: var(--cream-mut); font-size: .82rem; margin-top: .3rem; }
.ticket .t-check {
  position: absolute; top: 1rem; right: 1rem; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid rgba(201,166,107,.5); transition: all .2s ease;
}
.ticket.selected { border-color: var(--orange); background: rgba(242,147,63,.1); }
.ticket.selected .t-check { background: var(--flame); border-color: transparent; }
.ticket.selected .t-check::after { content: "✓"; color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; height: 100%; }

/* ---------- women opt-in ---------- */
.women-optin {
  display: none;
  margin-top: 1.2rem;
  background: rgba(223,81,48,.08);
  border: 1px solid rgba(242,147,63,.35);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.women-optin.show { display: block; }

/* ---------- checkbox rows ---------- */
.check-row { display: flex; gap: .7rem; align-items: flex-start; color: var(--cream-txt); font-size: .95rem; cursor: pointer; }
.check-row input { margin-top: .25rem; width: 18px; height: 18px; accent-color: #df5130; flex: none; }
.check-row .sub { color: var(--cream-mut); font-size: .86rem; display: block; margin-top: .2rem; }

/* ---------- terms box ---------- */
.tc-box {
  border: 1px solid rgba(201,166,107,.25);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  background: rgba(0,0,0,.2);
  color: var(--cream-mut); font-size: .88rem; line-height: 1.65;
  margin-bottom: 1.1rem;
}
.tc-box h3 { color: var(--cream-txt); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 1rem 0 .3rem; font-family: "Lora", serif; }
.tc-box h3:first-child { margin-top: 0; }
.tc-box strong { color: var(--cream-txt); }

.form-error { color: #ff9d7a; font-size: .9rem; margin: .4rem 0 0; display: none; }
.form-error.show { display: block; }

/* ---------- order summary (checkout) ---------- */
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(201,166,107,.15); color: var(--cream-txt); }
.summary-row .lbl { color: var(--cream-mut); }
.summary-row.total { border-bottom: 0; padding-top: 1rem; font-family: "Playfair Display", serif; font-size: 1.35rem; color: var(--cream-2); }
.summary-row.total .amt { color: var(--orange); }

/* ---------- payment card ---------- */
.pay-lock { display: flex; align-items: center; gap: .5rem; color: var(--cream-mut); font-size: .82rem; margin: 0 0 1.1rem; }
.pay-lock svg { flex: none; }
.demo-pill { background: rgba(242,147,63,.15); color: var(--orange); border: 1px solid rgba(242,147,63,.4); border-radius: 20px; padding: .2em .7em; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- demo "tap to fill" helper ---------- */
.demo-fill-row { text-align: center; margin: 0 0 2rem; }
.demo-fill {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: "Lora", serif; font-weight: 600; font-size: .84rem;
  letter-spacing: .03em;
  color: var(--orange);
  background: rgba(242,147,63,.12);
  border: 1px dashed rgba(242,147,63,.55);
  border-radius: 999px;
  padding: .6em 1.2em;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.demo-fill:hover { background: rgba(242,147,63,.2); transform: translateY(-1px); box-shadow: 0 10px 22px -14px rgba(242,147,63,.9); }
.demo-fill:active { transform: translateY(0); }
.demo-fill:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.demo-fill svg { flex: none; }
.demo-fill.filled { color: #7dd0a3; border-color: rgba(125,208,163,.6); background: rgba(125,208,163,.12); border-style: solid; }

/* ---------- confirmation ---------- */
.confirm-hero { text-align: center; margin-bottom: 2rem; }
.confirm-check {
  width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 1.2rem;
  background: var(--flame); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 40px -14px rgba(207,64,40,.7);
}
.confirm-check svg { width: 40px; height: 40px; }
.confirm-hero h1 { font-family: "Playfair Display", serif; font-size: clamp(2rem, 5vw, 2.9rem); color: var(--cream-2); margin: 0 0 .5rem; }
.confirm-hero p { color: var(--cream-mut); margin: 0 auto; max-width: 520px; }
.confirm-hero .to-email { color: var(--orange); }

/* ---------- email preview ---------- */
.email-preview {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201,166,107,.4);
}
.email-top { background: var(--cream-2); border-bottom: 1px solid rgba(201,166,107,.4); padding: 1rem 1.3rem; }
.email-meta { display: flex; align-items: center; gap: .6rem; font-size: .86rem; color: var(--ink-mut); }
.email-from-badge { width: 34px; height: 34px; border-radius: 50%; background: var(--ink-dark); display: flex; align-items: center; justify-content: center; flex: none; }
.email-from-badge img { width: 22px; height: auto; }
.email-subject { font-family: "Playfair Display", serif; font-size: 1.2rem; color: var(--ink); margin: .5rem 0 0; }
.email-body { padding: 1.6rem 1.5rem 1.8rem; }
.email-body p { margin: 0 0 1rem; color: var(--ink); font-size: .98rem; }
.email-details {
  border: 1px solid rgba(201,166,107,.5); border-radius: 10px; padding: 1.1rem 1.2rem; margin: 1.2rem 0;
  background: var(--cream-2);
}
.email-details .ed-row { display: flex; gap: .7rem; padding: .35rem 0; font-size: .95rem; }
.email-details .ed-row .k { color: var(--brick); font-weight: 600; min-width: 96px; }
.email-details .ed-row .v { color: var(--ink); }
.email-cta { display: inline-block; background: var(--flame); color: #fff; text-decoration: none; font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; padding: .8em 1.6em; border-radius: 8px; margin-top: .3rem; }
.email-fine { color: var(--ink-mut); font-size: .84rem; border-top: 1px solid rgba(201,166,107,.4); margin-top: 1.4rem; padding-top: 1rem; }
.email-caption { text-align: center; color: var(--cream-mut); font-size: .84rem; font-style: italic; margin: 1rem 0 0; }

/* ---------- sold out / waitlist ---------- */
.soldout-card { text-align: center; }
.soldout-badge { display: inline-block; background: rgba(143,47,42,.25); color: #ff9d7a; border: 1px solid rgba(143,47,42,.6); border-radius: 20px; padding: .35em 1em; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }

.success-panel { display: none; text-align: center; padding: 1rem 0; }
.success-panel.show { display: block; }
.success-panel .confirm-check { margin-bottom: 1rem; }
.flow-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.2rem; }
.link-muted { color: var(--cream-mut); text-decoration: underline; font-size: .9rem; }
.link-muted:hover { color: var(--orange); }

@media (max-width: 620px) {
  .ticket-grid { grid-template-columns: 1fr; }
  .event-bar .ev-tag { margin-left: 0; }
  .stepper li span.txt { display: none; }
}

/* Shown on /confirmed when the payment cleared but we couldn't read the
   booking back — the guest needs to know their money is fine. */
.confirm-note { color: #ffcaa8; font-size: .95rem; margin-top: .8rem; }

/* A ticket whose half of the room is already full. */
.ticket.sold-out { opacity: .5; pointer-events: none; }
.ticket.sold-out .t-price { text-decoration: line-through; }
