* { box-sizing: border-box; }

:root {
    --navy: #0f2747;
    --blue: #1d4ed8;
    --light: #f3f6fa;
    --border: #dbe2ea;
    --text: #172033;
    --muted: #64748b;
    --success: #166534;
    --success-bg: #dcfce7;
    --error: #991b1b;
    --error-bg: #fee2e2;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--light);
    color: var(--text);
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

.logo {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
}

.brand-title {
    font-weight: 800;
    font-size: 18px;
}

.brand-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-top: 3px;
}

.nav {
    display: flex;
    gap: 18px;
}

.nav a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.page {
    padding: 42px 0 70px;
}

.hero {
    background: white;
    border-radius: 18px;
    padding: 42px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 36px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(15, 39, 71, .07);
}

.eyebrow {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

h1 {
    margin: 10px 0;
    font-size: clamp(30px, 4vw, 48px);
    color: var(--navy);
}

h2 {
    color: var(--navy);
}

p {
    line-height: 1.6;
}

.event-meta {
    margin-top: 22px;
}

.hero-card {
    background: #eef2f7;
    border-radius: 14px;
    padding: 12px;
    text-align: center;
}

.hero-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
}

.hero-card small {
    color: var(--muted);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
}

.btn.primary {
    background: var(--blue);
    color: white;
}

.btn.secondary {
    background: white;
    color: var(--navy);
    border-color: var(--border);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.card, .form-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 8px 22px rgba(15, 39, 71, .05);
}

.form-card {
    max-width: 1000px;
    margin: 0 auto;
}

.form-card.narrow {
    max-width: 700px;
}

.section-heading {
    margin-bottom: 26px;
}

.section-heading h1 {
    font-size: 34px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-grid label, .retrieve-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
}

.full-width {
    grid-column: 1 / -1;
}

input, select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    background: white;
    color: var(--text);
    font: inherit;
}

input:focus, select:focus {
    outline: 3px solid rgba(29, 78, 216, .12);
    border-color: var(--blue);
}

.mobile-row {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 8px;
}

.required {
    color: #dc2626;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.alert {
    border-radius: 10px;
    padding: 14px 16px;
    margin: 18px 0;
}

.alert ul {
    margin-bottom: 0;
}

.alert.error {
    background: var(--error-bg);
    color: var(--error);
}

.alert.success {
    background: var(--success-bg);
    color: var(--success);
}

.alert.info {
    background: #e0f2fe;
    color: #075985;
}

.success-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--success-bg);
    color: var(--success);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 22px;
}

.success-banner h1 {
    color: var(--success);
    font-size: 30px;
    margin: 0;
}

.check {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    font-size: 26px;
    font-weight: 900;
}

.confirmation-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 22px;
}

.details {
    display: grid;
    gap: 0;
}

.details > div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid #edf1f5;
}

.details span {
    color: var(--muted);
}

.reg-number {
    color: var(--blue);
    font-size: 20px;
}

.qr-card {
    text-align: center;
}

.qr-image {
    width: min(280px, 100%);
    height: auto;
    background: white;
    border: 1px solid var(--border);
    padding: 8px;
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

.retrieve-form {
    display: grid;
    gap: 16px;
}

.site-footer {
    background: var(--navy);
    color: white;
    padding: 28px 0;
}

.site-footer .muted {
    color: #cbd5e1;
}

@media (max-width: 800px) {
    .hero,
    .confirmation-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .header-inner {
        align-items: flex-start;
        padding: 12px 0;
        flex-direction: column;
    }

    .nav {
        width: 100%;
        flex-wrap: wrap;
    }

    .hero {
        padding: 26px;
    }
}

@media print {
    .site-header, .site-footer, .actions, .nav {
        display: none !important;
    }

    body {
        background: white;
    }

    .page {
        padding: 0;
    }

    .card {
        box-shadow: none;
    }
}
.header-retrieve-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    background: #f58220;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: .2s ease;
}

.header-retrieve-btn:hover {
    background: #d9680d;
    transform: translateY(-1px);
}
