/* ════════════════════════════════════════════════════════════════
   IMAN ELC Admission Wizard — Neo-Brutalist Theme
   ════════════════════════════════════════════════════════════════ */

:root {
    --wiz-ink:       #111111;
    --wiz-cream:     #F6F1E7;
    --wiz-primary:   #F36D4E;
    --wiz-secondary: #8CB5F5;
    --wiz-highlight: #B9A3F5;
    --wiz-white:     #ffffff;
    --wiz-border:    2px solid #111111;
    --wiz-border-3:  3px solid #111111;
    --wiz-shadow-sm: 3px 3px 0 #111111;
    --wiz-shadow:    5px 5px 0 #111111;
}

/* ── Wizard Progress Bar ─────────────────────────────────────── */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 0 0 8px 0;
    counter-reset: step;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
}
.wizard-progress::-webkit-scrollbar { display: none; }

.wizard-progress li {
    list-style: none;
    text-align: center;
    flex: 1;
    min-width: 70px;
    position: relative;
    font-size: 11px;
    color: #888;
    cursor: default;
    padding-bottom: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}
.wizard-progress li:before {
    content: counter(step);
    counter-increment: step;
    width: 34px;
    height: 34px;
    line-height: 30px;
    border: var(--wiz-border);
    display: block;
    text-align: center;
    margin: 0 auto 6px;
    border-radius: 0;
    background: var(--wiz-white);
    font-weight: 800;
    font-size: 13px;
    position: relative;
    z-index: 1;
    transition: all .2s;
    box-shadow: 2px 2px 0 var(--wiz-ink);
}
.wizard-progress li:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--wiz-ink);
    opacity: 0.15;
    top: 17px;
    left: -50%;
    z-index: 0;
    transition: all .2s;
}
.wizard-progress li:first-child:after { content: none; }

.wizard-progress li.active:before {
    background: var(--wiz-primary);
    border-color: var(--wiz-ink);
    color: var(--wiz-ink);
    box-shadow: var(--wiz-shadow-sm);
}
.wizard-progress li.active:after  { background: var(--wiz-primary); opacity: 1; }
.wizard-progress li.active        { color: var(--wiz-ink); font-weight: 700; }

.wizard-progress li.completed:before {
    content: '✓';
    background: var(--wiz-ink);
    border-color: var(--wiz-ink);
    color: var(--wiz-cream);
    box-shadow: 2px 2px 0 var(--wiz-primary);
}
.wizard-progress li.completed:after { background: var(--wiz-ink); opacity: 1; }
.wizard-progress li.completed       { color: var(--wiz-ink); }

/* ── Wizard Steps ────────────────────────────────────────────── */
.wizard-step        { display: none; animation: wiz-in .25s ease; }
.wizard-step.active { display: block; padding-bottom: 12px; }
@keyframes wiz-in   { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ensure section doesn't clip shadows */
.admissionPage .container { overflow: visible !important; padding-bottom: 32px; }

/* ── Section Title ───────────────────────────────────────────── */
.section-title {
    background: var(--wiz-ink);
    color: var(--wiz-cream);
    padding: 12px 20px;
    border-radius: 0;
    border: var(--wiz-border-3);
    box-shadow: var(--wiz-shadow-sm);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Space Grotesk', sans-serif;
}
.section-title i { margin-right: 8px; color: var(--wiz-primary); }

/* ── Cards & Sections ────────────────────────────────────────── */
.form-section {
    background: var(--wiz-cream);
    border: var(--wiz-border);
    box-shadow: var(--wiz-shadow-sm);
    border-radius: 0;
    padding: 20px;
    margin-bottom: 1rem;
}

/* Override inline yellow/green warning sections */
.wizard-step .form-section[style*="background:#fff8e1"],
.wizard-step .form-section[style*="border-left"] {
    background: #FFFBF0 !important;
    border: var(--wiz-border) !important;
    border-left: 4px solid var(--wiz-primary) !important;
    box-shadow: var(--wiz-shadow-sm) !important;
    border-radius: 0 !important;
}

.allergy-row,
.pickup-row {
    background: var(--wiz-white);
    border: var(--wiz-border);
    box-shadow: 2px 2px 0 var(--wiz-ink);
    border-radius: 0;
    padding: 12px;
    margin-bottom: 8px;
}
.remove-row { color: var(--wiz-primary); cursor: pointer; font-size: 18px; font-weight: 900; }

/* ── Form Controls ───────────────────────────────────────────── */
.online-admission-form .form-control,
.online-admission-form select.form-control,
.online-admission-form textarea.form-control {
    background: var(--wiz-white) !important;
    border: var(--wiz-border) !important;
    box-shadow: var(--wiz-shadow-sm) !important;
    border-radius: 0 !important;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--wiz-ink);
    transition: border-color .15s, box-shadow .15s;
}
.online-admission-form .form-control:focus,
.online-admission-form select.form-control:focus,
.online-admission-form textarea.form-control:focus {
    border-color: var(--wiz-primary) !important;
    box-shadow: 3px 3px 0 var(--wiz-primary) !important;
    outline: none;
}
.online-admission-form .form-control.is-invalid {
    border-color: #c0392b !important;
    box-shadow: 3px 3px 0 #c0392b !important;
}
.online-admission-form label {
    font-weight: 700;
    color: var(--wiz-ink);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 4px;
}
.online-admission-form .text-muted,
.online-admission-form small.text-muted {
    color: rgba(17,17,17,0.55) !important;
    font-size: 0.75rem;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.online-admission-form .btn,
.wizard-nav .btn {
    border-radius: 0 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em;
    font-family: 'Space Grotesk', sans-serif !important;
    border-width: 2px !important;
    box-shadow: var(--wiz-shadow-sm) !important;
    transition: transform .1s ease, box-shadow .1s ease !important;
}
.online-admission-form .btn:hover,
.wizard-nav .btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: var(--wiz-shadow) !important;
}
.wizard-nav .btn-success,
.online-admission-form .btn-success {
    background: var(--wiz-primary) !important;
    border-color: var(--wiz-ink) !important;
    color: var(--wiz-ink) !important;
}
.wizard-nav .btn-outline-secondary,
.online-admission-form .btn-outline-secondary {
    background: var(--wiz-white) !important;
    border-color: var(--wiz-ink) !important;
    color: var(--wiz-ink) !important;
}
.online-admission-form .btn-sm.btn-outline-success {
    background: var(--wiz-white) !important;
    border-color: var(--wiz-ink) !important;
    color: var(--wiz-ink) !important;
    box-shadow: 2px 2px 0 var(--wiz-ink) !important;
}

