/* ══════════════════════════════════════════════════════
   ALS ENROLLMENT SYSTEM — MODAL STYLES (index_modals.css)
   Clean White Eye-Friendly Theme for How to Apply & Learner Form
   ══════════════════════════════════════════════════════ */

/* ── HOW TO APPLY GUIDE MODAL THEME ── */
#howToApplyGuideModal .modal-content {
    background: #ffffff !important;
    border: none !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.16) !important;
    color: #0f172a !important;
}
#howToApplyGuideModal .modal-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
#howToApplyGuideModal .modal-title {
    color: #0f172a !important;
    font-weight: 800 !important;
}
#howToApplyGuideModal .modal-body {
    background: #f8fafc !important;
}

#howToApplyGuideModal .modal-dialog,
#howToApplyGuideModal .guide-modal-dialog {
    max-width: 560px;
    margin: 1rem auto;
}

/* ── DESKTOP ROADMAP TRACKER (Desktop/PC only) ── */
.guide-desktop-roadmap {
    background: #f1f5f9;
    padding: 7px 18px;
    border-radius: 999px;
    border: none;
    max-width: 780px;
}
.roadmap-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.roadmap-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}
.roadmap-num.bg-primary { background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important; color: #fff !important; }
.roadmap-num.bg-info { background: linear-gradient(135deg, #06b6d4, #0284c7) !important; color: #fff !important; }
.roadmap-num.bg-warning { background: linear-gradient(135deg, #f59e0b, #d97706) !important; color: #fff !important; }
.roadmap-num.bg-purple { background: linear-gradient(135deg, #8b5cf6, #6366f1) !important; color: #fff !important; }

.roadmap-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: -0.1px;
    white-space: nowrap;
}
.roadmap-connector {
    flex: 1;
    height: 1.5px;
    background: #cbd5e1;
    margin: 0 10px;
    border-radius: 2px;
    min-width: 14px;
}

/* ══════════════════════════════════════════════════════
   HOW TO APPLY COMPACT STEP GUIDE (Mobile-Friendly)
   ══════════════════════════════════════════════════════ */
.guide-hero-badge {
    background: #eff6ff;
    border: none;
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.2px;
}

.guide-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guide-step-card {
    background: #ffffff;
    border: none !important;
    border-radius: 16px;
    padding: 13px 16px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.guide-step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.08);
}

/* Card Left Accent - Clean Borderless Design */
.card-accent-blue { border: none !important; border-left: none !important; }
.card-accent-sky { border: none !important; border-left: none !important; }
.card-accent-amber { border: none !important; border-left: none !important; }
.card-accent-purple { border: none !important; border-left: none !important; }

/* Icon Boxes with Gradient & Soft Shadow */
.guide-card-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.bg-gradient-blue { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.bg-gradient-sky { background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%); }
.bg-gradient-amber { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.bg-gradient-purple { background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); }

.guide-card-step-title {
    font-size: 0.90rem;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.2px;
}

.guide-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2.5px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
    border: none;
}

.tag-blue { background: #eff6ff; color: #1d4ed8; }
.tag-sky { background: #f0f9ff; color: #0284c7; }
.tag-amber { background: #fffbeb; color: #d97706; }
.tag-purple { background: #f5f3ff; color: #7c3aed; }

.guide-card-desc {
    font-size: 0.81rem;
    color: #475569;
    line-height: 1.4;
    font-weight: 500;
}

.guide-card-number {
    font-size: 1.35rem;
    font-weight: 900;
    color: #cbd5e1;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.5px;
    opacity: 0.7;
    margin-left: auto;
}

/* Reassurance Card */
.guide-reassurance-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1.5px solid #a7f3d0;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.06);
}

.guide-reassurance-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.guide-reassurance-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #14532d;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-bottom: 2px;
}

.guide-reassurance-desc {
    font-size: 0.77rem;
    color: #166534;
    line-height: 1.38;
    font-weight: 500;
}

/* Crucial Gmail & Temporary Password Reminder - Clean Borderless Design */
.guide-gmail-reminder-card {
    background: #fffbeb;
    border: none !important;
    border-left: none !important;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(217, 119, 6, 0.06);
}

.guide-gmail-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fef3c7;
    color: #b45309;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.guide-gmail-title {
    font-size: 0.86rem;
    font-weight: 800;
    color: #92400e;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-bottom: 2px;
    letter-spacing: -0.2px;
}

.guide-gmail-desc {
    font-size: 0.80rem;
    color: #78350f;
    line-height: 1.42;
    font-weight: 500;
}

.guide-free-badge {
    font-size: 0.78rem;
    font-weight: 700;
    color: #166534;
    background: #f0fdf4;
    border: none;
    padding: 4px 10px;
    border-radius: 999px;
}

.guide-btn-cta {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
    font-size: 0.86rem;
    transition: all 0.2s ease;
}

.guide-btn-cta:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.42);
    color: #ffffff;
}

/* ══════════════════════════════════════════════════════
   LEARNER LOGIN MODAL STYLES
   ══════════════════════════════════════════════════════ */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

@keyframes learnerFadeIn {from { opacity:0; }to { opacity:1; } }
@keyframes learnerSlideUp {from { opacity:0; transform:translateY(24px) scale(.97); }to { opacity:1; transform:translateY(0) scale(1); } }

/* ══════════════════════════════════════════════════════
   HOW TO APPLY GUIDE MODAL — DESKTOP / PC VIEW (>= 992px)
   ══════════════════════════════════════════════════════ */
@media (min-width: 992px) {
    #howToApplyGuideModal .modal-dialog,
    #howToApplyGuideModal .guide-modal-dialog {
        max-width: 980px !important;
        margin: 1.75rem auto !important;
    }
    #howToApplyGuideModal .modal-content {
        border-radius: 26px !important;
        border: none !important;
        box-shadow: 0 32px 85px -15px rgba(15, 23, 42, 0.16) !important;
    }
    #howToApplyGuideModal .modal-header {
        padding: 24px 34px 18px !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }
    #howToApplyGuideModal .modal-title {
        font-size: 1.5rem !important;
        letter-spacing: -0.4px !important;
    }
    #howToApplyGuideModal .modal-header p {
        font-size: 0.88rem !important;
        max-width: 580px !important;
    }
    #howToApplyGuideModal .modal-body {
        padding: 22px 32px !important;
        background: #f8fafc !important;
    }
    #howToApplyGuideModal .guide-cards-stack {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px 18px !important;
    }
    #howToApplyGuideModal .guide-step-card {
        padding: 16px 18px !important;
        border-radius: 16px !important;
        border: none !important;
        border-left: none !important;
        display: flex !important;
        align-items: flex-start !important;
        gap: 14px !important;
        height: 100% !important;
        background: #ffffff !important;
        box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04) !important;
        transition: transform 0.22s ease, box-shadow 0.22s ease !important;
        position: relative !important;
    }
    #howToApplyGuideModal .guide-step-card:hover {
        transform: translateY(-2.5px) !important;
        box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.08) !important;
        border: none !important;
    }
    #howToApplyGuideModal .guide-card-icon-box {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.25rem !important;
        border-radius: 12px !important;
        margin-top: 2px !important;
    }
    #howToApplyGuideModal .guide-card-step-title {
        font-size: 0.89rem !important;
        font-weight: 800 !important;
    }
    #howToApplyGuideModal .guide-tag {
        font-size: 0.69rem !important;
        padding: 2px 7px !important;
    }
    #howToApplyGuideModal .guide-card-desc {
        font-size: 0.81rem !important;
        line-height: 1.45 !important;
        color: #475569 !important;
        margin-top: 3px !important;
    }
    #howToApplyGuideModal .guide-card-number {
        font-size: 1.45rem !important;
        font-weight: 900 !important;
        color: #cbd5e1 !important;
        opacity: 0.85 !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
        line-height: 1 !important;
    }
    #howToApplyGuideModal .guide-gmail-reminder-card {
        padding: 14px 20px !important;
        border-radius: 14px !important;
        margin-top: 14px !important;
    }
    #howToApplyGuideModal .guide-gmail-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.15rem !important;
        border-radius: 10px !important;
    }
    #howToApplyGuideModal .guide-gmail-title {
        font-size: 0.88rem !important;
    }
    #howToApplyGuideModal .guide-gmail-desc {
        font-size: 0.80rem !important;
        line-height: 1.46 !important;
    }
    #howToApplyGuideModal .modal-footer {
        padding: 14px 32px !important;
    }
    #howToApplyGuideModal .guide-btn-cta {
        font-size: 0.88rem !important;
        padding: 8px 22px !important;
    }
}

