:root {
  --navy: #101C4E;
  --cream: #F6F4EE;
  --muted: #6B7088;
  --placeholder: #9AA0B5;
  --border: rgba(16, 28, 78, .16);
  --rule: rgba(16, 28, 78, .14);
  --green: #1F8A3B;
  --blue: #1B6FC2;
  --red: #D0312D;
  --error: #B42318;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Onest', system-ui, sans-serif; color: var(--navy); background: var(--cream); -webkit-font-smoothing: antialiased; }
a { color: var(--navy); }
a:hover { color: var(--blue); }
button { font: inherit; color: inherit; }

/* LOGO (text wordmark) */
.logo { display: inline-flex; align-items: baseline; line-height: 1; white-space: nowrap; }
.logo .l-omo { font-size: 17px; font-weight: 300; letter-spacing: .08em; }
.logo .l-e { font-size: 22px; font-weight: 700; margin-left: 1px; }
.logo .l-ko, .logo .l-h { font-size: 22px; font-weight: 800; }
.logo-dark .l-omo { color: var(--navy); }
.logo-dark .l-e { color: var(--green); }
.logo-dark .l-ko { color: var(--blue); }
.logo-dark .l-h { color: var(--red); }
.logo-light .l-omo { color: #fff; }
.logo-light .l-e { color: #3DBB5F; }
.logo-light .l-ko { color: #5AA5F0; }
.logo-light .l-h { color: #FF6B64; }
.brand-logo, .pane-top a { text-decoration: none; }

/* SHELL */
.shell { min-height: 100vh; display: grid; grid-template-columns: 460px 1fr; }
.m-only { display: none !important; }

.brand { background: var(--navy); color: #fff; padding: 24px 48px 32px; display: flex; flex-direction: column; justify-content: space-between; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand-logo { display: flex; align-items: center; height: 48px; }
.brand-mid { padding: 40px 0 56px; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: rgba(255,255,255,.55); }
.brand h1 { margin: 14px 0 16px; font-size: 44px; line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; }
.brand p { font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.72); }
.brand-foot { font-size: 12px; color: rgba(255,255,255,.45); }

.steps { list-style: none; margin-top: 48px; border-bottom: 1px solid rgba(255,255,255,.14); }
.steps li { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.55); }
.steps b { display: block; font-size: 15px; font-weight: 500; }
.steps small { display: block; font-size: 13px; margin-top: 2px; color: rgba(255,255,255,.55); }
.steps .dot { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; }
.steps li.active { color: #fff; }
.steps li.active .dot { background: #fff; color: var(--navy); border-color: #fff; font-weight: 600; }
.steps li.done { color: rgba(255,255,255,.72); }
.steps li.done .dot { font-size: 0; }
.steps li.done .dot::after { content: ''; width: 5px; height: 9px; border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: translateY(-1px) rotate(45deg); }

/* RIGHT PANE */
.pane { padding: 0 56px 24px; min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.pane-top { display: flex; justify-content: flex-end; align-items: center; height: 56px; font-size: 14px; }
.back-link { text-decoration: none; }
/* Centre the step (or success card) in the space below the top bar, like the brand panel. */
.pane-body { flex: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 4px 0 32px; display: flex; flex-direction: column; justify-content: center; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.step { border: 0; display: none; min-width: 0; }
.step.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
legend { display: block; width: 100%; margin-bottom: 24px; }
.kicker { display: block; font-size: 13px; color: var(--muted); }
.kicker.ok { color: var(--green); font-weight: 500; }
h2 { margin: 6px 0 8px; font-size: 30px; line-height: 1.15; font-weight: 500; letter-spacing: -0.015em; }
.lede { font-size: 15px; line-height: 1.5; color: var(--muted); }

.step > .row, .step > .field { margin-bottom: 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.row > .field { margin-bottom: 0; }
.row-3 { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field label, .group .label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.field label i { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 2px; }
.field input, .field select {
  width: 100%; height: 46px; padding: 0 14px; background: #fff; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; font-size: 15px; color: var(--navy); outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: var(--placeholder); opacity: 1; }
.field input:focus, .field select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(16,28,78,.08); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23101C4E' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.field select.empty { color: var(--placeholder); }
.field select option { color: var(--navy); }
.field select:disabled { background-color: rgba(255,255,255,.55); color: var(--placeholder); cursor: not-allowed; }
.field input[type=date] { -webkit-appearance: none; appearance: none; }
.field input[type=date].empty { color: var(--placeholder); }
.hint { margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.err { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--error); font-weight: 500; }
.err:empty { display: none; }
.field.invalid input, .field.invalid select { border-color: var(--error); box-shadow: 0 0 0 3px rgba(180,35,24,.08); }

.group { margin-bottom: 16px; }
.group .label { margin-bottom: 10px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 3px; gap: 3px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { height: 34px; padding: 0 18px; display: flex; align-items: center; border-radius: 6px; font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.seg input:checked + span { background: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 999px; font-size: 13.5px; user-select: none; transition: background .15s, color .15s, border-color .15s; }
.chips label:hover span { border-color: var(--navy); }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 500; }
.chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 2px; padding-top: 16px; border-top: 1px solid var(--rule); cursor: pointer; font-size: 13px; line-height: 1.5; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent .box { width: 20px; height: 20px; flex: none; margin-top: 2px; border-radius: 5px; border: 1.5px solid rgba(16,28,78,.3); background: #fff; display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; }
.consent input:checked + .box { background: var(--navy); border-color: var(--navy); }
.consent input:checked + .box::after { content: ''; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(45deg); }
.consent input:focus-visible + .box { outline: 2px solid var(--blue); outline-offset: 2px; }
.consent.invalid .box { border-color: var(--error); }

.form-error { display: none; margin-top: 20px; padding: 12px 14px; border-radius: 8px; background: #FEF3F2; color: var(--error); font-size: 14px; font-weight: 500; }
.form-error.show { display: block; }

.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); }
.actions-plain { margin-top: 18px; padding-top: 0; border-top: 0; }
.note { font-size: 13px; color: var(--muted); }
.btn { height: 46px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; transition: background .15s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #1A2A6B; color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #18722F; color: #fff; }
.btn-back { background: none; padding: 0; height: auto; }
.btn-back:hover { color: var(--blue); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-block { display: flex; width: 100%; }

/* SUCCESS */
.success { animation: fade .3s ease; width: 100%; max-width: 440px; align-self: center; }
.success h2 { margin-top: 8px; }
.success .lede { margin-bottom: 32px; }
.ticket { position: relative; background: #fff; border-radius: 14px; border: 1px solid rgba(16,28,78,.12); margin-bottom: 28px; }
.ticket-main { padding: 22px 22px 18px; }
.ticket-head { display: flex; justify-content: space-between; align-items: center; }
.ticket-head .l-omo { font-size: 12px; }
.ticket-head .l-e, .ticket-head .l-ko, .ticket-head .l-h { font-size: 15px; }
.ticket-tag { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--green); }
.ticket-label { margin-top: 30px; font-size: 12px; color: var(--muted); }
.ticket-id { margin-top: 6px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 26px; font-weight: 600; letter-spacing: .02em; }
.ticket-name { margin-top: 16px; font-size: 16px; font-weight: 500; }
.ticket-place { margin-top: 2px; font-size: 14px; color: var(--muted); }
.ticket-tear { position: relative; height: 20px; display: flex; align-items: center; padding: 0 12px; }
.ticket-tear i { flex: 1; border-top: 1.5px dashed rgba(16,28,78,.22); }
.ticket-tear::before, .ticket-tear::after { content: ''; position: absolute; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); border: 1px solid rgba(16,28,78,.12); }
.ticket-tear::before { left: -11px; }
.ticket-tear::after { right: -11px; }
.ticket-foot { padding: 14px 22px 20px; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.text-link { display: block; margin-top: 18px; text-align: center; font-size: 14px; font-weight: 500; text-decoration: none; }

/* PHONE */
@media (max-width: 900px) {
  .shell { display: block; }
  .brand { display: none; }
  .d-only { display: none !important; }
  .m-only { display: revert !important; }
  .pane { padding: 0 20px 28px; min-height: 0; display: block; }
  .pane-top { justify-content: space-between; height: 56px; position: sticky; top: 0; z-index: 5; background: var(--cream); }
  .pane-top .l-omo { font-size: 14px; }
  .pane-top .l-e, .pane-top .l-ko, .pane-top .l-h { font-size: 18px; }
  .step-count { font-size: 13px; color: var(--muted); }
  .step-count.ok { color: var(--green); font-weight: 500; }
  .segbar { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 6px 0 28px; }
  .segbar i { height: 2px; background: var(--rule); transition: background .25s; }
  .segbar i.on { background: var(--navy); }
  .segbar.hide { visibility: hidden; }
  .pane-body { padding: 0; max-width: none; display: block; }
  legend { margin-bottom: 28px; }
  h2 { margin: 0 0 8px; font-size: 27px; }
  .lede { font-size: 15px; }
  .step > .row, .step > .field { margin-bottom: 20px; }
  .row, .row-3 { grid-template-columns: 1fr; gap: 20px; }
  .field input, .field select { height: 48px; }
  .hint { font-size: 13px; }
  .chips span { height: 36px; padding: 0 14px; font-size: 14px; }
  .consent { padding-top: 24px; font-size: 14px; }
  .group { margin-bottom: 24px; }
  .seg { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; background: none; }
  .seg span { height: 48px; padding: 0 14px; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; font-weight: 400; }
  .seg span::before { content: ''; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid rgba(16,28,78,.3); background: #fff; }
  .seg input:checked + span { background: #fff; color: var(--navy); border-color: var(--navy); }
  .seg input:checked + span::before { border: 6px solid var(--navy); }
  .consent { margin-top: 28px; }
  .actions, .actions-plain { margin-top: 32px; padding-top: 0; border-top: 0; gap: 10px; }
  .actions .btn { height: 50px; }
  .actions .btn-primary { flex: 1; }
  .btn-back { flex: none; padding: 0 18px; border: 1px solid var(--border); border-radius: 8px; height: 50px; }
  .success { max-width: none; }
  .success h2 { margin: 20px 0 8px; font-size: 30px; line-height: 1.1; }
  .success .lede { margin-bottom: 28px; }
  .success .btn { height: 50px; }
}
.nowrap { white-space: nowrap; }
