/* FINC Ecosystem 2026 — registration wizard (consumer + business)
   UI only — does not affect registration logic or flow. */

.finc-auth--register {
    min-height: calc(100vh - 88px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(20px, 4vw, 48px) clamp(14px, 3vw, 28px) 56px;
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(16, 185, 129, 0.14), transparent 55%),
        radial-gradient(ellipse 80% 50% at 100% 0%, rgba(59, 130, 246, 0.08), transparent 45%),
        var(--bg, #06101f);
}

.finc-auth--register .finc-auth-card--wide,
.finc-reg-wizard {
    width: min(100%, 920px);
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid rgba(16, 185, 129, 0.22);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.finc-auth--register .finc-auth-card h1 {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    margin-bottom: 6px;
}

.finc-auth--register .finc-auth-section__note {
    max-width: 62ch;
    margin-bottom: 18px;
}

.finc-reg-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
}

.finc-reg-back:hover,
.finc-reg-back:focus-visible {
    color: var(--emerald-2, #34d399);
}

.finc-reg-progress {
    height: 4px;
    background: rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    margin: 0 0 20px;
    overflow: hidden;
}

.finc-reg-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--emerald, #10b981), var(--gold, #fbbf24));
    border-radius: 999px;
    transition: width 0.35s ease;
}

.finc-reg-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    padding-bottom: 2px;
}

.finc-reg-tab {
    flex: 1 1 auto;
    min-width: min(100%, 140px);
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.55);
    color: var(--muted);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: clamp(0.68rem, 2.2vw, 0.78rem);
    font-weight: 800;
    line-height: 1.25;
    cursor: default;
    text-align: center;
    font-family: inherit;
    pointer-events: none;
}

.finc-reg-tab.is-active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(59, 130, 246, 0.18));
    border-color: rgba(16, 185, 129, 0.55);
    color: var(--text);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.15);
}

.finc-reg-tab.is-done {
    border-color: rgba(16, 185, 129, 0.35);
    color: var(--emerald-2, #6ee7b7);
}

.finc-reg-tab__short {
    display: none;
}

.finc-reg-panel {
    display: none;
}

.finc-reg-panel.is-active {
    display: block;
    animation: fincRegFade 0.25s ease;
}

@keyframes fincRegFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.finc-reg-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--gold, #fbbf24);
    letter-spacing: 0.02em;
}

.finc-auth--register .finc-form-group {
    margin-bottom: 16px;
}

.finc-auth--register .finc-input,
.finc-auth--register select.finc-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.finc-reg-phone-wrap {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
}

.finc-reg-phone-wrap select {
    flex: 0 0 min(38%, 168px);
    max-width: 168px;
    min-width: 104px;
}

.finc-reg-phone-wrap input {
    flex: 1 1 auto;
    min-width: 0;
}

.finc-reg-hint {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.45;
}

.finc-reg-hint.is-ok { color: var(--emerald-2, #6ee7b7); }
.finc-reg-hint.is-warn { color: var(--gold, #fbbf24); }
.finc-reg-hint.is-err { color: #fca5a5; }

.finc-reg-doc-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.finc-reg-doc-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.45);
}

.finc-reg-doc-card.is-uploaded {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.06);
}

.finc-reg-doc-info {
    flex: 1 1 180px;
    min-width: 0;
}

.finc-reg-doc-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
}

.finc-reg-doc-sub {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 3px;
}

.finc-reg-doc-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.finc-reg-doc-badge--req {
    background: rgba(248, 113, 113, 0.14);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.28);
}

.finc-reg-doc-badge--opt {
    background: rgba(148, 163, 184, 0.12);
    color: var(--muted);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.finc-reg-doc-fname {
    font-size: 0.72rem;
    color: var(--emerald-2);
    margin-top: 4px;
    display: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.finc-reg-doc-browse {
    flex: 0 0 auto;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    transition: background 0.2s, border-color 0.2s;
}

.finc-reg-doc-browse:hover {
    background: rgba(59, 130, 246, 0.2);
}

.finc-reg-doc-browse.is-done {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.12);
    color: var(--emerald-2);
}

.finc-reg-doc-browse input {
    display: none;
}

.finc-reg-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.finc-reg-nav .finc-btn {
    flex: 1 1 140px;
    min-height: 44px;
}

.finc-reg-summary-card {
    padding: 18px 20px;
    margin-bottom: 18px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.5);
}

.finc-reg-summary {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text);
}

.finc-reg-summary div {
    margin-bottom: 5px;
}

.finc-reg-free-note {
    text-align: center;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.28);
    font-size: 0.9rem;
    margin-bottom: 16px;
    color: var(--emerald-2);
}

.finc-reg-alert {
    display: none;
    margin-bottom: 16px;
}

.finc-reg-alert.is-visible {
    display: block;
}

/* Consumer plan / access level — old Register_page.php step 3 */
.finc-reg-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.finc-reg-plan-card {
    border: 2px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    padding: 16px 14px;
    background: rgba(15, 23, 42, 0.55);
    text-align: center;
    min-width: 0;
}

.finc-reg-plan-card.is-selected {
    border-color: rgba(248, 113, 113, 0.55);
    background: rgba(248, 113, 113, 0.08);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.15);
}

.finc-reg-plan-card.is-locked {
    opacity: 0.72;
    pointer-events: none;
}

.finc-reg-plan-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.finc-reg-plan-badge--red { background: rgba(248, 113, 113, 0.15); color: #fecaca; border: 1px solid rgba(248, 113, 113, 0.3); }
.finc-reg-plan-badge--amber { background: rgba(251, 191, 36, 0.12); color: #fde68a; border: 1px solid rgba(251, 191, 36, 0.28); }
.finc-reg-plan-badge--green { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.28); }

.finc-reg-plan-name {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.finc-reg-plan-price {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.finc-reg-plan-note {
    font-size: 0.72rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.finc-reg-plan-features {
    font-size: 0.68rem;
    color: var(--muted);
    line-height: 1.55;
}

.finc-reg-plan-lock {
    margin-top: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--muted);
    line-height: 1.45;
}

.finc-reg-plan-footnote {
    font-size: 0.72rem;
    color: var(--muted);
    text-align: center;
    margin: 0 0 8px;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .finc-reg-tab__long {
        display: none;
    }

    .finc-reg-tab__short {
        display: inline;
    }

    .finc-reg-tab {
        min-width: calc(33.333% - 6px);
        padding: 9px 8px;
    }

    .finc-reg-phone-wrap {
        flex-direction: column;
    }

    .finc-reg-phone-wrap select {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }

    .finc-reg-doc-card {
        flex-direction: column;
        align-items: stretch;
    }

    .finc-reg-doc-browse {
        width: 100%;
        text-align: center;
    }

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

@media (max-width: 420px) {
    .finc-reg-tab {
        min-width: 100%;
    }
}
