/**
 * Registration multi-step wizard — ND Summit
 * Typography matches public/web/assets/css/custom.css (Bebas Neue / Space Grotesk / DM Mono)
 */
:root {
    --reg-navy: #0a1628;
    --reg-navy-soft: #162845;
    --reg-gold: #95c13d;
    --reg-gold-pale: rgba(149, 193, 61, 0.12);
    --reg-slate: #64748b;
    --reg-border: #e2e8f0;
    --reg-success: #22c55e;

    /* Same tokens as custom.css */
    --font-display: "Bebas Neue", sans-serif;
    --font-body: "Space Grotesk", sans-serif;
    --font-mono: "DM Mono", monospace;
}

.event-title {
    text-transform: capitalize;
}

.reg-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: #f4f6fb;
    font-family: var(--font-body);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.reg-sidebar {
    width: min(380px, 36vw);
    flex-shrink: 0;
    background: var(--reg-navy);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 40px;
}

.reg-sidebar__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
}

.reg-sidebar__content {
    position: relative;
    z-index: 1;
}

.reg-sidebar__logo img {
    height: 100px;
    width: auto;
}

.reg-sidebar__tagline {
    margin-top: 48px;
    color: #fff;
}

.reg-sidebar__tagline h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.15;
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.reg-sidebar__tagline p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 14px;
    line-height: 1.55;
}

.reg-sidebar__footer {
    position: relative;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
}

.reg-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-width: 0;
}

.reg-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: #fff;
    border-bottom: 1px solid #eef0f5;
    flex-shrink: 0;
}

.reg-topbar__logo {
    display: none;
}

.reg-topbar__logo img {
    height: 36px;
}

.reg-topbar__back {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--reg-slate);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.reg-topbar__back:hover {
    color: var(--reg-navy);
}

/* Step header + progress */
.reg-wizard-header {
    padding: 20px 40px 0;
}

.reg-wizard-meta {
    margin-bottom: 16px;
}

.reg-wizard-meta__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--reg-gold);
    margin-bottom: 6px;
}

.reg-wizard-meta__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--reg-navy);
    letter-spacing: 0.03em;
    line-height: 1.1;
    text-transform: uppercase;
}

.reg-wizard-meta__sub {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--reg-slate);
    margin-top: 6px;
    line-height: 1.45;
    text-transform: none;
}

.reg-wizard-progress-wrap {
    height: 4px;
    background: var(--reg-border);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 20px;
}

.reg-wizard-progress-fill {
    height: 100%;
    width: 20%;
    /* initial; JS updates on load */
    background: linear-gradient(90deg, var(--reg-gold), var(--reg-navy-soft));
    border-radius: 999px;
    transition: width 0.35s ease;
}

/* Step indicator */
.reg-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 0 40px;
    margin-bottom: 8px;
}

.reg-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
    text-align: center;
}

.reg-step:last-child {
    flex: 0 0 auto;
}

.reg-step__row {
    display: flex;
    align-items: center;
    width: 100%;
}

.reg-step__dot {
    font-family: var(--font-mono);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--reg-border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    flex-shrink: 0;
    transition:
        border-color 0.25s,
        background 0.25s,
        color 0.25s;
}

.reg-step.active .reg-step__dot {
    border-color: var(--reg-navy);
    background: var(--reg-navy);
    color: #fff;
    box-shadow: 0 0 0 4px var(--reg-gold-pale);
}

.reg-step.done .reg-step__dot {
    border-color: var(--reg-success);
    background: var(--reg-success);
    color: #fff;
}

.reg-step__line {
    flex: 1;
    height: 2px;
    background: var(--reg-border);
    margin: 0 4px;
    align-self: center;
    margin-top: -24px;
    transition: background 0.25s;
}

.reg-step.done+.reg-step__line,
.reg-step__line.done {
    background: var(--reg-success);
}

.reg-step__label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--reg-slate);
    margin-top: 8px;
    line-height: 1.2;
    padding: 0 2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reg-step.active .reg-step__label {
    color: var(--reg-navy);
}

.reg-step.done .reg-step__label {
    color: #15803d;
}

/* Alerts */
.reg-alerts {
    padding: 16px 40px 0;
}

.reg-body {
    padding: 24px 40px 56px;
    flex: 1;
    /* max-width: 920px; */
}

.reg-body .small,
.reg-body small {
    font-family: var(--font-body);
    line-height: 1.45;
}

.reg-step-panel {
    display: none;
    animation: regFadeIn 0.35s ease;
}

.reg-step-panel.active {
    display: block;
}

@keyframes regFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reg-section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--reg-navy);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    line-height: 1.15;
    text-transform: uppercase;
}

.reg-section-sub {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--reg-slate);
    margin-bottom: 28px;
    line-height: 1.55;
}

.reg-field {
    margin-bottom: 20px;
}

.reg-label {
    font-family: var(--font-mono);
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #374151;
    margin-bottom: 8px;
}

.reg-label span.req {
    color: #ef4444;
    margin-left: 2px;
}

