/* ════════════════════════════════════════════════════════════════
   IMAN ELC Admission Wizard — Responsive Styles
   ════════════════════════════════════════════════════════════════ */

/* ── 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: #999;
    cursor: default;
    padding-bottom: 4px;
}
.wizard-progress li:before {
    content: counter(step);
    counter-increment: step;
    width: 34px;
    height: 34px;
    line-height: 34px;
    border: 2px solid #ddd;
    display: block;
    text-align: center;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: #fff;
    font-weight: 700;
    transition: all .3s;
    font-size: 13px;
    position: relative;
    z-index: 1;
}
.wizard-progress li:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #ddd;
    top: 17px;
    left: -50%;
    z-index: 0;
    transition: all .3s;
}
.wizard-progress li:first-child:after  { content: none; }
.wizard-progress li.active:before      { border-color: #68a67d; background: #68a67d; color: #fff; box-shadow: 0 0 0 4px rgba(104,166,125,.2); }
.wizard-progress li.active:after       { background: #68a67d; }
.wizard-progress li.active             { color: #68a67d; font-weight: 600; }
.wizard-progress li.completed:before   { content: '✓'; border-color: #68a67d; background: #68a67d; color: #fff; }
.wizard-progress li.completed:after    { background: #68a67d; }
.wizard-progress li.completed          { color: #68a67d; }

/* ── Wizard Steps ────────────────────────────────────────────── */
.wizard-step        { display: none; animation: fadeIn .3s; }
.wizard-step.active { display: block; }
@keyframes fadeIn   { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Navigation Buttons ──────────────────────────────────────── */
.wizard-nav         { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #eee; gap: 12px; }
.wizard-nav .btn    { min-width: 130px; }

/* ── Section Title ───────────────────────────────────────────── */
.section-title      { background: linear-gradient(135deg, #68a67d, #4a8c5c); color: #fff; padding: 12px 20px; border-radius: 8px; margin-bottom: 1.5rem; font-size: 1rem; }
.section-title i    { margin-right: 8px; }

/* ── Cards & Sections ────────────────────────────────────────── */
.form-section       { background: #f8f9fa; border-radius: 8px; padding: 20px; margin-bottom: 1rem; }
.allergy-row,
.pickup-row         { background: #fff; border: 1px solid #e9ecef; border-radius: 6px; padding: 12px; margin-bottom: 8px; }
.remove-row         { color: #dc3545; cursor: pointer; font-size: 18px; }

/* ── Doc Upload Cards ─────────────────────────────────────────── */
.doc-upload-card        { border: 2px dashed #dee2e6; border-radius: 8px; padding: 15px; text-align: center; transition: all .2s; cursor: pointer; height: 100%; }
.doc-upload-card:hover  { border-color: #68a67d; background: #f0f7f2; }
.doc-upload-card.uploaded { border-color: #68a67d; background: #f0f7f2; }
.doc-upload-card .fa    { font-size: 24px; color: #999; margin-bottom: 6px; }
.doc-upload-card.uploaded .fa { color: #68a67d; }

/* ══ MOBILE — Extra Small (< 576px) ═════════════════════════════ */
@media (max-width: 575.98px) {

    /* ── Stepper: numbered dots only, hide all text labels ─────── */
    .wizard-progress {
        justify-content: space-between;
        padding: 0 0 4px;
    }
    .wizard-progress li {
        flex: 1;
        min-width: 36px;
        max-width: none;
    }
    /* Hide ALL text labels — the hint bar below gives context */
    .wizard-progress li .step-label {
        display: none !important;
    }
    /* Also hide the <br> spacers */
    .wizard-progress li br { display: none; }

    .wizard-progress li:before {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 12px;
        margin-bottom: 0;
    }
    .wizard-progress li:after { top: 15px; }

    /* ── Progress hint bar below stepper ─────────────────────────── */
    .wizard-progress-hint {
        display: block !important;
        text-align: center;
        font-size: 13px;
        font-weight: 600;
        color: #4a8c5c;
        margin: 6px 0 16px;
        padding: 5px 12px;
        background: #f0f7f2;
        border-radius: 20px;
        border: 1px solid #c3ddc9;
    }

    /* ── Section title ────────────────────────────────────────────── */
    .section-title {
        font-size: 0.85rem;
        padding: 10px 14px;
        border-radius: 6px;
    }

    /* ── Nav buttons: Next on top ─────────────────────────────────── */
    .wizard-nav {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .wizard-nav .btn {
        width: 100%;
        min-width: unset;
        padding: 10px;
        font-size: 0.95rem;
    }

    /* ── Form padding ─────────────────────────────────────────────── */
    .form-section { padding: 12px; }

    /* ── Photo preview ────────────────────────────────────────────── */
    #childPreview { width: 110px !important; height: 110px !important; }

    /* ── Doc cards compact ────────────────────────────────────────── */
    .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; }
}
