/* ═══════════════════════════════════════════════════════════════════
   SchoolX Registration Page Styles — Light EdTech Theme
   ═══════════════════════════════════════════════════════════════════ */
* { box-sizing: border-box; }
body.register-page {
    margin: 0; padding: 0;
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    background: #f8f9fc;
    color: #334155;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
.register-wrapper {
    display: flex; min-height: 100vh;
}
/* ── Brand Panel (Left Side) ─────────────────────────────── */
.brand-panel {
    width: 380px; flex-shrink: 0;
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
    color: #e2e8f0; padding: 32px;
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
}
.brand-back {
    font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 40px;
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none; transition: color 0.2s;
}
.brand-back:hover { color: #fff; }
.brand-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.brand-logo-wrap { margin-bottom: 16px; }
.brand-logo { width: 44px; height: 44px; border-radius: 10px; }
.brand-title { font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 0; }
.brand-title span {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    -webkit-background-clip: text; 
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-tagline { 
    font-size: 0.68rem; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7); 
    margin-top: 2px; 
    margin-bottom: 48px; 
    margin-left: 58px; /* Alignment with SchoolX text */
}
/* Select2 Custom Styling for Registration Page */
.select2-container--default .select2-selection--single {
    height: 48px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #0f172a;
    font-size: 0.9rem;
    padding-left: 16px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 10px;
}
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.select2-dropdown {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
/* Wizard Steps */
.brand-steps { display: flex; flex-direction: column; gap: 4px; margin-bottom: 48px; }
.wizard-step {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: 12px;
    transition: all 0.3s; opacity: 0.45;
}
.wizard-step.active { opacity: 1; background: rgba(255,255,255,0.08); }
.wizard-step.completed { opacity: 0.8; }
.wizard-step.completed .step-dot { background: #059669; border-color: #059669; }
.step-dot {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.15); color: #c7d2fe;
    transition: all 0.3s;
}
.wizard-step.active .step-dot {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    border-color: #818cf8; color: #fff;
}
.step-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.step-name  { font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.85); }
/* Trust Badges */
.brand-trust { display: flex; flex-direction: column; gap: 8px; }
.trust-item {
    font-size: 0.75rem; color: rgba(255,255,255,0.45);
    display: flex; align-items: center; gap: 8px;
}
.trust-item i { color: #6ee7b7; }
/* ── Form Panel (Right Side) ─────────────────────────────── */
.form-panel {
    flex: 1; display: flex; align-items: flex-start; justify-content: center;
    padding: 48px 40px; overflow-y: auto;
}
.form-container { width: 100%; max-width: 640px; }
/* Steps */
.form-step { display: none; animation: fadeIn 0.4s ease; }
.form-step.active { display: block; }
.step-header { margin-bottom: 32px; }
.step-header h2 { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.step-header p  { font-size: 0.88rem; color: #64748b; margin: 0; }
/* Form Controls */
.form-label-sx {
    font-size: 0.8rem; font-weight: 600; color: #334155;
    margin-bottom: 6px; display: block;
}
.form-control-sx {
    width: 100%; padding: 12px 16px; border-radius: 10px;
    border: 1.5px solid #e2e8f0; background: #fff;
    font-size: 0.9rem; font-family: inherit; color: #0f172a;
    transition: all 0.2s; outline: none;
}
.form-control-sx:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.form-control-sx::placeholder { color: #94a3b8; }
.form-control-sx.is-invalid { border-color: #ef4444; }
select.form-control-sx { cursor: pointer; appearance: auto; }
.field-hint {
    font-size: 0.72rem; color: #64748b; margin-top: 4px;
    display: flex; align-items: center; gap: 4px;
}
/* Plan Selector */
.plan-selector { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-option {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px; border-radius: 14px;
    border: 1.5px solid #e2e8f0; background: #fff;
    cursor: pointer; transition: all 0.25s; position: relative;
}
.plan-option:hover { border-color: #c7d2fe; background: #fafafe; }
.plan-option.selected {
    border-color: #6366f1; background: #eef2ff;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.plan-option input[type="radio"] { display: none; }
.plan-opt-icon { font-size: 1.5rem; flex-shrink: 0; width: 42px; text-align: center; }
.plan-opt-info { flex: 1; }
.plan-opt-name { font-size: 0.95rem; font-weight: 700; color: #0f172a; }
.plan-opt-tagline { font-size: 0.75rem; color: #64748b; }
.plan-opt-price { font-size: 1rem; font-weight: 700; color: #0f172a; white-space: nowrap; }
.plan-opt-price small { font-size: 0.7rem; font-weight: 400; color: #64748b; }
.plan-opt-check {
    color: transparent; font-size: 1.2rem; transition: color 0.2s;
}
.plan-option.selected .plan-opt-check { color: #6366f1; }
/* Addon Options */
.addon-section { margin-bottom: 24px; }
.addon-title { font-size: 0.95rem; font-weight: 700; color: #0f172a; margin-bottom: 12px; }
.addon-option {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: 10px;
    border: 1.5px solid #e2e8f0; background: #fff;
    cursor: pointer; transition: all 0.2s;
}
.addon-option:hover { border-color: #c7d2fe; }
.addon-option.checked { border-color: #6366f1; background: #eef2ff; }
.addon-option input[type="checkbox"] { display: none; }
.addon-opt-check {
    width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0;
    border: 2px solid #cbd5e1;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem; color: transparent; transition: all 0.2s;
}
.addon-option.checked .addon-opt-check {
    background: #6366f1; border-color: #6366f1; color: #fff;
}
.addon-opt-info { flex: 1; }
.addon-opt-name { font-size: 0.82rem; font-weight: 600; color: #334155; }
.addon-opt-price { font-size: 0.8rem; font-weight: 700; color: #6366f1; white-space: nowrap; }
/* Order Summary */
.order-summary {
    padding: 18px 20px; border-radius: 12px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border: 1px solid rgba(99,102,241,0.15);
    margin-bottom: 24px;
}
.summary-label { font-size: 0.85rem; color: #475569; font-weight: 500; }
.summary-amount { font-size: 1.3rem; font-weight: 800; color: #4f46e5; }
.summary-note { font-size: 0.72rem; color: #64748b; margin-top: 6px; }
/* Terms */
.terms-check {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.82rem; color: #475569; cursor: pointer;
    padding: 12px 0;
}
.terms-check input[type="checkbox"] { margin-top: 2px; accent-color: #6366f1; }
.terms-check a { color: #6366f1; font-weight: 600; }
/* Buttons */
.step-actions {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 36px; padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}
.btn-sx-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 10px;
    font-size: 0.9rem; font-weight: 700; font-family: inherit;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff; border: none; cursor: pointer;
    box-shadow: 0 4px 16px rgba(79,70,229,0.2);
    transition: all 0.3s;
}
.btn-sx-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,70,229,0.25); }
.btn-sx-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-sx-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 10px;
    font-size: 0.9rem; font-weight: 600; font-family: inherit;
    background: #f1f5f9; color: #475569;
    border: 1px solid #e2e8f0; cursor: pointer; transition: all 0.2s;
}
.btn-sx-secondary:hover { background: #e2e8f0; }
/* Success Page */
.success-container {
    text-align: center; padding: 60px 24px;
    animation: fadeIn 0.6s ease;
}
.success-icon {
    width: 100px; height: 100px; border-radius: 50%;
    background: #d1fae5; margin: 0 auto 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: #059669;
}
.success-container h2 { font-size: 1.6rem; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.success-container p { font-size: 0.95rem; color: #64748b; max-width: 400px; margin: 0 auto 32px; line-height: 1.7; }
/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 991px) {
    .brand-panel { display: none; }
    .form-panel { padding: 32px 20px; }
}
