/* ─── Shared inner-page styles ──────────────────── */

.page-hero {
  background: var(--red);
  padding: 80px 24px 72px;
  text-align: center;
  color: var(--white);
}
.page-hero .eyebrow-white {
  font-family: 'Gilroy', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 14px;
}
.page-hero h1 {
  font-family: 'FrameHead', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
}
.page-hero p {
  margin-top: 16px;
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.page-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
}

/* ─── FAQ ───────────────────────────────────────── */
.faq-search {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  max-width: 560px;
}
.faq-search input {
  flex: 1;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-family: 'Gilroy', sans-serif;
  font-size: .9rem;
  color: var(--ink);
  outline: none;
  transition: border-color var(--t);
}
.faq-search input:focus { border-color: var(--red); }

.faq-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.faq-cat {
  font-family: 'Gilroy', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  padding: 8px 18px;
  border-radius: 100px;
  border: 2px solid var(--cream-dark);
  background: transparent;
  color: var(--ink-mid);
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.faq-cat.active, .faq-cat:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: 'Gilroy', sans-serif;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background var(--t);
}
.faq-q:hover { background: var(--cream); }
.faq-q.open { background: var(--red); color: var(--white); }

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--t);
}
.faq-q.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  font-size: .9rem;
  color: var(--ink-mid);
  line-height: 1.75;
  background: var(--cream);
  transition: max-height .35s ease, padding .35s ease;
}
.faq-a.open { max-height: 1200px; padding: 20px 24px; }
.faq-a ul { margin: 10px 0 0; padding-left: 20px; }
.faq-a li { margin-bottom: 4px; }
.faq-a a { color: var(--red); font-weight: 700; }
.faq-a a:hover { text-decoration: underline; }

/* ─── Sponsors page ─────────────────────────────── */
.sponsor-tier { margin-bottom: 56px; }
.sponsor-tier h3 {
  font-family: 'Gilroy', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cream-dark);
}
.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.sponsor-card {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 32px 48px;
  font-family: 'Gilroy', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink-mid);
  min-width: 180px;
  text-align: center;
  transition: border-color var(--t);
}
.sponsor-card:hover { border-color: var(--red); }
.sponsor-card.platinum { font-size: 1.4rem; min-width: 240px; }

/* ─── Register — ticket selector grid ──────────── */
.reg-ticket-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 12px;
}

