:root {
    --bg: #040b18;
    --bg-2: #06152d;
    --panel: rgba(8, 24, 49, .88);
    --panel-solid: #0a1c38;
    --panel-soft: rgba(15, 45, 83, .62);
    --line: rgba(140, 192, 255, .16);
    --line-strong: rgba(75, 178, 255, .38);
    --text: #f6f8ff;
    --muted: #aebbd0;
    --muted-2: #7f8fa8;
    --gold: #f7c94a;
    --gold-2: #ffdf78;
    --blue: #29a8ff;
    --blue-2: #67c7ff;
    --green: #25d366;
    --danger: #ff6b78;
    --shadow: 0 24px 80px rgba(0, 0, 0, .42);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 12%, rgba(30, 142, 255, .16), transparent 28%),
        radial-gradient(circle at 82% 8%, rgba(255, 202, 74, .10), transparent 22%),
        linear-gradient(145deg, #020711 0%, #06142b 52%, #030914 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .32;
    background-image:
        radial-gradient(circle at 10% 20%, #fff 0 1px, transparent 1.5px),
        radial-gradient(circle at 80% 28%, #fff 0 1px, transparent 1.5px),
        radial-gradient(circle at 45% 72%, #77bdff 0 1px, transparent 1.5px),
        radial-gradient(circle at 75% 78%, #fff 0 1px, transparent 1.5px);
    background-size: 210px 210px, 280px 280px, 330px 330px, 390px 390px;
}

a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.ambient {
    position: fixed;
    border-radius: 999px;
    filter: blur(95px);
    opacity: .2;
    pointer-events: none;
}
.ambient-one { width: 380px; height: 380px; background: #008cff; top: 8%; left: -180px; }
.ambient-two { width: 320px; height: 320px; background: #f5b72f; bottom: 3%; right: -160px; opacity: .12; }

.public-shell {
    position: relative;
    z-index: 1;
    width: min(1480px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0;
    display: grid;
    grid-template-columns: minmax(350px, 470px) minmax(0, 1fr);
    gap: 28px;
    min-height: 100vh;
    align-items: stretch;
}

.event-panel,
.form-panel {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.event-panel {
    position: sticky;
    top: 28px;
    align-self: start;
    min-height: calc(100vh - 68px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: rgba(2, 9, 22, .76);
    backdrop-filter: blur(18px);
}

.event-poster-wrap {
    position: absolute;
    inset: 0;
}
.event-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.event-poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2,8,19,.02) 26%, rgba(3,10,22,.58) 60%, rgba(3,10,22,.97) 100%);
}
.poster-glow {
    position: absolute;
    inset: auto 8% 15% 8%;
    height: 16%;
    border-radius: 50%;
    background: rgba(255, 193, 50, .24);
    filter: blur(48px);
}
.event-mini-card {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    background: rgba(5, 16, 34, .78);
    backdrop-filter: blur(16px);
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d8e8ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}
.eyebrow.gold { color: var(--gold-2); }
.event-mini-card h1 {
    margin: 8px 0 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1;
    letter-spacing: -.02em;
}
.event-mini-card p { margin: 0; color: var(--gold-2); font-weight: 800; }
.event-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.event-badges span {
    padding: 8px 10px;
    border: 1px solid rgba(103, 199, 255, .24);
    border-radius: 999px;
    color: #caeaff;
    background: rgba(17, 69, 111, .34);
    font-size: 12px;
}

.form-panel {
    border-radius: var(--radius-xl);
    padding: clamp(24px, 4vw, 50px);
    background: linear-gradient(160deg, rgba(9, 27, 55, .93), rgba(5, 17, 36, .90));
    backdrop-filter: blur(18px);
    min-height: calc(100vh - 68px);
    display: flex;
    flex-direction: column;
}
.form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}
.form-header h2 {
    margin: 8px 0 10px;
    font-size: clamp(28px, 4.2vw, 52px);
    line-height: 1.02;
    letter-spacing: -.04em;
    max-width: 780px;
}
.form-header p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}
.step-counter {
    flex: 0 0 auto;
    width: 74px;
    height: 74px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(247,201,74,.28);
    background: linear-gradient(145deg, rgba(247,201,74,.16), rgba(247,201,74,.04));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.step-counter strong { font-size: 28px; color: var(--gold-2); }
.step-counter span { color: var(--muted-2); font-size: 12px; margin-left: 2px; }

.progress-track {
    height: 6px;
    margin: 28px 0 34px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.07);
}
.progress-fill {
    width: 16.666%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--gold));
    box-shadow: 0 0 20px rgba(49,166,255,.5);
    transition: width .35s ease;
}

.alert {
    padding: 14px 16px;
    margin-bottom: 22px;
    border-radius: 14px;
    font-size: 14px;
}
.alert-error { border: 1px solid rgba(255,107,120,.35); background: rgba(116,25,40,.28); color: #ffd5da; }
.alert-success { border: 1px solid rgba(49,211,111,.32); background: rgba(28,100,58,.26); color: #d7ffe6; }

.wizard-step { display: none; animation: fadeSlide .28s ease; }
.wizard-step.is-active { display: block; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.section-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bcd3f5;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 11px;
    font-weight: 800;
}
.section-number {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #07152c;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    box-shadow: 0 8px 24px rgba(247,201,74,.16);
    font-size: 14px;
}
.wizard-step h3 {
    margin: 14px 0 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 600;
    letter-spacing: -.025em;
}
.section-subtitle { margin: 0 0 26px; color: var(--muted); line-height: 1.6; }

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}
.choice-card {
    position: relative;
    min-height: 84px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(15,48,87,.6), rgba(8,27,53,.72));
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
    user-select: none;
}
.choice-card:hover {
    transform: translateY(-2px);
    border-color: rgba(82,188,255,.42);
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-check {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(163,199,244,.30);
    border-radius: 11px;
    color: transparent;
    background: rgba(255,255,255,.035);
    transition: .2s ease;
}
.choice-text { color: #edf5ff; line-height: 1.35; font-weight: 650; }
.choice-card:has(input:checked) {
    border-color: rgba(247,201,74,.64);
    background: linear-gradient(145deg, rgba(117,88,18,.42), rgba(24,52,83,.8));
    box-shadow: inset 0 0 0 1px rgba(247,201,74,.08), 0 12px 28px rgba(247,201,74,.08);
}
.choice-card:has(input:checked) .choice-check {
    color: #09162a;
    border-color: transparent;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
}
.choice-card:focus-within { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.selection-note {
    display: inline-flex;
    margin-top: 18px;
    color: var(--muted-2);
    font-size: 12px;
}
.selection-count { color: var(--gold-2); font-weight: 800; margin-right: 4px; }

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.field-full { grid-column: 1 / -1; }
.field label {
    display: block;
    margin-bottom: 8px;
    color: #dce9fa;
    font-size: 13px;
    font-weight: 750;
}
.field label span { color: var(--gold); }
.field input,
.field textarea,
.admin-input,
.admin-select,
.admin-textarea {
    width: 100%;
    border: 1px solid var(--line);
    outline: 0;
    border-radius: 14px;
    background: rgba(5,18,38,.72);
    color: var(--text);
    padding: 14px 15px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input { min-height: 52px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field textarea:focus,
.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus {
    border-color: rgba(53,175,255,.62);
    box-shadow: 0 0 0 4px rgba(41,168,255,.10);
    background: rgba(7,24,49,.92);
}
.field small { display: block; margin-top: 6px; color: var(--muted-2); font-size: 11px; }
::placeholder { color: #6f809a; }

.privacy-card {
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(98,164,222,.20);
    border-radius: 16px;
    background: rgba(11,36,66,.45);
    color: var(--muted);
    line-height: 1.5;
    font-size: 13px;
    cursor: pointer;
}
.privacy-card input { margin-top: 2px; accent-color: var(--gold); }
.privacy-card strong { color: #eaf4ff; }

.final-summary {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid rgba(247,201,74,.20);
    background: linear-gradient(145deg, rgba(247,201,74,.10), rgba(34,79,119,.12));
}
.final-summary > div { display: flex; flex-direction: column; }
.summary-label { color: var(--muted); font-size: 12px; }
.final-summary strong { font-size: 30px; color: var(--gold-2); }
.summary-note { color: var(--muted); font-size: 12px; max-width: 330px; text-align: right; }

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 15px;
    padding: 0 20px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.btn-primary {
    color: #07152c;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    box-shadow: 0 10px 32px rgba(247,201,74,.18);
}
.btn-primary:hover { box-shadow: 0 13px 36px rgba(247,201,74,.24); }
.btn-secondary {
    color: #d8eaff;
    background: rgba(28,78,124,.28);
    border: 1px solid rgba(88,175,242,.22);
}
.btn-whatsapp { background: linear-gradient(135deg, #25d366, #1cb957); color: white; }
.btn-danger { background: rgba(150,35,50,.2); color: #ffb3bd; border: 1px solid rgba(255,107,120,.24); }
.btn-small { min-height: 38px; padding: 0 13px; font-size: 12px; border-radius: 11px; }
.btn-large { min-height: 60px; padding: 0 24px; font-size: 15px; }

.public-footer {
    margin-top: auto;
    padding-top: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    color: var(--muted-2);
    font-size: 11px;
}
.public-footer a { color: #a9caee; text-decoration: none; }
.public-footer .dot { width: 3px; height: 3px; border-radius: 50%; background: #4a6383; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0 !important; }

/* Success */
.success-page { display: grid; place-items: center; padding: 24px; }
.success-shell { width: min(640px, 100%); position: relative; z-index: 1; }
.success-card {
    padding: clamp(28px, 6vw, 52px);
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(7,22,46,.90);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}
.success-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border-radius: 26px;
    color: #07152c;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    box-shadow: 0 18px 45px rgba(247,201,74,.16);
}
.success-card h1 { margin: 8px 0 12px; font-size: clamp(34px, 7vw, 52px); letter-spacing: -.04em; }
.success-card > p { margin: 0 auto; max-width: 500px; color: var(--muted); line-height: 1.65; }
.success-summary {
    margin: 26px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(12,39,73,.42);
}
.success-summary span { color: var(--muted); }
.success-summary strong { color: var(--gold-2); font-size: 26px; }
.success-card .btn-whatsapp { width: 100%; }
.whatsapp-hint { margin-top: 10px !important; font-size: 11px; color: var(--muted-2) !important; }
.text-link { display: inline-block; margin-top: 24px; color: #bfe5ff; text-decoration: none; font-size: 13px; }

/* Admin */
.admin-page { background: #05101f; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px 16px;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, #071a33, #061224);
}
.admin-brand { padding: 10px 10px 22px; border-bottom: 1px solid var(--line); }
.admin-brand span { display: block; color: var(--gold-2); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.admin-brand strong { display: block; margin-top: 5px; font-size: 18px; }
.admin-nav { display: grid; gap: 7px; margin-top: 18px; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 45px;
    padding: 0 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #aebed3;
    font-size: 13px;
    font-weight: 700;
}
.admin-nav a:hover,
.admin-nav a.is-active { background: rgba(40,137,210,.16); color: #eef8ff; }
.admin-nav a.is-active { border: 1px solid rgba(72,177,255,.18); }
.admin-sidebar-footer { position: absolute; left: 16px; right: 16px; bottom: 20px; }
.admin-user-card { padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.admin-user-card strong, .admin-user-card span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-card strong { font-size: 12px; }
.admin-user-card span { margin-top: 2px; color: var(--muted-2); font-size: 10px; }
.admin-main { min-width: 0; padding: 28px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.admin-topbar h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.03em; }
.admin-topbar p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card, .admin-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(12,38,71,.76), rgba(8,26,51,.78));
    box-shadow: 0 14px 34px rgba(0,0,0,.14);
}
.stat-card { padding: 18px; }
.stat-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 750; }
.stat-value { display: block; margin-top: 7px; font-size: 30px; line-height: 1; }
.stat-foot { margin-top: 8px; color: var(--muted-2); font-size: 11px; }
.admin-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 18px; }
.admin-card { padding: 18px; min-width: 0; }
.admin-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-card-header h2 { margin: 0; font-size: 16px; }
.admin-card-header a { color: #a9ddff; font-size: 11px; text-decoration: none; }

.data-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid rgba(255,255,255,.06); }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; background: rgba(2,10,21,.28); }
.data-table th { padding: 11px 12px; text-align: left; color: #7991ac; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line); }
.data-table td { padding: 13px 12px; border-bottom: 1px solid rgba(255,255,255,.045); color: #dbe9f9; font-size: 12px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table a { color: #c4eaff; text-decoration: none; font-weight: 750; }
.muted { color: var(--muted-2); }

.status-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.status-new { color: #d8f2ff; background: rgba(32,139,216,.18); border: 1px solid rgba(67,174,255,.22); }
.status-contacted { color: #fff3bd; background: rgba(185,137,24,.18); border: 1px solid rgba(247,201,74,.22); }
.status-follow { color: #e5d8ff; background: rgba(128,75,196,.18); border: 1px solid rgba(163,113,230,.22); }
.status-done { color: #d4ffe4; background: rgba(38,155,86,.18); border: 1px solid rgba(67,213,124,.22); }

.bar-list { display: grid; gap: 13px; }
.bar-item-head { display: flex; justify-content: space-between; gap: 12px; color: #cfdded; font-size: 11px; }
.bar-item-head span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 7px; margin-top: 6px; background: rgba(255,255,255,.05); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--gold)); }

.filter-card { display: grid; grid-template-columns: minmax(240px, 1fr) 180px 160px auto; gap: 10px; margin-bottom: 14px; }
.admin-input, .admin-select, .admin-textarea { min-height: 44px; font-size: 12px; }
.admin-textarea { min-height: 150px; resize: vertical; }
.admin-select { appearance: auto; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 18px; }
.detail-block { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(6,24,48,.46); }
.detail-block + .detail-block { margin-top: 12px; }
.detail-block h3 { margin: 0 0 12px; font-size: 14px; }
.info-list { display: grid; grid-template-columns: 140px 1fr; gap: 10px 14px; margin: 0; }
.info-list dt { color: var(--muted-2); font-size: 11px; }
.info-list dd { margin: 0; color: #e7f1ff; font-size: 12px; word-break: break-word; }
.answer-groups { display: grid; gap: 12px; }
.answer-group { padding: 14px; border-radius: 14px; border: 1px solid rgba(247,201,74,.15); background: rgba(92,70,21,.09); }
.answer-group strong { display: block; margin-bottom: 7px; color: var(--gold-2); font-size: 12px; }
.answer-group ul { margin: 0; padding-left: 18px; color: #d9e6f5; font-size: 12px; line-height: 1.7; }

.form-stack { display: grid; gap: 14px; }
.form-row { display: grid; gap: 7px; }
.form-row label { color: #cbd9ea; font-size: 11px; font-weight: 750; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.settings-grid .admin-card:last-child { grid-column: 1 / -1; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-shell { width: min(440px, 100%); position: relative; z-index: 1; }
.login-card { padding: 30px; border: 1px solid var(--line); border-radius: 26px; background: rgba(7,24,49,.91); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.login-logo { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 16px; color: #07152c; background: linear-gradient(135deg, var(--gold-2), var(--gold)); font-weight: 900; }
.login-card h1 { margin: 6px 0 8px; font-size: 30px; letter-spacing: -.04em; }
.login-card > p { margin: 0 0 22px; color: var(--muted); line-height: 1.55; font-size: 13px; }
.login-card .btn { width: 100%; margin-top: 8px; }
.login-back { display: block; margin-top: 18px; text-align: center; color: #a8c9ea; text-decoration: none; font-size: 11px; }

@media (max-width: 1100px) {
    .public-shell { grid-template-columns: 340px minmax(0, 1fr); }
    .choice-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-grid, .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 840px) {
    .public-shell { width: min(100% - 20px, 720px); grid-template-columns: 1fr; padding: 10px 0 20px; }
    .event-panel { position: relative; top: auto; min-height: 310px; border-radius: 24px; }
    .event-poster { object-position: center 23%; }
    .event-poster-wrap::after { background: linear-gradient(to bottom, rgba(2,8,19,.05), rgba(3,10,22,.84) 80%, rgba(3,10,22,.98)); }
    .event-mini-card { left: 14px; right: 14px; bottom: 14px; padding: 16px; }
    .event-mini-card h1 { font-size: 30px; }
    .event-badges { display: none; }
    .form-panel { min-height: auto; padding: 24px 18px; border-radius: 24px; }
    .form-header { gap: 12px; }
    .step-counter { width: 58px; height: 58px; border-radius: 17px; }
    .step-counter strong { font-size: 22px; }
    .progress-track { margin: 22px 0 28px; }
    .field-grid { grid-template-columns: 1fr; }
    .field-full { grid-column: auto; }

    .admin-shell { display: block; }
    .admin-sidebar { position: relative; height: auto; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
    .admin-brand { padding: 6px 6px 10px; }
    .admin-nav { display: flex; overflow-x: auto; margin-top: 10px; padding-bottom: 2px; }
    .admin-nav a { flex: 0 0 auto; }
    .admin-sidebar-footer { display: none; }
    .admin-main { padding: 18px 12px 28px; }
    .admin-topbar { align-items: flex-start; flex-direction: column; }
    .filter-card { grid-template-columns: 1fr 1fr; }
    .filter-card .btn { grid-column: span 2; }
    .settings-grid { grid-template-columns: 1fr; }
    .settings-grid .admin-card:last-child { grid-column: auto; }
}

@media (max-width: 560px) {
    .public-shell { width: 100%; padding: 0; gap: 0; }
    .event-panel { border-radius: 0; border-left: 0; border-right: 0; min-height: 270px; }
    .form-panel { border-radius: 26px 26px 0 0; margin-top: -16px; border-left: 0; border-right: 0; padding: 26px 15px 22px; position: relative; z-index: 2; }
    .form-header h2 { font-size: 31px; }
    .form-header p { font-size: 14px; }
    .step-counter { width: 52px; height: 52px; }
    .wizard-step h3 { font-size: 34px; }
    .choice-card { min-height: 76px; padding: 15px; border-radius: 15px; }
    .choice-text { font-size: 14px; }
    .form-actions { position: sticky; bottom: 0; margin: 28px -15px -22px; padding: 14px 15px calc(14px + env(safe-area-inset-bottom)); background: rgba(5,18,38,.94); backdrop-filter: blur(16px); z-index: 4; }
    .btn { min-height: 50px; padding: 0 15px; }
    .btn-secondary { min-width: 98px; }
    .final-summary { align-items: flex-start; }
    .summary-note { text-align: left; }
    .public-footer { padding-top: 24px; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .stat-card { padding: 14px; }
    .stat-value { font-size: 24px; }
    .filter-card { grid-template-columns: 1fr; }
    .filter-card .btn { grid-column: auto; }
    .info-list { grid-template-columns: 1fr; gap: 4px; }
    .info-list dd { margin-bottom: 8px; }
    .admin-actions { width: 100%; }
    .admin-actions .btn { flex: 1; }
}


/* =========================================================
   Mobile hardening v1.1 - smartphones 320px+ / iOS / Android
   ========================================================= */
[hidden] { display: none !important; }
html, body { max-width: 100%; overflow-x: hidden; }
img, svg { max-width: 100%; }
button, input, textarea, select { max-width: 100%; }

.form-actions.is-final #nextBtn { display: none !important; }
.form-actions:not(.is-final) #submitBtn { display: none !important; }
.success-new-response { margin-top: 28px; }

@media (max-width: 720px) {
    body.public-page { min-width: 0; }
    .public-shell {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        gap: 0;
    }
    .event-panel,
    .form-panel {
        width: 100%;
        max-width: 100%;
    }
    .event-panel {
        min-height: clamp(235px, 72vw, 330px);
    }
    .event-mini-card {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 14px;
    }
    .event-mini-card h1 {
        font-size: clamp(25px, 8vw, 32px);
        overflow-wrap: anywhere;
    }
    .form-panel {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
    .form-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 12px;
    }
    .form-header > div:first-child { min-width: 0; }
    .form-header h2 {
        font-size: clamp(29px, 8.6vw, 42px);
        overflow-wrap: break-word;
    }
    .form-header p {
        font-size: 14px;
        line-height: 1.55;
    }
    .step-counter {
        width: 54px;
        height: 54px;
        border-radius: 16px;
    }
    .step-counter strong { font-size: 21px; }
    .wizard-step h3 {
        font-size: clamp(32px, 10vw, 44px);
        overflow-wrap: break-word;
    }
    .section-subtitle {
        margin-bottom: 20px;
        font-size: 14px;
        line-height: 1.55;
    }
    .choice-grid,
    .field-grid { grid-template-columns: minmax(0, 1fr); }
    .choice-card {
        width: 100%;
        min-width: 0;
        min-height: 72px;
        padding: 14px;
        gap: 12px;
    }
    .choice-text {
        min-width: 0;
        font-size: 15px;
        overflow-wrap: anywhere;
    }
    .field-full { grid-column: auto; }
    .field input,
    .field textarea {
        font-size: 16px; /* avoids iOS auto-zoom */
    }
    .privacy-card {
        font-size: 12.5px;
        padding: 14px;
    }
    .final-summary {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 16px;
    }
    .summary-note {
        max-width: none;
        text-align: left;
        line-height: 1.45;
    }
    .form-actions {
        width: auto;
        display: grid;
        grid-template-columns: minmax(96px, .45fr) minmax(0, 1fr);
        gap: 10px;
    }
    .form-actions .btn {
        width: 100%;
        min-width: 0;
        min-height: 52px;
        padding: 0 12px;
        white-space: normal;
        line-height: 1.15;
    }
    .form-actions.is-final {
        grid-template-columns: minmax(96px, .45fr) minmax(0, 1fr);
    }
    .public-footer {
        flex-wrap: wrap;
        row-gap: 5px;
        text-align: center;
    }

    .success-page {
        min-height: 100svh;
        padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    }
    .success-shell { width: 100%; max-width: 640px; }
    .success-card {
        width: 100%;
        padding: clamp(24px, 7vw, 38px) clamp(18px, 6vw, 30px);
        border-radius: 24px;
    }
    .success-icon {
        width: 72px;
        height: 72px;
        border-radius: 22px;
        margin-bottom: 18px;
    }
    .success-card h1 {
        font-size: clamp(31px, 9vw, 44px);
        line-height: 1.06;
        overflow-wrap: anywhere;
    }
    .success-card > p {
        font-size: 14px;
        line-height: 1.6;
    }
    .success-summary {
        margin: 22px 0 10px;
        padding: 14px 16px;
    }
}

@media (max-width: 430px) {
    .event-panel { min-height: 245px; }
    .event-mini-card { padding: 12px; }
    .event-mini-card p { font-size: 13px; }
    .form-panel {
        padding-top: 23px;
        padding-bottom: 18px;
    }
    .form-header { grid-template-columns: minmax(0, 1fr) 48px; }
    .step-counter { width: 48px; height: 48px; border-radius: 14px; }
    .step-counter strong { font-size: 19px; }
    .step-counter span { font-size: 10px; }
    .progress-track { margin: 18px 0 24px; }
    .section-kicker { font-size: 10px; }
    .section-number { width: 32px; height: 32px; }
    .choice-card { min-height: 68px; }
    .choice-check { width: 32px; height: 32px; }
    .form-actions {
        margin-top: 24px;
        padding-top: 16px;
    }
    .btn { font-size: 14px; }
    .success-card { border-radius: 22px; }
}

@media (max-width: 360px) {
    .form-panel { padding-left: 12px; padding-right: 12px; }
    .form-header h2 { font-size: 28px; }
    .form-header p { font-size: 13px; }
    .wizard-step h3 { font-size: 30px; }
    .choice-card { padding: 12px; gap: 10px; }
    .choice-text { font-size: 14px; }
    .privacy-card { gap: 9px; padding: 12px; }
    .form-actions {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
        grid-template-columns: 92px minmax(0, 1fr);
    }
    .form-actions .btn { padding-left: 9px; padding-right: 9px; font-size: 13px; }
    .success-card h1 { font-size: 29px; }
    .success-summary span { font-size: 13px; }
}

@media (max-width: 330px) {
    .form-header { grid-template-columns: 1fr; }
    .step-counter {
        width: auto;
        height: 38px;
        padding: 0 12px;
        display: inline-flex;
        justify-self: start;
        gap: 2px;
        border-radius: 12px;
    }
    .form-actions {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 7px;
    }
    .form-actions .btn { font-size: 12px; }
}

@media (max-height: 520px) and (orientation: landscape) and (max-width: 950px) {
    .public-shell { display: block; }
    .event-panel { min-height: 210px; }
    .form-actions { position: static; }
    .success-page { place-items: start center; }
}


/* =========================================================
   Mobile hero expansion v1.2.1 - show more poster before form
   ========================================================= */
@media (max-width: 720px) {
    .public-shell {
        gap: 14px;
        padding: 0 0 18px;
    }

    .event-panel {
        min-height: auto;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 0 0 26px 26px;
        background: linear-gradient(180deg, rgba(4,14,29,.98), rgba(5,18,38,.97));
    }

    .event-poster-wrap {
        position: relative;
        inset: auto;
        width: 100%;
        aspect-ratio: 1 / 1;
        min-height: 360px;
    }

    .event-poster {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        display: block;
    }

    .event-poster-wrap::after {
        background: linear-gradient(to bottom, rgba(2,8,19,.02) 0%, rgba(2,8,19,.06) 42%, rgba(3,10,22,.22) 72%, rgba(3,10,22,.66) 100%);
    }

    .poster-glow {
        inset: auto 10% 14% 10%;
        height: 18%;
    }

    .event-mini-card {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        z-index: 2;
        margin: -18px 14px 14px;
        padding: 16px 18px;
        border-radius: 18px;
    }

    .event-mini-card h1 {
        font-size: clamp(24px, 7vw, 34px);
        line-height: 1.03;
    }

    .form-panel {
        margin-top: 0;
        border-radius: 24px;
        border-left: 1px solid var(--line);
        border-right: 1px solid var(--line);
    }
}

@media (max-width: 560px) {
    .public-shell {
        gap: 12px;
        padding-bottom: 18px;
    }

    .event-panel {
        border-top: 0;
        border-left: 0;
        border-right: 0;
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }

    .event-poster-wrap {
        aspect-ratio: 1 / 1;
        min-height: 320px;
    }

    .event-mini-card {
        margin: -16px 12px 12px;
        padding: 14px 16px;
    }

    .form-panel {
        margin-top: 0;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        padding-top: 22px;
    }
}

@media (max-width: 430px) {
    .event-poster-wrap {
        min-height: 290px;
    }

    .event-mini-card {
        margin: -14px 10px 10px;
        padding: 13px 14px;
        border-radius: 16px;
    }

    .event-mini-card h1 {
        font-size: 22px;
    }
}

@media (max-width: 360px) {
    .event-poster-wrap {
        min-height: 270px;
    }

    .event-mini-card {
        margin-left: 9px;
        margin-right: 9px;
        padding: 12px 13px;
    }

    .event-mini-card h1 {
        font-size: 21px;
    }
}