/* ── Navigation Bar ──────────────────────────────────────────── */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: var(--wiz-border);
    gap: 12px;
}
.wizard-nav .btn { min-width: 130px; }

/* ── Doc Upload Cards ─────────────────────────────────────────── */
.doc-upload-card {
    border: 2px dashed var(--wiz-ink);
    border-radius: 0;
    padding: 15px;
    text-align: center;
    transition: all .15s;
    cursor: pointer;
    height: 100%;
    background: var(--wiz-white);
}
.doc-upload-card:hover {
    border-style: solid;
    border-color: var(--wiz-primary);
    background: var(--wiz-cream);
    box-shadow: var(--wiz-shadow-sm);
}
.doc-upload-card.uploaded {
    border-style: solid;
    border-color: var(--wiz-ink);
    background: var(--wiz-cream);
    box-shadow: var(--wiz-shadow-sm);
}
.doc-upload-card .fa        { font-size: 24px; color: #aaa; margin-bottom: 6px; }
.doc-upload-card.uploaded .fa { color: var(--wiz-ink); }
.doc-upload-card small      { font-weight: 600; color: var(--wiz-ink); font-size: 11px; }

/* ── Child photo preview ──────────────────────────────────────── */
#childPreview {
    border: var(--wiz-border-3);
    box-shadow: var(--wiz-shadow-sm);
    border-radius: 0 !important;
}

/* ── Progress hint (mobile) ───────────────────────────────────── */
.wizard-progress-hint {
    display: none;
}

/* ══ MOBILE — Extra Small (< 576px) ═════════════════════════════ */
@media (max-width: 575.98px) {
    .wizard-progress { justify-content: space-between; padding: 0 0 4px; }
    .wizard-progress li { flex: 1; min-width: 36px; max-width: none; }
    .wizard-progress li .step-label { display: none !important; }
    .wizard-progress li br { display: none; }
    .wizard-progress li:before { width: 30px; height: 30px; line-height: 26px; font-size: 12px; margin-bottom: 0; }
    .wizard-progress li:after { top: 15px; }

    .wizard-progress-hint {
        display: block !important;
        text-align: center;
        font-size: 13px;
        font-weight: 700;
        color: var(--wiz-ink);
        margin: 6px 0 16px;
        padding: 6px 14px;
        background: var(--wiz-cream);
        border: var(--wiz-border);
        box-shadow: 2px 2px 0 var(--wiz-ink);
        letter-spacing: 0.02em;
        font-family: 'Space Grotesk', sans-serif;
    }

    .section-title { font-size: 0.8rem; padding: 10px 14px; }

    .wizard-nav { flex-direction: column-reverse; gap: 10px; }
    .wizard-nav .btn { width: 100%; min-width: unset; padding: 10px; font-size: 0.9rem; }

    .form-section { padding: 12px; }
    #childPreview { width: 110px !important; height: 110px !important; }
    .doc-upload-card { padding: 10px 8px; }
    .doc-upload-card .fa { font-size: 18px; }
    .doc-upload-card small { font-size: 10px; }
}

/* ══ MOBILE — Small (576px – 767px) ═════════════════════════════ */
@media (min-width: 576px) and (max-width: 767.98px) {
    .wizard-progress li { font-size: 10px; min-width: 58px; }
    .wizard-progress li small { display: none; }
    .wizard-nav .btn { min-width: 110px; }
}

/* ══ TABLET (768px – 991px) ══════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {
    .wizard-progress li { font-size: 10px; min-width: 60px; }
    .wizard-progress li small { font-size: 9px; }
}
