.reg-section { padding-top: 0; }
.reg-wrap { max-width: 720px; margin: 0 auto; }

.reg-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.reg-step {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--of-border);
    font-size: 13px;
    color: var(--of-muted);
}
.reg-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    margin-right: 6px;
}
.reg-step--on {
    border-color: var(--of-primary);
    color: var(--of-primary-dark);
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}
.reg-step--on span {
    background: var(--of-primary);
    color: #fff;
}

.reg-panel { display: none; }
.reg-panel--on { display: block; }

.reg-mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.reg-mode-card {
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    border: 2px solid var(--of-border);
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}
.reg-mode-card:hover { border-color: #93c5fd; }
.reg-mode-card--on {
    border-color: var(--of-primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}
.reg-mode-card h3 { margin: 0 0 8px; font-size: 18px; }
.reg-mode-card p { margin: 0; font-size: 14px; color: var(--of-muted); line-height: 1.6; }

.reg-hint { font-size: 14px; color: var(--of-muted); margin: 0 0 16px; }
.reg-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.reg-role-card {
    padding: 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--of-border);
    cursor: pointer;
    text-align: left;
}
.reg-role-card--on {
    border-color: var(--of-primary);
    background: #eff6ff;
}
.reg-role-card strong { display: block; font-size: 15px; margin-bottom: 4px; }
.reg-role-card small { color: var(--of-muted); font-size: 12px; line-height: 1.5; }

.reg-form-row { margin-bottom: 16px; }
.reg-form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.reg-form-row label em { color: #dc2626; font-style: normal; }
.reg-form-row input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--of-border);
    border-radius: 10px;
    font-size: 15px;
}
.reg-form-row input:focus {
    outline: none;
    border-color: var(--of-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.reg-field-hint {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.5;
    min-height: 18px;
}
.reg-field-hint--ok { color: #16a34a; }
.reg-field-hint--err { color: #dc2626; }
.reg-field-hint--muted { color: var(--of-muted); }
.reg-form-note {
    margin: 0 0 16px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.reg-sms-row {
    display: flex;
    gap: 10px;
}
.reg-sms-row input {
    flex: 1;
}
.reg-sms-btn {
    flex-shrink: 0;
    min-width: 112px;
    height: 44px;
    padding: 0 14px;
}
.reg-sms-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.reg-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}
.reg-btn {
    height: 44px;
    padding: 0 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}
.reg-btn--primary { background: var(--of-primary); color: #fff; }
.reg-btn--primary:disabled { opacity: .5; cursor: not-allowed; }
.reg-btn--ghost { background: #fff; color: var(--of-text); border: 1px solid var(--of-border); }

.reg-result {
    padding: 32px 24px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--of-border);
    text-align: center;
}
.reg-result h3 { margin: 0 0 12px; font-size: 22px; }
.reg-result p { margin: 0 0 8px; color: var(--of-muted); }
.reg-result .reg-btn { margin-top: 20px; display: inline-block; line-height: 44px; text-decoration: none; }

.reg-ref-banner {
    display: inline-block;
    margin: 12px 0 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 14px;
}
.reg-ref-banner[hidden] { display: none; }
