:root {
    --brand: #d0962b;
    --brand-dark: #a87416;
    --navy: #002147;
    --blush: #fadadd;
    --ink: #1a1a1a;
    --muted: #5c6570;
    --line: #eadfd4;
    --head: #fff6ee;
    --bg: #fffaf7;
    --danger: #9f1239;
    --ok: #047857;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font: 16px/1.55 Montserrat, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(ellipse at 50% -8%, rgba(242, 193, 78, 0.55), transparent 42%),
        radial-gradient(ellipse at 0% 100%, rgba(138, 35, 68, 0.16), transparent 38%),
        radial-gradient(ellipse at 100% 80%, rgba(0, 33, 71, 0.14), transparent 42%),
        linear-gradient(180deg, #fff4e8 0%, #fadadd 46%, #fffaf7 100%);
}

h1, h2, h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.page { position: relative; z-index: 1; padding: 12px 0 40px; }

.page > .card,
.page > .banner {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.form-intro { margin: 0 0 8px; }
.form-intro h1 {
    margin: 4px 0 8px;
    color: var(--navy);
    font-size: 40px;
    line-height: 1.05;
    text-transform: uppercase;
}
.form-intro p { margin: 0; max-width: 560px; color: var(--muted); }

.topbar {
    background: var(--navy);
    color: #fff;
    font-size: 14px;
}

.topbar-inner, .site-header-inner, .footer-inner, .ticket-inner, .story-grid {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 46px;
}

.topbar p { display: flex; align-items: center; gap: 14px; margin: 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.top-actions { display: flex; gap: 8px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 4px;
    padding: 12px 18px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-gold { background: var(--brand); color: #fff; }
.btn-gold:hover { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-navy { background: #fff; color: var(--navy); }
.btn-navy:hover { background: var(--navy); color: #fff; }

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 92px;
}

.brand img { height: 72px; width: auto; display: block; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
    display: none;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 8px 12px;
    font-weight: 700;
}

.site-nav ul { display: flex; gap: 18px; align-items: center; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 14px; }
.site-nav a:hover { color: var(--brand); }
.has-sub { position: relative; }
.has-sub ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(0, 33, 71, 0.12);
    padding: 8px 0;
    z-index: 30;
}
.has-sub:hover ul, .has-sub:focus-within ul { display: flex; }
.has-sub li a { display: block; padding: 8px 14px; }

.page-banner {
    background:
        radial-gradient(circle at 80% 20%, rgba(208, 150, 43, 0.35), transparent 28%),
        linear-gradient(120deg, #002147, #12325f);
    color: #fff;
    padding: 42px 20px;
    text-align: center;
}
.page-banner p { margin: 0 0 6px; letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; color: #f2c14e; }
.page-banner h1 { margin: 0; text-transform: uppercase; font-size: 40px; }

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 42px 20px 10px;
}

.eyebrow, .fill-line, .hero-kicker {
    margin: 0;
    color: var(--brand-dark);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 13px;
}

.hero h1 {
    margin: 6px 0 12px;
    font-size: 72px;
    line-height: 0.95;
    text-transform: uppercase;
    color: var(--navy);
}

.hero-lead { max-width: 520px; color: var(--muted); }
.stage-wrap { display: flex; justify-content: center; }
.pageant-art {
    width: min(100%, 460px);
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(0, 33, 71, 0.18));
}

.story { background: #fff; border-top: 1px solid var(--line); }
.story-grid, .ticket-inner {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 28px;
    align-items: center;
    padding-top: 42px;
    padding-bottom: 42px;
}
.story h2, .ticket-band h2 { margin: 6px 0 10px; text-transform: uppercase; color: var(--navy); }
.organiser {
    background: var(--blush);
    border-radius: 18px;
    padding: 22px;
}
.ticket-band { background: var(--navy); color: #fff; }
.ticket-band .eyebrow { color: #f2c14e; }
.ticket-band h2, .ticket-band p { color: #fff; }

.site-footer { background: #00152e; color: #d7deE8; }
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
    padding-top: 36px;
    padding-bottom: 36px;
}
.footer-mark { color: #fff; margin: 0 0 8px; font-size: 26px; }
.footer-label { color: #f2c14e; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer li { margin: 6px 0; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }

.wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 28px 16px 48px;
}

.mast h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.25;
}

.kicker, .lede, .eligibility {
    margin: 0 0 8px;
    color: var(--muted);
}

.eligibility {
    margin: 0 0 18px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
}

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kicker,
.lede,
.card-head,
.pay-copy h2,
.eligibility,
.stats p,
.back a,
.ok {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eligibility { align-items: flex-start; }

.prizes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 12px;
    padding: 0;
    list-style: none;
}

.prizes li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.3;
}

.prize-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 10px;
    background: #fff6ee;
    color: var(--brand);
}

.prize-icon .icon { width: 18px; height: 18px; }

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.steps button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    padding: 12px 6px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
}

.step-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff6ee;
    color: var(--brand);
}

.step-icon .icon { width: 20px; height: 20px; }

.steps button.is-current {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.steps button.is-current .step-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.steps button.is-done {
    color: var(--brand);
    border-color: #ead3a4;
    background: #fff6ee;
}

.steps button.is-done .step-icon {
    background: #fff;
    color: var(--brand);
}

.js [data-step] { display: none; }
.js [data-step="1"]:not([hidden]) { display: block; }
.js [data-step]:not([hidden]) { display: block; }

.card {
    margin: 0 0 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 33, 71, 0.08);
}

.card-head {
    padding: 12px 16px;
    background: var(--head);
    font-weight: 650;
}

.grid, .pay-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    padding: 18px 16px 8px;
}

.pay-copy { display: block; }

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

label input,
label select,
label textarea {
    margin-top: 6px;
}

label.full { grid-column: 1 / -1; }

label span.req { color: var(--danger); }

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    background: #fff;
}

input:focus, select:focus, textarea:focus {
    outline: 3px solid rgba(208, 150, 43, 0.35);
    border-color: var(--brand);
}

textarea { resize: vertical; }

.pay-copy h2 {
    margin: 18px 0 8px;
    font-size: 18px;
}

.channels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.channels li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #ead3a4;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
}

.fee-box {
    padding: 16px;
    background: #fff6ee;
    border: 1px solid #ead3a4;
    border-radius: 8px;
}

.fee-box .fee-label,
.fee-label {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.review {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    margin: 0;
}

.review div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 4px 10px;
    margin: 0;
    align-items: start;
}
.review dt {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}
.review dd { margin: 0; }

.pay-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 18px;
    padding: 18px 16px;
}

.setup {
    color: var(--muted);
    font-size: 13px;
}

.filters {
    display: flex;
    gap: 12px;
    align-items: end;
    margin-bottom: 16px;
}

.filters label { flex: 1; }
.filters button { margin-bottom: 1px; }

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.stats p {
    margin: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.pill-paid { color: var(--ok); background: #ecfdf5; }
.pill-pending { color: #92400e; background: #fffbeb; }

.check {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    margin-top: 16px;
}

.check input {
    width: auto;
    margin-top: 4px;
}

.actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.actions.spread { align-items: center; }

button, .link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    text-decoration: none;
}

.primary, .link {
    background: var(--brand);
    color: #fff;
}

.ghost {
    background: #fff;
    color: var(--ink);
    border: 1px solid #d1d5db;
}

.error, .banner {
    color: var(--danger);
    font-size: 14px;
    font-weight: 600;
}

.banner {
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.ok { color: var(--ok); font-weight: 700; }
.wait { color: var(--muted); }
.fee { font-size: 20px; }
.back { margin-top: 16px; }
.hp { position: absolute; left: -9999px; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
th { background: var(--head); }
.inline { display: inline; }
code { font-family: Consolas, monospace; }

@media print {
    body { background: #fff; }
    .no-print, .mast, .back, .prizes, .steps { display: none !important; }
    .card { break-inside: avoid; box-shadow: none; }
}

@media (max-width: 900px) {
    .form-intro h1 { font-size: 32px; }
    .grid, .stats, .review { grid-template-columns: 1fr; }
    .pay-layout { grid-template-columns: 1fr; }
    .fee-box { order: -1; }
    .filters { flex-direction: column; align-items: stretch; }
}

@media (max-width: 640px) {
    .wrap { padding: 16px 12px 32px; }
    .form-intro h1 { font-size: 28px; }
    .prizes { grid-template-columns: 1fr 1fr; }
    .step-label { font-size: 11px; }
    .step-icon { width: 34px; height: 34px; }
    .steps button { padding: 10px 4px; }
    .actions { flex-wrap: wrap; }
    .action-gap { display: none; }
    .actions .ghost,
    .actions .primary { flex: 1 1 calc(50% - 8px); }
    #submit-step { flex-basis: 100%; }
}

@media (max-width: 420px) {
    .prizes { grid-template-columns: 1fr; }
    .review div { grid-template-columns: 1fr; gap: 2px; }
}
