/* ============================================================
   AFCA / VMNL Creative Hub — Responsive Stylesheet
   Mobile-first · Flexbox/Grid · Fluid units · 5 breakpoints
   xs: <576px | sm: 576px | md: 768px | lg: 992px | xl: 1200px
   ============================================================ */

/* ── Theme Tokens ─────────────────────────────────────────── */
:root {
    /* Brand Colors */
    --brand-red: #D8291E;
    --brand-red-dark: #E8402F;
    --orange: #EE6C2C;

    /* Marquee */
    --marquee-bg: #1A1A1A;
    --marquee-text: #FFFFFF;

    /* Progress Track */
    --progress-track-light: #E0DCD3;
    --progress-track-dark: #FFFFFF;

    /* Shared */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-full: 999px;
    --shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.15);
    --transition: all 0.2s ease;
    --header-h: 3.75rem;
}

/* ── Light Theme ──────────────────────────────────────────── */
.theme-light {
    --bg-page: #F4F1EC;
    --bg-surface: #FFFFFF;
    --bg-accent-section: #EE6C2C;
    --text-primary: #1A1A1A;
    --text-muted: #8A8A8A;
    --border-input: #E0DCD3;
    --pill-badge-bg: #1A1A1A;
    --pill-badge-text: #FFFFFF;
}

/* ── Dark Theme ───────────────────────────────────────────── */
.theme-dark {
    --bg-page: #161616;
    --bg-surface: #1E1E1E;
    --bg-accent-section: #EE6C2C;
    --text-primary: #FFFFFF;
    --text-muted: #A6A6A6;
    --border-input: #3A3A3A;
    --pill-badge-bg: #F4F1EC;
    --pill-badge-text: #1A1A1A;
    --brand-red: #E8402F;
    --progress-track-inactive: var(--progress-track-dark);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 100%; /* 16px base */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-page);
    transition: background-color 0.2s ease, color 0.2s ease;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Typography ───────────────────────────────────────────── */
.display-headline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    text-transform: lowercase;
}

/* ── Header ───────────────────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-page);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    min-height: var(--header-h);
}

.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    height: 2.25rem;
    width: auto;
}

/* Desktop nav */
.header-nav {
    display: none;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
}

.header-register-btn {
    background-color: var(--brand-red);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    white-space: nowrap;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
}

.header-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 1.25rem rgba(216, 41, 30, 0.3);
}

/* ── Hamburger & Mobile Nav ───────────────────────────────── */
.hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    width: 3rem;
    height: 3rem;
    min-width: 48px;
    min-height: 48px;
    margin-left: auto;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.hamburger:hover {
    background-color: var(--border-input);
}

.hamburger .bar {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger .bar + .bar { margin-top: 5px; }

.hamburger[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}
.hamburger[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-page);
    z-index: 90;
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
    animation: slideDown 0.25s ease-out;
    overflow-y: auto;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    padding: 1rem;
    min-height: 48px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-input);
    transition: var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a:focus {
    border-color: var(--brand-red);
    background: rgba(216, 41, 30, 0.05);
}

.mobile-nav .mobile-nav-register {
    background: var(--brand-red);
    color: #fff;
    border-color: var(--brand-red);
    justify-content: center;
    font-size: 1.0625rem;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-0.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Theme Toggle ─────────────────────────────────────────── */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-full);
    padding: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background-color: var(--border-input);
}

