:root {
  --ink: #17171b;
  --muted: #6f625d;
  --line: #eeddd3;
  --paper: #ffffff;
  --soft: #fff6f0;
  --lavender: #ffeadc;
  --purple: #f06a1f;
  --purple-dark: #d83a16;
  --cyan: #198fc2;
  --orange: #ff9d1d;
  --pink: #ef3a20;
  --radius: 25px;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #fff8f3; color: var(--ink); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.site-header { padding: 0; background: linear-gradient(100deg, #fb7b1a 0%, #f15a16 48%, #e62f10 100%); }
.header-bar {
  max-width: 1240px;
  min-height: 74px;
  margin: auto;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.identity { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.logo-disc { width: 56px; height: 56px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: rgba(255,255,255,.9); }
.logo-disc img { width: 50px; height: 50px; object-fit: contain; }
.identity-text { color: #fff; font-size: 10px; line-height: 1.04; letter-spacing: .045em; }
.header-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.header-meta b { padding: 10px 19px; color: #fff; border-radius: 20px; background: linear-gradient(90deg, var(--pink), var(--orange)); }
.header-meta span { white-space: nowrap; }

.ticker { overflow: hidden; margin: 0; padding: 10px 0; border: 0; background: #df7622; }
.ticker-track { display: flex; width: max-content; will-change: transform; animation: ticker-run 48s linear infinite; }
.ticker-track span { flex: 0 0 auto; padding-right: 32px; white-space: nowrap; color: rgba(255,255,255,.94); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
@keyframes ticker-run { to { transform: translateX(-33.333333%); } }

.page-shell { max-width: 1240px; margin: 0 auto; padding: 36px clamp(16px, 3vw, 36px) 70px; display: grid; grid-template-columns: minmax(300px, .72fr) minmax(520px, 1.28fr); gap: 24px; align-items: start; }
.event-panel { position: sticky; top: 18px; padding: 34px; color: var(--ink); overflow: hidden; border: 1px solid #f1cdb7; border-radius: 28px; background: linear-gradient(145deg, #fff1e6 0%, #ffe3d0 55%, #fff7ef 100%); box-shadow: 0 18px 50px rgba(152, 63, 18, .09); }
.event-panel::before { content: ""; position: absolute; width: 300px; height: 300px; right: -190px; top: -120px; border-radius: 50%; border: 42px solid rgba(25, 143, 194, .12); box-shadow: 0 0 0 38px rgba(244, 113, 26, .10), 0 0 0 76px rgba(239, 58, 32, .05); }
.event-panel::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink), var(--orange)); }
.event-card { position: relative; z-index: 1; max-width: 100%; padding: 0; color: #141414; background: transparent; }
.event-card img { width: 58px; height: 58px; object-fit: contain; }
.eyebrow { margin: 12px 0 18px; color: #73584c; font-size: 10px; line-height: 1.25; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.event-card h1 { max-width: 100%; margin: 0; font-size: clamp(26px, 2.35vw, 35px); line-height: 1.01; letter-spacing: -.045em; overflow-wrap: normal; hyphens: auto; text-wrap: balance; text-transform: uppercase; }
.event-type { width: fit-content; margin-top: 21px; padding: 9px 18px; border-radius: 20px; color: #fff; font-size: 12px; font-weight: 700; background: linear-gradient(90deg, #ff8b18, #ef3a20); }
.event-facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0 22px; }
.event-facts > div { min-width: 0; padding-right: 10px; border-right: 1px solid #e7c9b9; }
.event-facts > div:last-child { border: 0; }
.event-facts span { display: block; margin-bottom: 6px; color: #947d72; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.event-facts b { display: block; font-size: 13px; overflow-wrap: break-word; }
.capacity { position: relative; z-index: 1; padding: 17px; border: 1px solid #edc9b4; border-radius: 17px; background: rgba(255,255,255,.80); }
.capacity > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 13px; }
.capacity strong { font-size: 22px; }
.capacity small { color: #947d72; font-size: 12px; font-weight: 500; }
.capacity-track { height: 6px; margin-top: 13px; overflow: hidden; border-radius: 10px; background: #efddd2; }
.capacity-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink)); transition: width .35s ease; }
.event-note { position: relative; z-index: 1; max-width: 400px; margin: 22px 0 0; color: #76645b; font-size: 13px; line-height: 1.58; }

.form-card { position: relative; z-index: 2; min-height: 0; margin: 0; padding: clamp(26px, 4vw, 48px); border: 1px solid #eeddd3; border-radius: 28px; background: #fff; box-shadow: 0 18px 55px rgba(111, 47, 15, .08); }
.form-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.step-label { display: block; margin-bottom: 10px; color: var(--purple); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.form-heading h2, .success-state h2 { margin: 0; max-width: 520px; font-size: clamp(28px, 3vw, 40px); line-height: 1.06; letter-spacing: -.04em; text-transform: uppercase; }
.step-number { color: #f0d9cc; font-size: 40px; line-height: 1; font-weight: 800; }
.form-progress { height: 5px; margin: 25px 0 34px; overflow: hidden; border-radius: 8px; background: #f2e5de; }
.form-progress span { display: block; width: 50%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink), var(--orange)); transition: width .35s ease; }
.form-step { display: none; }
.form-step.is-active { display: block; animation: step-in .25s ease; }
@keyframes step-in { from { opacity: 0; transform: translateY(7px); } }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field-wide { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 700; }
.field i, .question i { color: var(--pink); font-style: normal; }
.field input, .custom-answer, .login-field input { width: 100%; min-height: 52px; padding: 13px 15px; color: var(--ink); border: 1px solid #d8d5df; border-radius: 13px; outline: none; background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus, .custom-answer:focus, .login-field input:focus { border-color: var(--purple); background: #fff; box-shadow: 0 0 0 4px rgba(240,106,31,.12); }
.field input::placeholder, .custom-answer::placeholder { color: #aaa5b1; }
.primary-button, .secondary-button { min-height: 52px; padding: 13px 22px; border: 0; border-radius: 26px; font-size: 15px; font-weight: 800; transition: transform .18s, box-shadow .18s, opacity .18s; }
.primary-button { width: 100%; margin-top: 26px; color: #fff; background: linear-gradient(100deg, #ff8b18 0%, #f4661b 52%, #ef3a20 100%); box-shadow: 0 12px 28px rgba(224, 72, 23, .22); }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 15px 34px rgba(224, 72, 23, .30); }
.primary-button:disabled { cursor: not-allowed; opacity: .5; }
.secondary-button { color: #d84a18; border: 1px solid #ebc7b4; background: #fff; }
.privacy-note { margin: 14px 0 0; color: #98949f; text-align: center; font-size: 11px; }
.survey-intro { margin: -8px 0 28px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.question { min-width: 0; margin: 0; padding: 0 0 31px; border: 0; }
.question + .question { padding-top: 31px; border-top: 1px solid var(--line); }
.question legend { width: 100%; padding: 0; font-size: 16px; line-height: 1.45; font-weight: 750; }
.question legend > span { color: var(--purple); }
.radio-list { display: grid; gap: 9px; margin-top: 15px; }
.radio-card { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; padding: 13px 14px; border: 1px solid #ecd7cb; border-radius: 14px; color: #645b57; background: #fff8f3; cursor: pointer; font-size: 13px; line-height: 1.45; transition: border-color .18s, background .18s, transform .18s; }
.radio-card:hover { border-color: #efa67e; background: #fff1e7; }
.radio-card:has(input:checked) { color: #3b2921; border-color: var(--purple); background: #ffe9da; box-shadow: 0 0 0 1px rgba(240,106,31,.09); }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-dot { width: 18px; height: 18px; margin-top: 1px; border: 1.5px solid #aaa2b8; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px #fff; }
.radio-card input:checked + .radio-dot { border-color: var(--purple); background: var(--purple); }
.radio-card input:focus-visible + .radio-dot { outline: 3px solid rgba(25,143,194,.28); outline-offset: 2px; }
.custom-answer { min-height: 100px; margin-top: 10px; resize: vertical; }
.form-actions { display: grid; grid-template-columns: .38fr .62fr; gap: 11px; margin-top: 16px; }
.form-actions .primary-button { margin: 0; }
.form-error { margin-top: 18px; padding: 13px 15px; color: #a42c55; border: 1px solid #f1bed0; border-radius: 13px; background: #fff2f6; font-size: 13px; line-height: 1.45; }
.honeypot { position: absolute !important; left: -9999px !important; }
.success-state { padding: 50px 0 20px; text-align: center; }
.success-icon { width: 82px; height: 82px; margin: 0 auto 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 36px; font-weight: 700; background: linear-gradient(135deg, var(--orange), var(--pink)); box-shadow: 0 14px 35px rgba(224,72,23,.24); }
.success-state p { max-width: 520px; margin: 20px auto 0; color: var(--muted); line-height: 1.65; }
.success-facts { max-width: 480px; margin: 30px auto 0; padding: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-radius: 18px; background: var(--lavender); }
.success-facts b { font-size: 14px; }

.site-footer { padding: 16px clamp(16px, 3vw, 36px); color: #fff; background: linear-gradient(100deg, #f58a1f, #ef5518 55%, #df2e12); }
.site-footer > div { max-width: 1160px; margin: auto; display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
.site-footer a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.45); }

/* Admin */
.admin-body { background: #fff6f0; }
.admin-wrap { max-width: 1240px; margin: 0 auto; padding: 38px 20px 70px; }
.admin-top { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.admin-top h1 { margin: 7px 0 0; font-size: clamp(28px, 4vw, 44px); line-height: 1; letter-spacing: -.04em; text-transform: uppercase; }
.admin-actions { display: flex; gap: 10px; }
.small-button { min-height: 42px; padding: 10px 17px; border: 1px solid #e9c6b3; border-radius: 22px; color: #d64617; background: #fff; text-decoration: none; font-size: 13px; font-weight: 700; }
.metric-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.metric-card { padding: 22px; border-radius: 20px; background: #fff; box-shadow: 0 8px 28px rgba(111,47,15,.07); }
.metric-card.is-gradient { color: #fff; background: linear-gradient(135deg, #ff9d1d, #f06019 55%, #e33514); }
.metric-card span { display: block; color: #77717f; font-size: 13px; }
.metric-card.is-gradient span { color: rgba(255,255,255,.72); }
.metric-card b { display: block; margin-top: 10px; font-size: 36px; }
.answer-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.answer-card { padding: 20px; border-radius: 20px; background: #fff; }
.answer-card h2 { min-height: 44px; margin: 0 0 18px; font-size: 16px; line-height: 1.35; }
.answer-row { margin-top: 13px; }
.answer-row div { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; font-size: 12px; line-height: 1.45; }
.answer-row div span { display: block; min-width: 0; overflow: visible; overflow-wrap: anywhere; }
.answer-row div b { flex: 0 0 auto; }
.answer-bar { height: 5px; margin-top: 7px; border-radius: 6px; background: #f1e1d7; }
.answer-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--purple)); }
.table-card { margin-top: 14px; overflow: hidden; border-radius: 20px; background: #fff; }
.table-title { padding: 18px 20px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 13px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #f0e2d9; }
th { white-space: nowrap; background: #fff7f2; }
td { min-width: 110px; line-height: 1.45; }
td.answer-cell { min-width: 250px; max-width: 340px; }
td strong { display: block; margin-bottom: 3px; }
td a { color: var(--purple); }
.login-shell { min-height: 100vh; padding: 22px; display: grid; place-items: center; background: linear-gradient(135deg, #fff0e3, #ffd4ba); }
.login-card { width: min(450px, 100%); padding: 36px; border-radius: 28px; background: #fff; box-shadow: 0 25px 80px rgba(171,61,17,.18); }
.login-brand { display: flex; align-items: center; gap: 13px; }
.login-brand img { width: 62px; height: 62px; }
.login-brand b { font-size: 12px; line-height: 1.05; }
.login-card h1 { margin: 34px 0 8px; font-size: 28px; text-transform: uppercase; letter-spacing: -.03em; }
.login-card > p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.login-field { display: grid; gap: 8px; margin-top: 23px; font-size: 13px; font-weight: 700; }
.login-card .primary-button { margin-top: 17px; }
.login-back { display: block; margin-top: 17px; text-align: center; color: #77717f; font-size: 13px; }

@media (max-width: 900px) {
  .page-shell { grid-template-columns: 1fr; padding: 20px 14px 42px; gap: 14px; }
  .event-panel { position: relative; top: 0; min-height: auto; padding: 27px 24px 24px; border-radius: 24px; }
  .event-card { max-width: 620px; }
  .event-card h1 { max-width: 540px; font-size: 34px; }
  .form-card { min-height: 0; margin: 0; padding: 28px 24px; border-radius: 24px; }
  .event-note { max-width: 620px; }
  .answer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { padding: 0; }
  .header-bar { min-height: 64px; padding: 5px 10px; border-radius: 0; }
  .logo-disc { width: 50px; height: 50px; }
  .logo-disc img { width: 44px; height: 44px; }
  .identity-text { font-size: 8px; }
  .header-meta { display: block; text-align: right; }
  .header-meta b { display: block; padding: 7px 12px; font-size: 11px; }
  .header-meta span { display: block; margin-top: 4px; font-size: 9px; }
  .ticker { display: block; margin: 0; padding: 8px 0; }
  .ticker-track { animation-duration: 32s; }
  .ticker-track span { padding-right: 42px; font-size: 8px; letter-spacing: .12em; }
  .page-shell { padding-top: 12px; }
  .event-panel { padding: 20px 18px 18px; }
  .event-panel::before { width: 220px; height: 220px; right: -155px; top: -115px; border-width: 30px; }
  .event-card { display: block; }
  .event-card img, .eyebrow { display: none; }
  .event-card h1 { margin: 0; max-width: 330px; font-size: clamp(24px, 7.7vw, 29px); line-height: 1.02; overflow-wrap: normal; hyphens: auto; }
  .event-type { margin-top: 14px; padding: 7px 14px; font-size: 11px; }
  .event-facts { margin: 18px 0 14px; }
  .event-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .event-facts span { font-size: 8px; }
  .event-facts b { font-size: 11px; }
  .capacity { padding: 13px 14px; }
  .capacity strong { font-size: 18px; }
  .event-note { display: none; }
  .form-card { padding: 24px 20px 26px; }
  .form-heading h2, .success-state h2 { font-size: 27px; }
  .step-number { font-size: 30px; }
  .field-grid { grid-template-columns: 1fr; gap: 17px; }
  .field-wide { grid-column: auto; }
  .form-actions { grid-template-columns: 1fr; }
  .form-actions .secondary-button { order: 2; }
  .radio-card { font-size: 14px; }
  .success-facts { grid-template-columns: 1fr; }
  .site-footer > div { flex-direction: column; align-items: flex-start; }
  .admin-top { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr; }
  .admin-actions { width: 100%; }
  .small-button { flex: 1; text-align: center; }
  .login-card { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
