/* =============================================================================
   register.css  |  BVSUSA Registration Form  |  v1.3
   Loaded via header.php when $is_register = true
   Uses --bvs-saffron, --bvs-saffron-dark from style.css
   ============================================================================= */

/* ── Page ──────────────────────────────────────────────────────────────────── */
body {
    background:
        radial-gradient(ellipse at 10% 0%, rgba(255,153,51,.12) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 100%, rgba(190,38,23,.08) 0%, transparent 50%),
        #f5f4f0;
    min-height: 100vh;
}

/* ── Card shell ────────────────────────────────────────────────────────────── */
.registration-card {
    border-radius: 24px;
    border: none;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.12);
}

/* ── Header banner ─────────────────────────────────────────────────────────── */
.card-header-banner {
    background: linear-gradient(135deg, #be2617 0%, #FF9933 100%);
    color: white;
    padding: 2.8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.card-header-banner::before {
    content: '𝄞';
    position: absolute;
    font-size: 9rem;
    opacity: .06;
    right: -10px;
    top: -20px;
    line-height: 1;
}
.card-header-banner::after {
    content: 'ॐ';
    position: absolute;
    font-size: 7rem;
    opacity: .08;
    left: 10px;
    bottom: -15px;
    line-height: 1;
}
.card-header-banner h2 { font-size: 1.9rem; letter-spacing: .5px; }

/* ── Section headers ───────────────────────────────────────────────────────── */
.section-heading {
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    padding-bottom: .6rem;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 1.2rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-heading .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.dot-saffron  { background: var(--bvs-saffron); }
.dot-crimson  { background: #be2617; }
.dot-blue     { background: #0056b3; }
.dot-green    { background: #198754; }
.dot-purple   { background: #6f42c1; }
.dot-teal     { background: #0d9488; }

/* ── Role selector (Student / Parent) ─────────────────────────────────────── */
.role-option {
    cursor: pointer;
    border: 2px solid #e9ecef;
    border-radius: 14px;
    padding: 18px 20px;
    transition: all .25s ease;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
}
.role-option:has(input:checked) {
    border-color: var(--bvs-saffron);
    background: #fff8f0;
    box-shadow: 0 4px 16px rgba(255,153,51,.2);
}
.role-option .role-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: all .25s;
}
.role-option:has(input:checked) .role-icon { transform: scale(1.1); }
.role-icon-student { background: #fff4e5; color: var(--bvs-saffron); }
.role-icon-parent  { background: #e8f0fe; color: #0056b3; }
.role-option .role-label   { font-weight: 700; font-size: .95rem; }
.role-option .role-sublabel { font-size: .78rem; color: #888; margin-top: 2px; }

/* ── Form inputs ───────────────────────────────────────────────────────────── */
.form-control,
.form-select {
    border-radius: 9px;
    padding: 0.7rem 1rem;
    border: 1.5px solid #e5e5e5;
    background: #fafafa;
    transition: all .2s;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--bvs-saffron);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,153,51,.15);
}
.form-label { font-size: .82rem; font-weight: 700; color: #444; margin-bottom: .4rem; }

/* ── Choices.js ────────────────────────────────────────────────────────────── */
.choices__inner {
    border-radius: 9px !important;
    border: 1.5px solid #e5e5e5 !important;
    background: #fafafa !important;
    min-height: 48px;
}
.choices__list--dropdown {
    border-radius: 9px !important;
    border: 1.5px solid var(--bvs-saffron) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.1) !important;
    z-index: 1050 !important;
}
.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background: #fff4e5 !important;
    color: #333 !important;
}

/* ── Reg type cards ────────────────────────────────────────────────────────── */
.fee-card {
    transition: all .25s ease;
    cursor: pointer;
    border: 2px solid #eee;
    background: #fafafa;
    border-radius: 12px;
}
.btn-check:checked + .fee-card {
    border-color: var(--bvs-saffron);
    background: #fff8f0;
    box-shadow: 0 4px 16px rgba(255,153,51,.18);
}
.fee-card .badge-type {
    display: inline-block;
    font-size: .65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 6px;
}
.badge-annual   { background: #fff4e5; color: var(--bvs-saffron); }
.badge-lifetime { background: #f3e8ff; color: #6f42c1; }

/* ── Fee display box ───────────────────────────────────────────────────────── */
.fee-display-box {
    background: linear-gradient(135deg, #fff8f0, #fff);
    border: 2px solid #fde8cc;
    border-radius: 14px;
    padding: 1.2rem;
}
#feeDisplay {
    color: var(--bvs-saffron) !important;
    font-weight: 900 !important;
    font-size: 2rem !important;
    letter-spacing: 1px;
}

/* ── Contextual section panels ─────────────────────────────────────────────── */
.section-guardian {
    background: linear-gradient(135deg, #eef4ff, #f8fbff);
    border: 1.5px solid #c9deff;
    border-left: 5px solid #0056b3;
    border-radius: 12px;
}
.section-security {
    background: linear-gradient(135deg, #fff8f0, #fffcf8);
    border: 1.5px solid #fde8cc;
    border-left: 5px solid var(--bvs-saffron);
    border-radius: 12px;
}
.section-training {
    background: linear-gradient(135deg, #f0fdf4, #f8fff9);
    border: 1.5px solid #bbf7d0;
    border-left: 5px solid #198754;
    border-radius: 12px;
}

/* ── Training toggle options ───────────────────────────────────────────────── */
.training-option {
    cursor: pointer;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
}
.training-option:has(input:checked) {
    border-color: #198754;
    background: #f0fdf4;
    box-shadow: 0 2px 8px rgba(25,135,84,.12);
}

/* ── Required star ─────────────────────────────────────────────────────────── */
.required-star { color: #be2617; font-weight: bold; }

/* ── Submit button ─────────────────────────────────────────────────────────── */
.btn-submit {
    background: linear-gradient(135deg, #be2617, #FF9933);
    border: none;
    padding: 16px;
    border-radius: 12px;
    color: white;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: .5px;
    transition: all .3s ease;
    box-shadow: 0 4px 20px rgba(190,38,23,.3);
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(190,38,23,.4);
    color: white;
}
.btn-submit:active { transform: translateY(0); }

/* ── Other school panel ────────────────────────────────────────────────────── */
.other-panel {
    background: #f8f9fa;
    border: 1.5px dashed #ccc;
    border-radius: 10px;
    padding: 1rem;
}
