/* ── Registration Form ── */
.reg-form {
    max-width: 720px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.reg-form.is-wide {
    max-width: 960px;
}

/* ── Registration tail screens (ervaring / verfijn) ──
   Phase 8hp — these now render via <x-form-shell variant="wizard">, so the
   functies grid sits inside .form-shell--wizard. Keep it at two columns on
   wider viewports so it doesn't feel cramped in the wizard card. */
@media (min-width: 640px) {
    .form-shell--wizard .ervaring-dept__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Step indicator ── */
.reg-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
    position: relative;
}
.reg-steps::before {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% / var(--reg-total-steps, 6));
    right: calc(50% / var(--reg-total-steps, 6));
    height: 2px;
    background: #dbdbdb;
    z-index: 0;
}
.reg-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}
.reg-step-dot .dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 2px solid #dbdbdb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: #b5b5b5;
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
}
.reg-step-dot.is-active .dot {
    background: var(--reg-accent, #3298dc);
    border-color: var(--reg-accent, #3298dc);
    color: #fff;
    box-shadow: 0 0 0 4px var(--reg-accent-light, rgba(50,152,220,0.15));
}
.reg-step-dot.is-done .dot {
    background: #23d160;
    border-color: #23d160;
    color: #fff;
}
.reg-step-dot .dot-label {
    margin-top: 6px;
    font-size: 0.7rem;
    color: #b5b5b5;
    text-align: center;
    letter-spacing: 0.02em;
    transition: color 0.3s;
    white-space: nowrap;
}
.reg-step-dot.is-active .dot-label {
    color: var(--reg-accent, #3298dc);
    font-weight: 600;
}
.reg-step-dot.is-done .dot-label {
    color: #23d160;
}
@media (max-width: 600px) {
    .reg-step-dot .dot-label { display: none; }
    .reg-step-dot .dot { width: 30px; height: 30px; font-size: 0.75rem; }
}

/* ── Content card ── */
.reg-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
    padding: 2.5rem;
}
@media (max-width: 600px) {
    .reg-card { padding: 1.5rem; }
}
@keyframes regFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Titles ── */
.reg-card .reg-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.reg-card .reg-subtitle {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ── Form field refinements ── */
.reg-card .field.is-horizontal {
    margin-bottom: 1.25rem;
}
.reg-card .input,
.reg-card .textarea,
.reg-card .select select {
    border-radius: 6px;
    border: 1.5px solid #e0e0e0;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 0.95rem;
}
.reg-card .input:focus,
.reg-card .textarea:focus,
.reg-card .select select:focus {
    border-color: var(--reg-accent, #3298dc);
    box-shadow: 0 0 0 3px var(--reg-accent-light, rgba(50,152,220,0.1));
}

/* ── Primary action button ── */
.reg-card .button.is-primary {
    border-radius: 6px;
    font-weight: 600;
    padding-left: 2rem;
    padding-right: 2rem;
    height: 2.75rem;
    font-size: 0.95rem;
    transition: none;
}
.reg-card .button.is-primary:hover:not([disabled]) {
    background-color: transparent;
    color: var(--reg-accent, #3298dc);
    border-color: var(--reg-accent, #3298dc);
}

/* ── Standalone wizard-shell pages ──
   Phase 8hp. The reused tail forms (ervaring / verfijn / mailings /
   subscribe) render <x-form-shell variant="wizard"> on their own routes,
   so they need the same centred wizard width the parent .reg-form gives
   the native steps. */
.form-shell--wizard {
    max-width: 720px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.form-shell--wizard.is-wide {
    max-width: 960px;
}
/* The onboarding membership / activation step renders a 4-column pricing
   table; 960px wraps the plans onto two rows, so give that step a wider
   shell so all four plans sit in one row on desktop. Still capped, and the
   legacy .pricing-table wraps below ~768px so mobile stacks as before. */
.form-shell--wizard.is-pricing {
    max-width: 1180px;
}

/* ── Universal <x-form-buttons> row (wizard variant) ──
   Phase 8hp. Sits inside the .reg-card so it inherits the primary-button
   styling above. Default: next button right-aligned. `.is-spread` (set
   when a back button is present) pushes Vorige left / Volgende right. */
.form-shell__actions--wizard {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 2rem;
    /* Top divider above the button row — matches the dashboard variant's
       .form-shell__actions--dashboard line (in the inline _form-styles). */
    padding-top: 1.25rem;
    border-top: 1px solid #ededed;
}
.form-shell__actions--wizard.is-spread {
    justify-content: space-between;
}

/* ── Type selection cards (step 3) ── */
.reg-type-card {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(.4,0,.2,1);
    background: #fafafa;
}
.reg-type-card:hover {
    border-color: var(--reg-accent, #3298dc);
    background: #f8fbff;
}
.reg-type-card.is-selected {
    border-color: var(--reg-accent, #3298dc);
    background: rgba(50,152,220,0.04);
    box-shadow: 0 0 0 3px var(--reg-accent-light, rgba(50,152,220,0.1));
}
.reg-type-card .type-title {
    font-weight: 600;
    color: #222;
    font-size: 1rem;
}
.reg-type-card .type-desc {
    color: #888;
    font-size: 0.85rem;
    margin-top: 2px;
}

/* ── Completion screen ── */
.reg-complete {
    text-align: center;
    padding: 3rem 2rem;
}
.reg-complete .check-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #23d160;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: regPop 0.5s cubic-bezier(.4,0,.2,1) both;
}
.reg-complete .check-icon i {
    color: #fff;
    font-size: 2rem;
}
@keyframes regPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ── Verification screen ── */
.reg-verify-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--reg-accent, #3298dc);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.reg-verify-icon i {
    color: #fff;
    font-size: 1.75rem;
}

/* ── Stacked radio/checkbox ── */
.radio.is-block,
.checkbox.is-block {
    display: block;
    margin-left: 0 !important;
}
.radio.is-block + .radio.is-block,
.checkbox.is-block + .checkbox.is-block {
    margin-top: 0.35rem;
}

/* ── Section headers in step 5/6 ── */
.reg-card .reg-section {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}
.reg-card .reg-section:first-child {
    margin-top: 0;
}

/* ── Subscription step (step 7) ── */
.reg-card .pricing-table {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.reg-card .pricing-plan {
    flex: 1 1 200px;
    max-width: 280px;
    min-width: 180px;
}
