/* ─────────────────────────────────────────────────────────────────────────────
   EA Registration Wizard — Styles
   Brand: #1a56a0 blue, #f4f6f8 gray, clean card UI
   ───────────────────────────────────────────────────────────────────────────── */

:root {
    --wiz-blue:      #1a56a0;
    --wiz-blue-dk:   #0f3a70;
    --wiz-blue-lt:   #e8f0fb;
    --wiz-green:     #1d8348;
    --wiz-gray:      #f4f6f8;
    --wiz-border:    #dde1e7;
    --wiz-text:      #1a1a2e;
    --wiz-muted:     #6b7280;
    --wiz-error-bg:  #fef2f2;
    --wiz-error-bd:  #fca5a5;
    --wiz-error-txt: #b91c1c;
    --wiz-radius:    12px;
    --wiz-radius-sm: 8px;
    --wiz-shadow:    0 4px 24px rgba(26,86,160,.10);
    --wiz-max-w:     680px;
}

/* ── Wrapper ── */
.ea-wiz-wrap {
    max-width: var(--wiz-max-w);
    margin: 40px auto;
    padding: 0 16px 60px;
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    color: var(--wiz-text);
}

/* ── Header ── */
.ea-wiz-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 28px;
}
.ea-wiz-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--wiz-blue);
    letter-spacing: -.5px;
}
.ea-wiz-tagline {
    font-size: .9rem;
    color: var(--wiz-muted);
}
.ea-wiz-already-in {
    padding: 24px;
    background: var(--wiz-gray);
    border-radius: var(--wiz-radius);
    color: var(--wiz-muted);
}

/* ── Progress bar ── */
.ea-wiz-progress {
    margin-bottom: 36px;
    position: relative;
}
.ea-wiz-progress-bar {
    height: 4px;
    background: var(--wiz-blue);
    border-radius: 2px;
    transition: width .4s ease;
    margin-bottom: 16px;
}
.ea-wiz-steps {
    display: flex;
    gap: 0;
    justify-content: space-between;
}
.ea-wiz-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}
.ea-wiz-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    border: 2px solid var(--wiz-border);
    background: #fff;
    color: var(--wiz-muted);
    transition: all .2s;
}
.ea-wiz-step-dot.done   .ea-wiz-step-num { background: var(--wiz-green); border-color: var(--wiz-green); color: #fff; }
.ea-wiz-step-dot.active .ea-wiz-step-num { background: var(--wiz-blue);  border-color: var(--wiz-blue);  color: #fff; }
.ea-wiz-step-label {
    font-size: .72rem;
    color: var(--wiz-muted);
    text-align: center;
    white-space: nowrap;
}
.ea-wiz-step-dot.active .ea-wiz-step-label { color: var(--wiz-blue); font-weight: 600; }
.ea-wiz-step-dot.done   .ea-wiz-step-label { color: var(--wiz-green); }

/* ── Error box ── */
.ea-wiz-errors {
    background: var(--wiz-error-bg);
    border: 1px solid var(--wiz-error-bd);
    border-radius: var(--wiz-radius-sm);
    padding: 14px 18px;
    margin-bottom: 24px;
}
.ea-wiz-errors p {
    margin: 4px 0;
    color: var(--wiz-error-txt);
    font-size: .9rem;
}

/* ── Step title ── */
.ea-wiz-step-title {
    margin-bottom: 28px;
}
.ea-wiz-step-title h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--wiz-text);
    line-height: 1.2;
}
.ea-wiz-step-title p {
    color: var(--wiz-muted);
    margin: 0;
    font-size: .95rem;
}

/* ── Form wrapper ── */
.ea-wiz-form {
    background: #fff;
    border: 1px solid var(--wiz-border);
    border-radius: var(--wiz-radius);
    padding: 32px;
    box-shadow: var(--wiz-shadow);
}

/* ── Profile type grid (Step 1) ── */
.ea-wiz-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
}
.ea-wiz-type-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 20px;
    border: 2px solid var(--wiz-border);
    border-radius: var(--wiz-radius-sm);
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
    background: #fff;
    position: relative;
}
.ea-wiz-type-card:hover {
    border-color: var(--wiz-blue);
    background: var(--wiz-blue-lt);
}
.ea-wiz-type-card--active {
    border-color: var(--wiz-blue);
    background: var(--wiz-blue-lt);
    box-shadow: 0 0 0 3px rgba(26,86,160,.15);
}
.ea-wiz-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.ea-wiz-type-icon {
    font-size: 1.6rem;
    line-height: 1;
}
.ea-wiz-type-label {
    font-weight: 700;
    font-size: .95rem;
    color: var(--wiz-text);
}
.ea-wiz-type-desc {
    font-size: .82rem;
    color: var(--wiz-muted);
    line-height: 1.4;
}