.reg-input,
.reg-select,
.reg-textarea {
    font-family: var(--font-body);
    width: 100%;
    padding: 11px 14px !important;
    font-size: 0.95rem;
    color: #111827;
    background: #fff;
    border: 1.5px solid var(--reg-border);
    border-radius: 8px;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.reg-input:focus,
.reg-select:focus,
.reg-textarea:focus {
    border-color: var(--reg-navy);
    box-shadow: 0 0 0 3px rgba(10, 22, 40, 0.08);
}

/*
 * reset.css (lines ~522–571) sets input[type=*]/textarea to color:#9aa2b1 — more specific than .reg-input alone,
 * so filled values looked faded. Scope with .reg-page + element + class to win.
 */
.reg-page input.reg-input,
.reg-page textarea.reg-textarea,
.reg-page select.reg-select {
    color: #111827;
    background: #fff;
}

.reg-page input.reg-input:focus,
.reg-page textarea.reg-textarea:focus,
.reg-page select.reg-select:focus {
    color: #111827;
}

.reg-page input.reg-input:-webkit-autofill,
.reg-page input.reg-input:-webkit-autofill:hover,
.reg-page input.reg-input:-webkit-autofill:focus,
.reg-page input.reg-input:-webkit-autofill:active {
    -webkit-text-fill-color: #111827;
    box-shadow: 0 0 0 1000px #fff inset;
    transition: background-color 99999s ease-out 0s;
}

.reg-textarea {
    resize: vertical;
    min-height: 100px;
}

.reg-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reg-options--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.reg-option {
    font-family: var(--font-body);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid var(--reg-border);
    border-radius: 8px;
    cursor: pointer;
    transition:
        border-color 0.2s,
        background 0.2s,
        box-shadow 0.2s;
    font-size: 0.875rem;
    color: #374151;
    background: #fff;
    margin-bottom: 0;
}

.reg-option:hover {
    border-color: rgba(149, 193, 61, 0.45);
    background: #fafafa;
}

.reg-option input[type="radio"],
.reg-option input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--reg-navy);
    flex-shrink: 0;
    margin-top: 2px;
}

.reg-option.selected {
    border-color: var(--reg-gold);
    background: var(--reg-gold-pale);
    box-shadow: 0 0 0 1px rgba(149, 193, 61, 0.25);
}

.reg-option-label {
    font-family: var(--font-body);
    line-height: 1.4;
}

.reg-consent {
    display: flex;
    gap: 12px;
    padding: 18px;
    background: #f8fafc;
    border: 1.5px solid var(--reg-border);
    border-radius: 10px;
    align-items: flex-start;
}

.reg-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--reg-navy);
    margin-top: 3px;
    flex-shrink: 0;
}

.reg-consent label {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.55;
    cursor: pointer;
}

.reg-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    gap: 12px;
    flex-wrap: wrap;
}

.reg-nav--end {
    justify-content: flex-end;
}

.reg-btn {
    font-family: var(--font-body);
    padding: 12px 26px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reg-btn--primary {
    background: var(--reg-navy);
    color: #fff;
}

.reg-btn--primary:hover:not(:disabled) {
    background: var(--reg-navy-soft);
}

.reg-btn--primary:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.reg-btn--ghost {
    background: transparent;
    color: var(--reg-slate);
    border: 1.5px solid var(--reg-border);
}

.reg-btn--ghost:hover {
    border-color: var(--reg-navy);
    color: var(--reg-navy);
}

.reg-alert {
    font-family: var(--font-body);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.reg-alert--success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.reg-alert--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.reg-alert--info {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.reg-inline-error {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #b91c1c;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: 6px;
    border: 1px solid #fecaca;
    display: none;
}

.reg-inline-error.show {
    display: block;
}

/* Ticket category cards (match homepage: /{title}.svg in public) */
.ticket-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 14px;
    margin-top: 8px;
}

.ticket-cat-option {
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 18px 14px 16px;
    min-height: 0;
    border: 1.5px solid var(--reg-border);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
    background: #fff;
    text-align: center;
    transition:
        border-color 0.2s,
        background 0.2s,
        box-shadow 0.2s;
    line-height: 1.35;
}

.ticket-cat-option__img {
    width: 100%;
    max-width: 112px;
    height: 112px;
    object-fit: contain;
    flex-shrink: 0;
    pointer-events: none;
}

.ticket-cat-option__label {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--reg-navy);
    pointer-events: none;
}

.ticket-cat-option:hover,
.ticket-cat-option.selected {
    border-color: var(--reg-gold);
    background: var(--reg-gold-pale);
    box-shadow: 0 4px 14px rgba(10, 22, 40, 0.06);
}

.ticket-cat-option.selected .ticket-cat-option__label {
    color: var(--reg-navy);
}

.ticket-type-card {
    font-family: var(--font-body);
    padding: 14px 18px;
    border: 1.5px solid var(--reg-border);
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: all 0.2s;
}

.ticket-type-card:hover,
.ticket-type-card.selected {
    border-color: var(--reg-navy);
    background: var(--reg-gold-pale);
}

.ticket-features ul {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.ticket-features li {
    font-family: var(--font-body);
    padding: 8px 0;
    font-size: 0.85rem;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
}

.ticket-features li:last-child {
    border-bottom: none;
}

.reg-loading {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--reg-slate);
    padding: 8px 0;
}

@media (max-width: 991px) {
    .reg-sidebar {
        display: none;
    }

    .reg-topbar__logo {
        display: block;
    }

    .reg-body,
    .reg-alerts,
    .reg-wizard-header,
    .reg-steps {
        padding-left: 20px;
        padding-right: 20px;
    }

    .reg-step__label {
        font-size: 0.58rem;
    }

    .reg-options--grid {
        grid-template-columns: 1fr;
    }

    .reg-wizard-meta__title {
        font-size: 1.15rem;
    }
}

@media (max-width: 575px) {
    .reg-step__dot {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }

    .reg-step__line {
        margin-top: -20px;
    }

    .reg-btn {
        width: 100%;
    }

    .reg-nav {
        flex-direction: column-reverse;
    }

    .reg-nav .reg-btn--ghost,
    .reg-nav .reg-btn--primary {
        width: 100%;
    }
}

.ticket-features {
    text-transform: capitalize;
}