.theme-toggle-icon {
    font-size: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.theme-toggle-icon.active {
    background-color: var(--brand-red);
    color: white;
}

/* ── Marquee ──────────────────────────────────────────────── */
.marquee-container {
    background-color: var(--marquee-bg);
    color: var(--marquee-text);
    overflow: hidden;
    padding: 0.75rem 0;
    position: relative;
    transform: rotate(-1deg);
    margin-top: 0.625rem;
    margin-bottom: 1.25rem;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-content span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(0.625rem, 2.5vw, 0.875rem);
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    margin-right: 2.5rem;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.marquee-bottom {
    transform: rotate(1deg);
    margin-top: -1.875rem;
    margin-bottom: 2.5rem;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    background-color: var(--bg-page);
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 42rem;
}

.hero-eyebrow {
    background-color: var(--pill-badge-bg);
    color: var(--pill-badge-text);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: clamp(0.625rem, 2.5vw, 0.75rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(2.75rem, 10vw, 6.25rem);
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    position: relative;
    display: block;
}

.hero-headline span {
    display: block;
}

.hero-sparkle {
    position: absolute;
    color: var(--brand-red);
    font-size: 1.25rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(1) rotate(0deg); }
    50%      { opacity: 1; transform: scale(1.2) rotate(15deg); }
}

.hero-subhead {
    font-size: clamp(0.875rem, 3vw, 1.125rem);
    color: var(--text-muted);
    max-width: 35rem;
    margin: 0 auto 1.5rem;
    opacity: 0.85;
    padding: 0 0.5rem;
}

/* ── Workshop Pills ───────────────────────────────────────── */
.workshop-pills {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9375rem;
    margin-top: 1.25rem;
}

.workshop-pill {
    background-color: var(--orange);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(0.75rem, 3vw, 0.9375rem);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transform: rotate(-3deg);
    box-shadow: 0.25rem 0.25rem 0 rgba(26, 26, 26, 0.2);
    border: 2px solid var(--pill-badge-bg);
    white-space: nowrap;
}

.workshop-pill:nth-child(2) {
    background-color: var(--brand-red);
    transform: rotate(2deg);
}

.workshop-pill::before {
    content: "\2731";
    font-size: 1rem;
}

/* ── Illustrations ────────────────────────────────────────── */
.illustrations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.illustration {
    position: absolute;
    width: clamp(3rem, 12vw, 7.5rem);
    height: auto;
    opacity: 0.35;
}

.illustration--left {
    left: 0;
    top: 30%;
}

.illustration--right {
    right: 0;
    top: 40%;
}

/* ── Register Ribbon ──────────────────────────────────────── */
.register-ribbon {
    background-color: var(--bg-page);
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    margin-top: -2.5rem;
    position: relative;
    z-index: 10;
}

.ribbon-banner {
    background-color: #FFFFFF;
    color: var(--brand-red);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.125rem, 5vw, 1.5rem);
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid var(--pill-badge-bg);
    transform: skew(-8deg);
}

/* ── Orange Section & Form ────────────────────────────────── */
.orange-section {
    background-color: var(--bg-accent-section);
    padding: 2rem 1rem;
    margin-top: -1.25rem;
}

.form-wrapper {
    max-width: 43.75rem;
    margin: -3.75rem auto 0;
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 20;
    animation: fadeIn 0.6s ease-out;
}

/* Progress bar */
.progress-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.progress-segment {
    flex: 1;
    height: 0.375rem;
    background-color: var(--progress-track-light);
    border-radius: 0.1875rem;
}

.theme-dark .progress-segment {
    background-color: var(--progress-track-dark);
}

.progress-segment--active {
    background-color: var(--brand-red);
}

/* Step header */
.form-step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.step-badge {
    width: 3rem;
    height: 3rem;
    min-width: 48px;
    min-height: 48px;
    background-color: var(--brand-red);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.form-step-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 4vw, 1.25rem);
    color: var(--text-primary);
}

.form-step-helper {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ── Form Fields ──────────────────────────────────────────── */
.field {
    margin-bottom: 1.5rem;
}

.field-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.field-label .required {
    color: var(--brand-red);
    margin-left: 0.25rem;
}

.field-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem; /* 16px prevents iOS zoom */
    transition: var(--transition);
    min-height: 48px;
    -webkit-appearance: none;
    appearance: none;
}

.input:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(216, 41, 30, 0.15);
}

/* ── Option Cards ─────────────────────────────────────────── */
.option-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.option-card {
    position: relative;
    cursor: pointer;
}

.option-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-card-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 48px;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: var(--transition);
    cursor: pointer;
}

.option-card input:checked + .option-card-label {
    border-color: var(--brand-red);
    background-color: rgba(216, 41, 30, 0.05);
}

.option-card input:checked + .option-card-label::after {
    content: "\2713";
    display: block;
    color: var(--brand-red);
    font-weight: bold;
    margin-top: 0.5rem;
}