/* ── Site type grid (Step 4) ── */
.ea-wiz-site-type-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
}
.ea-wiz-site-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 2px solid var(--wiz-border);
    border-radius: var(--wiz-radius-sm);
    cursor: pointer;
    transition: border-color .15s, background .15s;
    background: #fff;
    position: relative;
}
.ea-wiz-site-card:hover {
    border-color: var(--wiz-blue);
    background: var(--wiz-blue-lt);
}
.ea-wiz-site-card--active {
    border-color: var(--wiz-blue);
    background: var(--wiz-blue-lt);
    box-shadow: 0 0 0 3px rgba(26,86,160,.15);
}
.ea-wiz-site-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.ea-wiz-site-icon  { font-size: 1.8rem; flex-shrink: 0; }
.ea-wiz-site-label { font-weight: 700; font-size: .95rem; display: block; margin-bottom: 3px; }
.ea-wiz-site-desc  { font-size: .83rem; color: var(--wiz-muted); line-height: 1.4; display: block; }

/* ── Section label ── */
.ea-wiz-section-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--wiz-muted);
    margin-bottom: 12px;
    margin-top: 28px;
}
.ea-wiz-section-label:first-child { margin-top: 0; }

/* ── Fields ── */
.ea-wiz-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}
.ea-wiz-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.ea-wiz-field label {
    font-size: .88rem;
    font-weight: 600;
    color: var(--wiz-text);
}
.ea-req { color: var(--wiz-blue); }

.ea-wiz-field input[type="text"],
.ea-wiz-field input[type="email"],
.ea-wiz-field input[type="password"],
.ea-wiz-field select,
.ea-wiz-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--wiz-border);
    border-radius: var(--wiz-radius-sm);
    font-size: .95rem;
    font-family: inherit;
    color: var(--wiz-text);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.ea-wiz-field input:focus,
.ea-wiz-field select:focus,
.ea-wiz-field textarea:focus {
    outline: none;
    border-color: var(--wiz-blue);
    box-shadow: 0 0 0 3px rgba(26,86,160,.12);
}
.ea-wiz-field textarea {
    resize: vertical;
    min-height: 100px;
}
.ea-wiz-hint {
    font-size: .8rem;
    color: var(--wiz-muted);
}

/* ── Slug field ── */
.ea-wiz-slug-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--wiz-border);
    border-radius: var(--wiz-radius-sm);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.ea-wiz-slug-wrap:focus-within {
    border-color: var(--wiz-blue);
    box-shadow: 0 0 0 3px rgba(26,86,160,.12);
}
.ea-wiz-slug-prefix {
    background: var(--wiz-gray);
    padding: 10px 12px;
    font-size: .9rem;
    color: var(--wiz-muted);
    border-right: 1px solid var(--wiz-border);
    white-space: nowrap;
}
.ea-wiz-slug-wrap input {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex: 1;
}

/* ── Member note ── */
.ea-wiz-member-note {
    background: var(--wiz-blue-lt);
    border: 1px solid rgba(26,86,160,.2);
    border-radius: var(--wiz-radius-sm);
    padding: 18px 20px;
    margin-bottom: 8px;
}
.ea-wiz-member-note p {
    margin: 0;
    color: var(--wiz-blue-dk);
    font-size: .95rem;
    line-height: 1.5;
}

/* ── Actions ── */
.ea-wiz-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    justify-content: flex-end;
    align-items: center;
}
.ea-wiz-btn {
    padding: 11px 24px;
    border-radius: var(--wiz-radius-sm);
    font-size: .95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: background .15s, transform .1s;
}
.ea-wiz-btn:active { transform: scale(.98); }

.ea-wiz-btn--primary {
    background: var(--wiz-blue);
    color: #fff;
}
.ea-wiz-btn--primary:hover  { background: var(--wiz-blue-dk); }

.ea-wiz-btn--secondary {
    background: transparent;
    color: var(--wiz-muted);
    border: 1px solid var(--wiz-border);
}
.ea-wiz-btn--secondary:hover { background: var(--wiz-gray); color: var(--wiz-text); }

.ea-wiz-btn--large { padding: 14px 32px; font-size: 1rem; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .ea-wiz-form          { padding: 20px 16px; }
    .ea-wiz-type-grid     { grid-template-columns: 1fr; }
    .ea-wiz-field-row     { grid-template-columns: 1fr; gap: 0; }
    .ea-wiz-actions       { flex-direction: column-reverse; }
    .ea-wiz-btn           { width: 100%; text-align: center; }
    .ea-wiz-step-label    { display: none; }
}

/* ── Animate in ── */
.ea-wiz-form {
    animation: ea-wiz-fadein .25s ease;
}
@keyframes ea-wiz-fadein {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