.reg-ticket {
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 20px 20px 18px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  background: var(--white);
  /* now a <button>: reset native styling + lay out as a column */
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.reg-ticket:hover {
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(255,22,40,.1);
  transform: translateY(-2px);
}
.reg-ticket.selected {
  border-color: var(--red);
  background: #fff5f5;
  box-shadow: 0 4px 20px rgba(255,22,40,.15);
}

.reg-ticket-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.reg-ticket-dark.selected { border-color: var(--red); }
.reg-ticket-dark .reg-ticket-name { color: rgba(255,255,255,.6); }
.reg-ticket-dark .reg-ticket-price { color: var(--white); }
.reg-ticket-dark .reg-ticket-desc  { color: rgba(255,255,255,.6); }

/* Clean corner ribbon: a fixed-width band rotated 45° across the top-right
   corner, centred text, both ends clipped evenly by the card. Responsive. */
.reg-ticket-ribbon {
  position: absolute;
  top: 16px;
  right: -42px;
  width: 150px;
  padding: 4px 0;
  text-align: center;
  transform: rotate(45deg);
  background: var(--red);
  color: var(--white);
  font-family: 'Gilroy', sans-serif;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(255,22,40,.3);
  pointer-events: none;
}

.reg-ticket-name {
  font-family: 'Gilroy', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.reg-ticket-price {
  font-family: 'FrameHead', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.reg-ticket-price small {
  font-family: 'Gilroy', sans-serif;
  font-size: .7rem;
  font-weight: 400;
  color: var(--ink-light);
}

.reg-ticket-desc {
  font-size: .8rem;
  color: var(--ink-mid);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .reg-ticket-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .reg-ticket-grid { grid-template-columns: 1fr; }
}

/* ─── Register — grey GROUP pass cards ─────────────
   Group passes are visually distinct (grey tone) from individual tickets. */
.reg-ticket-grey {
  background: #f3f4f6;
  border-color: #d5d8dd;
}
.reg-ticket-grey:hover { border-color: #9ca3af; box-shadow: 0 4px 16px rgba(107,114,128,.18); }
.reg-ticket-grey.selected { border-color: #6b7280; background: #eceef1; box-shadow: 0 4px 20px rgba(107,114,128,.22); }
.reg-ticket-grey .reg-ticket-price { color: #374151; }
.reg-ticket-badge {
  align-self: flex-start;
  background: #6b7280; color: #fff;
  font-family: 'Gilroy', sans-serif; font-size: .58rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px; margin-bottom: 2px;
}
.reg-ticket-base { font-size: .72rem; color: var(--ink-light); }
.reg-ticket-dark .reg-ticket-base { color: rgba(255,255,255,.5); }

/* ─── Register — step scaffolding ──────────────── */
.reg-step { margin-bottom: 40px; }
.reg-step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.reg-step-num {
  width: 30px; height: 30px; flex-shrink: 0;
  background: var(--red); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Gilroy', sans-serif; font-weight: 800; font-size: .9rem;
}
.reg-step-head h2 { font-size: 1.5rem; color: var(--ink); font-family: 'FrameHead', Georgia, serif; }
.reg-step-head h2 small, .reg-step-head small { font-size: .85rem; color: var(--ink-light); font-family: 'Gilroy', sans-serif; font-weight: 400; }
.reg-step-sub { font-size: .88rem; color: var(--ink-mid); margin: -8px 0 18px 42px; }

.reg-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
}

/* Quantity stepper */
.reg-qty-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.reg-qty-row > label { font-family: 'Gilroy', sans-serif; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mid); }
.reg-stepper { display: inline-flex; align-items: center; border: 2px solid var(--cream-dark); border-radius: var(--radius); overflow: hidden; }
.reg-stepper button { width: 42px; height: 44px; border: none; background: #f6f5f2; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.reg-stepper button:hover { background: var(--red); color: #fff; }
.reg-stepper input { width: 64px; height: 44px; border: none; border-left: 2px solid var(--cream-dark); border-right: 2px solid var(--cream-dark); text-align: center; font-family: 'Gilroy', sans-serif; font-weight: 700; font-size: 1rem; outline: none; -moz-appearance: textfield; }
.reg-stepper input::-webkit-outer-spin-button, .reg-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.reg-qty-note { font-size: .82rem; color: var(--ink-light); flex-basis: 100%; }

.form-row-3 { grid-template-columns: 120px 1fr 1fr; }
.form-group-sm { min-width: 0; }

/* Attendee blocks */
.reg-attendee { margin-bottom: 16px; border-left: 3px solid var(--red); }
.reg-attendee-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reg-attendee-head h3 { font-family: 'Gilroy', sans-serif; font-size: 1rem; font-weight: 800; color: var(--ink); }
.reg-same-as { font-family: 'Gilroy', sans-serif; font-size: .8rem; color: var(--ink-mid); display: flex; align-items: center; gap: 7px; cursor: pointer; }
.reg-same-as input { accent-color: var(--red); width: 16px; height: 16px; }

/* Promo */
.reg-promo-row { display: flex; gap: 10px; }
.reg-promo-row input { flex: 1; border: 2px solid var(--cream-dark); border-radius: var(--radius); padding: 12px 16px; font-family: 'Gilroy', sans-serif; font-size: .9rem; outline: none; text-transform: uppercase; }
.reg-promo-row input:focus { border-color: var(--red); }
.reg-promo-row button { white-space: nowrap; }
.reg-promo-msg { font-size: .82rem; margin-top: 4px; min-height: 1em; }
.reg-promo-msg.ok { color: #157a3a; }
.reg-promo-msg.err { color: var(--red); }

/* Alerts */
.reg-alert { border-radius: var(--radius); padding: 14px 18px; font-size: .88rem; margin-bottom: 24px; }
.reg-alert-error { background: #fdecee; color: #a01423; border: 1px solid #f5c2c7; }
.reg-alert-warn  { background: #fff8e6; color: #8a6d1a; border: 1px solid #f5e2a8; }

.reg-terms { font-size: .75rem; color: var(--ink-light); text-align: center; margin-top: 10px; }
.reg-terms a { color: var(--red); }
#submit-btn { width: 100%; justify-content: center; border: none; font-size: 1rem; padding: 16px; }
#submit-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ─── Register form ─────────────────────────────── */
.register-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}
.register-form-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.register-form-card h2 {
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-family: 'Gilroy', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink-mid);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.form-group input,
.form-group select,
.form-group textarea {
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: 'Gilroy', sans-serif;
  font-size: .9rem;
  color: var(--ink);
  outline: none;
  transition: border-color var(--t);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { min-height: 100px; resize: vertical; }

.ticket-option {
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color var(--t);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ticket-option.selected { border-color: var(--red); background: #fff5f5; }
.ticket-option h4 { font-family: 'Gilroy', sans-serif; font-size: .92rem; font-weight: 700; color: var(--ink); }
.ticket-option p { font-size: .8rem; color: var(--ink-light); margin-top: 2px; }
.ticket-price { font-family: 'FrameHead', Georgia, serif; font-size: 1.4rem; color: var(--red); font-weight: 700; }

.register-sidebar {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--white);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.register-sidebar h3 { font-size: 1.2rem; color: var(--white); margin-bottom: 20px; }

/* Order summary lines */
.os-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .88rem; color: rgba(255,255,255,.75); padding: 5px 0; }
.os-line span:last-child { font-family: 'Gilroy', sans-serif; font-weight: 600; color: #fff; white-space: nowrap; }
.os-ticket span:first-child { font-family: 'Gilroy', sans-serif; font-weight: 700; color: #fff; }
.os-ticket span:last-child { color: rgba(255,255,255,.6); font-weight: 500; }
.os-divider { height: 1px; background: rgba(255,255,255,.12); margin: 10px 0; }
.os-discount span:last-child { color: #7ee2a8; }
.os-discount em { font-style: normal; color: rgba(255,255,255,.5); font-size: .8em; }
.os-total { font-size: 1.05rem; padding-top: 6px; }
.os-total span { color: #fff !important; font-weight: 800 !important; }
.os-total span:last-child { font-family: 'FrameHead', Georgia, serif; font-size: 1.4rem; color: var(--red) !important; }
.os-note { border-top: 1px solid rgba(255,255,255,.12); margin-top: 18px; padding-top: 18px; }

.sidebar-detail { display: flex; gap: 12px; margin-bottom: 16px; }
.sidebar-detail .icon { font-size: 1.2rem; flex-shrink: 0; }
.sidebar-detail strong { display: block; font-family: 'Gilroy', sans-serif; font-size: .85rem; font-weight: 700; color: var(--white); }
.sidebar-detail p { font-size: .82rem; color: rgba(255,255,255,.55); line-height: 1.5; }

@media (max-width: 768px) {
  .register-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .register-sidebar { position: static; }
}

/* ─── Agenda page ───────────────────────────────── */
.speaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.speaker-bio-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--t);
}
.speaker-bio-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.spk-img {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Gilroy', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255,255,255,.8);
}
.spk-info { padding: 16px; }
.spk-info h4 { font-family: 'Gilroy', sans-serif; font-size: .9rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.spk-info p { font-size: .78rem; color: var(--ink-light); line-height: 1.5; }

/* ─── 404 ───────────────────────────────────────── */
.not-found {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  gap: 16px;
}
.not-found .big-num {
  font-family: 'FrameHead', Georgia, serif;
  font-size: clamp(6rem, 20vw, 14rem);
  color: var(--red);
  line-height: 1;
  opacity: .15;
  user-select: none;
}
.not-found h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--ink); }
.not-found p { color: var(--ink-mid); max-width: 400px; }

/* ─── Registration success ──────────────────────── */
.success-wrap {
  max-width: 640px;
  margin: 80px auto;
  padding: 0 24px 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.success-icon {
  width: 80px; height: 80px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; font-weight: 700;
  box-shadow: 0 8px 24px rgba(255,22,40,.25);
}
.success-wrap h1 {
  font-family: 'FrameHead', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--ink);
}
.success-sub { font-size: 1.05rem; color: var(--ink-mid); line-height: 1.6; }
.success-details { font-size: .9rem; color: var(--ink-light); line-height: 1.7; max-width: 520px; }
.success-event {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex; gap: 32px; flex-wrap: wrap;
  text-align: left; width: 100%;
  border: 1px solid var(--cream-dark);
}
.success-event-item { display: flex; gap: 12px; align-items: flex-start; }
.success-event-item span { font-size: 1.3rem; }
.success-event-item strong { display: block; font-family: 'Gilroy', sans-serif; font-size: .82rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.success-event-item p { font-size: .85rem; color: var(--ink-mid); line-height: 1.5; }
.success-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* Success order summary */
.success-summary {
  width: 100%; text-align: left;
  background: var(--white); border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg); padding: 24px 28px;
}
.ss-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; font-size: .9rem; color: var(--ink-mid); }
.ss-row strong, .ss-row span:last-child { color: var(--ink); font-family: 'Gilroy', sans-serif; }
.ss-divider { height: 1px; background: var(--cream-dark); margin: 12px 0; }
.ss-total { font-size: 1.05rem; padding-top: 8px; }
.ss-total strong { font-family: 'FrameHead', Georgia, serif; font-size: 1.3rem; color: var(--red); }
.ss-group { font-style: normal; background: #6b7280; color: #fff; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 100px; vertical-align: middle; }
.ss-status { padding: 2px 10px; border-radius: 100px; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.ss-paid { background: #d4edda; color: #155724; }
.ss-pending { background: #fff3cd; color: #856404; }
.ss-failed, .ss-cancelled { background: #f8d7da; color: #842029; }
.ss-refunded { background: #e2e3e5; color: #383d41; }
.ss-attendees { display: flex; flex-direction: column; gap: 8px; }
.ss-label { font-family: 'Gilroy', sans-serif; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-light); }
.ss-attendee { display: flex; flex-direction: column; }
.ss-attendee strong { font-family: 'Gilroy', sans-serif; font-size: .9rem; color: var(--ink); }
.ss-attendee span { font-size: .78rem; color: var(--ink-light); }
.success-support { font-size: .82rem; color: var(--ink-light); }
.success-support a { color: var(--red); }

/* ── Dynamic pricing (register page) ─────────────────────────── */
.reg-tier-banner {
  background: linear-gradient(90deg, rgba(255,22,40,.12), rgba(255,22,40,.04));
  border: 1px solid rgba(255,22,40,.35);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 18px;
  font-size: .9rem;
  color: var(--ink-mid, #3a3f4b);
}
.reg-tier-banner strong { color: var(--red, #ff1628); }
.reg-ticket-ribbon-deal { background: #0b7a3b; }         /* green "50% off" flag */
.reg-ticket-base s { color: var(--ink-light, #6b7280); opacity: .8; margin-right: 4px; }
.reg-ticket-dark .reg-ticket-base s { color: rgba(255,255,255,.45); }
/* dynamic-pricing summary line reuses .os-discount (green) styling */

/* ── Dynamic pricing (homepage ticket cards) ─────────────────── */
.ticket-ribbon-deal { background: #0b7a3b !important; }
.ticket-was {
  display: block;
  width: 100%;
  margin-top: 2px;
  font-size: .8rem;
  text-decoration: line-through;
  opacity: .6;
}