.option-card input:focus-visible + .option-card-label {
    box-shadow: 0 0 0 3px rgba(216, 41, 30, 0.25);
}

/* ── Track Cards ──────────────────────────────────────────── */
.track-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.track-card {
    position: relative;
    cursor: pointer;
}

.track-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.track-card-label {
    display: block;
    padding: 1.25rem;
    min-height: 48px;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    background-color: var(--bg-surface);
    transition: var(--transition);
    cursor: pointer;
}

.track-card input:checked + .track-card-label {
    border-color: var(--brand-red);
    background: linear-gradient(135deg, rgba(216, 41, 30, 0.1), transparent);
}

.track-card input:focus-visible + .track-card-label {
    box-shadow: 0 0 0 3px rgba(216, 41, 30, 0.25);
}

.track-card-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.track-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Chips ────────────────────────────────────────────────── */
.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    min-height: 48px;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    -webkit-user-select: none;
    user-select: none;
}

.chip input {
    display: none;
}

.chip:hover {
    border-color: var(--brand-red);
}

.chip.chip--selected {
    border-color: var(--brand-red);
    background-color: rgba(216, 41, 30, 0.08);
    color: var(--brand-red);
}

.chip.chip--selected::before {
    content: "\2715";
    font-size: 0.75rem;
}

/* ── Form Steps ───────────────────────────────────────────── */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.form-step--active {
    display: block;
}

/* ── Consent ──────────────────────────────────────────────── */
.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    transition: var(--transition);
    min-height: 48px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.consent-row:hover {
    border-color: var(--brand-red);
    background-color: rgba(216, 41, 30, 0.03);
}

.consent-row input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    min-width: 48px;
    min-height: 48px;
    accent-color: var(--brand-red);
    flex-shrink: 0;
    cursor: pointer;
}

/* ── Buttons ──────────────────────────────────────────────── */
.submit-btn {
    width: 100%;
    padding: 1rem;
    min-height: 48px;
    background-color: var(--brand-red);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    -webkit-tap-highlight-color: transparent;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 1.25rem rgba(216, 41, 30, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn--secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-input);
}

.submit-btn--secondary:hover {
    background-color: var(--border-input);
    transform: none;
    box-shadow: none;
}

.submit-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.form-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.form-nav .submit-btn {
    flex: 1;
}

/* ── Feedback ─────────────────────────────────────────────── */
.form-feedback {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 1rem;
    display: none;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
    background-color: var(--bg-page);
    padding: 1.5rem 1rem;
    margin-top: 2.5rem;
}

.footer-content {
    max-width: 43.75rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
}