/* ══════════════════════════════════════════════════════
   MOBILE & TABLET VIEW FOR HOW TO APPLY GUIDE MODAL (< 992px)
   Exact clean mobile view — completely preserved
   ══════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
    #howToApplyGuideModal .modal-dialog,
    #howToApplyGuideModal .guide-modal-dialog {
        margin: 12px auto !important;
        max-width: 560px !important;
    }
    #howToApplyGuideModal .modal-content {
        border-radius: 22px !important;
    }
    #howToApplyGuideModal .guide-cards-stack {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
}

/* ── Desktop Apply Modal Layout ── */
@media (min-width: 861px) {
    #applyModal .modal-dialog {
        max-width: 920px !important;
        margin: 1.25rem auto !important;
    }
    #applyModalBody,
    #applyIframe {
        height: 775px !important;
        max-height: 94vh !important;
    }
}

@media (max-width: 860px) {
    #applyModal .modal-dialog {
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
    }
    #applyModal .modal-content {
        border-radius: 0 !important;
        height: 100% !important;
        border: none !important;
        background: #ffffff !important;
    }
    #applyModal .modal-body {
        height: 100vh !important;
        height: 100dvh !important;
        max-height: none !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }
    #applyIframe {
        border-radius: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border: none !important;
    }
}

@media (max-width: 576px) {
    #howToApplyGuideModal .modal-dialog {
        margin: 0.65rem auto !important;
        max-width: calc(100vw - 20px) !important;
    }
    #howToApplyGuideModal .modal-header {
        padding: 14px 16px 10px !important;
    }
    #howToApplyGuideModal .modal-title {
        font-size: 1.12rem !important;
    }
    #howToApplyGuideModal .modal-body {
        padding: 12px 14px !important;
    }
    .guide-step-card {
        padding: 10px 12px !important;
        gap: 10px !important;
        border-radius: 12px !important;
    }
    .guide-card-icon-box {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.05rem !important;
        border-radius: 10px !important;
    }
    .guide-card-step-title {
        font-size: 0.84rem !important;
    }
    .guide-card-desc {
        font-size: 0.76rem !important;
        line-height: 1.34 !important;
    }
    .guide-tag {
        font-size: 0.64rem !important;
        padding: 1px 5px !important;
    }
    .guide-card-number {
        font-size: 1.15rem !important;
    }
    .guide-reassurance-card {
        padding: 10px 12px !important;
        margin-top: 10px !important;
    }
    .guide-reassurance-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.95rem !important;
    }
    .guide-reassurance-title {
        font-size: 0.80rem !important;
    }
    .guide-reassurance-desc {
        font-size: 0.73rem !important;
    }
    .guide-gmail-reminder-card {
        padding: 10px 12px !important;
        margin-top: 10px !important;
        border-radius: 12px !important;
    }
    .guide-gmail-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 1.0rem !important;
        border-radius: 8px !important;
    }
    .guide-gmail-title {
        font-size: 0.81rem !important;
    }
    .guide-gmail-desc {
        font-size: 0.74rem !important;
        line-height: 1.35 !important;
    }
    #howToApplyGuideModal .modal-footer {
        padding: 10px 14px !important;
    }
    .guide-btn-cta {
        font-size: 0.82rem !important;
        padding: 6px 14px !important;
    }
    
    #learnerLoginOverlay {
        padding: 12px !important;
    }
    #learnerLoginBox {
        max-width: 100% !important;
        border-radius: 20px !important;
    }
    #learnerLoginBox input[type="email"],
    #learnerLoginBox input[type="password"],
    #learnerLoginBox input[type="text"] {
        font-size: 16px !important; /* Prevents iOS auto-zoom */
        height: 46px !important;
    }
    #learnerLoginBtn, #learnerForgotSendBtn, #learnerVerifyBtn, #learnerResetBtn {
        height: 48px !important;
        font-size: 14.5px !important;
    }
}


