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

:root {
    --bg: #0f0f0f;
    --surface: #1a1a1a;
    --surface-2: #222222;
    --border: #2a2a2a;
    --text-primary: #ffffff;
    --text-muted: #888888;
    --accent: #4f8ef7;
    --accent-hover: #3a7de8;
    --error-bg: #2a1212;
    --error-border: #7a2020;
    --error-text: #f87171;
    --success-color: #4ade80;
}

body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Countdown ─────────────────────────────────────────────── */

.countdown-wrapper {
    text-align: center;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 1200px;
}

.event-title {
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.countdown-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.countdown-grid.hidden {
    display: none;
}

.card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.75rem 2rem;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s ease;
}

.card:hover {
    border-color: var(--accent);
}

.digit {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1;
}

.label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ─── Product strip ─────────────────────────────────────────── */

.product-strip {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 2.5rem auto 0;
    max-width: 720px;
    padding: 0 1rem;
}

.product-strip picture {
    flex: 1;
    min-width: 0;
    max-width: 220px;
}

.product-strip img {
    aspect-ratio: 3 / 4;
    border-radius: 0.6rem;
    display: block;
    object-fit: cover;
    opacity: 0.75;
    transition: opacity 0.25s ease, transform 0.25s ease;
    width: 100%;
}

.product-strip img:hover {
    opacity: 1;
    transform: scale(1.02);
}

/* ─── Registration section ───────────────────────────────────── */

.registration {
    display: none;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: left;
}

.registration.visible {
    display: block;
}

/* Two-column layout: instructions left, form right */

.reg-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    padding: 1rem 0 3rem;
}

/* ─── Left column: instructions ─────────────────────────────── */

.reg-instructions {
    position: sticky;
    top: 2rem;
}

.req-block {
    margin-top: 2rem;
}

.req-heading {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.req-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 0;
}

.req-list li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.req-icon {
    font-size: 1.3rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.req-list li div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.req-list li strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.req-list li span {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.req-list li span a,
.req-note-list a {
    color: var(--accent);
    text-decoration: none;
}

.req-list li span a:hover,
.req-note-list a:hover {
    text-decoration: underline;
}

.req-notes {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.req-note-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.req-note-list li {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.5;
    padding-left: 1rem;
    position: relative;
}

.req-note-list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--border);
}

.req-note-list li strong {
    color: var(--text-primary);
}

/* ─── Lightbox ───────────────────────────────────────────────── */

.lightbox {
    align-items: center;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 1000;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    border-radius: 0.5rem;
    max-height: 92vh;
    max-width: 92vw;
    object-fit: contain;
    width: auto;
}

.lightbox-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    padding: 0.5rem 0.75rem;
    position: fixed;
    right: 1rem;
    top: 1rem;
    transition: color 0.15s ease;
}

.lightbox-close:hover {
    color: #fff;
}

/* ─── Right column: form ─────────────────────────────────────── */

/* Closed */

.reg-closed {
    text-align: center;
    padding: 2.5rem 1rem;
}

.reg-closed-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    opacity: 0.5;
}

.reg-closed h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.reg-closed p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Success */

.reg-success {
    text-align: center;
    padding: 2.5rem 1rem;
}

.reg-success-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--success-color);
    color: #000;
    font-size: 1.75rem;
    line-height: 3.5rem;
    margin: 0 auto 1.25rem;
}

.reg-success h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.reg-success p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form header */

.reg-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.reg-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

/* Errors */

.form-errors {
    background-color: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
}

.form-errors p {
    color: var(--error-text);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Form layout */

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

input,
select {
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.65rem 0.85rem;
    width: 100%;
    transition: border-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

select {
    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 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.2rem;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
}

input::placeholder {
    color: #555;
}

/* Submit button */

.btn-submit {
    background-color: var(--accent);
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-top: 0.5rem;
    padding: 0.8rem;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--accent-hover);
}

.btn-submit:active {
    transform: scale(0.99);
}

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 750px) {
    .registration {
        padding: 0 1rem;
    }

    .reg-columns {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-bottom: 2rem;
    }

    .reg-instructions {
        position: static;
        order: 2; /* instructions below form on mobile */
    }

    .reg-form-col {
        order: 1; /* form on top on mobile */
    }
}

@media (max-width: 520px) {
    .card {
        min-width: 80px;
        padding: 1.25rem 1rem;
    }

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