.footer-logo img {
    height: 2.5rem;
    width: auto;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(1.25rem); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS — Mobile-first
   ============================================================ */

/* ── SM: ≥576px (large phones, landscape) ─────────────────── */
@media (min-width: 576px) {
    .header {
        padding: 0.75rem 1.5rem;
    }

    .hero {
        padding: 2.5rem 1.5rem;
    }

    .option-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .option-grid--challenge {
        grid-template-columns: repeat(2, 1fr);
    }

    .track-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-wrapper {
        padding: 2rem;
    }

    .form-nav {
        flex-direction: row;
    }

    .orange-section {
        padding: 2.5rem 1.5rem;
    }

    .workshop-pills {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .ribbon-banner {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
        padding: 1.25rem 3rem;
    }
}

/* ── MD: ≥768px (tablets) ─────────────────────────────────── */
@media (min-width: 768px) {
    .header {
        padding: 1rem 2rem;
    }

    /* Show desktop nav, hide hamburger & mobile nav */
    .header-nav {
        display: flex;
    }

    .hamburger {
        display: none;
    }

    .mobile-nav {
        display: none !important;
    }

    .hero {
        padding: 3rem 2rem;
        min-height: 31.25rem;
    }

    .option-grid {
        grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr));
    }

    .option-grid--challenge {
        grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr));
    }

    .option-grid--two-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .track-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-wrapper {
        padding: 2.5rem;
        margin-top: -3.75rem;
    }

    .orange-section {
        padding: 2.5rem 2rem;
    }

    .register-ribbon {
        padding: 2.5rem 2rem;
    }

    .marquee-bottom {
        margin-top: -1.875rem;
        margin-bottom: 2.5rem;
    }

    .illustration {
        opacity: 0.5;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ── LG: ≥992px (small desktops) ──────────────────────────── */
@media (min-width: 992px) {
    .header {
        padding: 1rem 3rem;
        gap: 1.5rem;
    }

    .header-logo img {
        height: 2.5rem;
    }

    .hero {
        padding: 4rem 3rem;
        min-height: 37.5rem;
    }

    .option-grid {
        grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    }

    .form-wrapper {
        padding: 3rem;
        max-width: 43.75rem;
    }

    .orange-section {
        padding: 3rem;
    }

    .illustration {
        opacity: 0.6;
    }

    .workshop-pill {
        font-size: 0.9375rem;
        padding: 0.875rem 1.75rem;
    }
}

/* ── XL: ≥1200px (large desktops) ─────────────────────────── */
@media (min-width: 1200px) {
    .header {
        padding: 1rem 4rem;
    }

    .hero {
        padding: 5rem 4rem;
        min-height: 43.75rem;
    }

    .hero-content {
        max-width: 48rem;
    }

    .option-grid {
        grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    }

    .form-wrapper {
        padding: 3rem;
    }

    .orange-section {
        padding: 3rem 4rem;
    }

    .register-ribbon {
        padding: 3rem 4rem;
    }

    .illustration {
        width: clamp(5rem, 10vw, 9rem);
        opacity: 0.7;
    }
}

/* ── Registration Success Confirmation ───────────────────── */
.confirmation-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.confirmation-overlay[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.confirmation-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.confirmation-card {
    position: relative;
    background: var(--bg-surface);
    border-radius: 1.5rem;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    max-width: 28rem;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(1rem);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-input);
}

.confirmation-overlay[aria-hidden="false"] .confirmation-card {
    transform: scale(1) translateY(0);
}

.confirmation-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.confirmation-close:hover,
.confirmation-close:focus-visible {
    background: var(--bg-page);
    color: var(--text-primary);
}

.confirmation-close:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

.confirmation-icon {
    margin: 0 auto 1rem;
    width: 80px;
    height: 80px;
    color: #22c55e;
}

.confirmation-circle {
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
}

.confirmation-overlay[aria-hidden="false"] .confirmation-circle {
    animation: confirmationCircleDraw 0.6s ease forwards 0.2s;
}

.confirmation-checkmark {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
}

.confirmation-overlay[aria-hidden="false"] .confirmation-checkmark {
    animation: confirmationCheckDraw 0.4s ease forwards 0.6s;
}

@keyframes confirmationCircleDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes confirmationCheckDraw {
    to { stroke-dashoffset: 0; }
}

.confirmation-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: #22c55e;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.confirmation-desc {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.confirmation-details {
    background: var(--bg-page);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-input);
}

.confirmation-timestamp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.confirmation-timestamp svg {
    flex-shrink: 0;
    color: #22c55e;
}

.confirmation-id {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    letter-spacing: 0.05em;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
}

.confirmation-dismiss {
    min-width: 140px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .confirmation-overlay,
    .confirmation-card,
    .confirmation-close {
        transition: none;
    }
    .confirmation-circle,
    .confirmation-checkmark {
        animation: none !important;
        stroke-dashoffset: 0;
    }
}

/* High contrast mode */
@media (forced-colors: active) {
    .confirmation-card {
        border: 2px solid ButtonText;
    }
    .confirmation-title {
        color: ButtonText;
    }
    .confirmation-icon {
        color: ButtonText;
    }
}

/* Confirmation responsive */
@media (max-width: 575.98px) {
    .confirmation-overlay {
        padding: 0.5rem;
    }
    .confirmation-card {
        padding: 1.25rem;
        border-radius: 1rem;
    }
    .confirmation-icon {
        width: 64px;
        height: 64px;
    }
    .confirmation-icon svg {
        width: 64px;
        height: 64px;
    }
    .confirmation-dismiss {
        width: 100%;
    }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
    .header, .marquee-container, .register-ribbon,
    .illustrations, .theme-toggle, .hamburger, .mobile-nav,
    .confirmation-overlay {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .form-wrapper {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
