/* =========================================================================
   PSTA — Online Admission Form (public)  ·  /static/lms/css/admission.css
   Brand: purple #2a2144 / #3b305f, accent orange #ff9900, Poppins
   ========================================================================= */
.adm {
    --a-primary: #2a2144;
    --a-primary-2: #3b305f;
    --a-primary-3: #4d3d7a;
    --a-accent: #ff9900;
    --a-accent-d: #e68a00;
    --a-accent-50: #fff6e8;
    --a-ink: #241d3b;
    --a-text: #4a4560;
    --a-muted: #7d7896;
    --a-line: #e3e0ee;
    --a-bg: #f6f5fb;
    --a-card: #ffffff;
    --a-ok: #16a34a;
    --a-ok-50: #eaf8ef;
    --a-err: #dc2626;
    --a-err-50: #fff1f1;
    --a-radius: 16px;
    --a-shadow: 0 6px 24px rgba(42, 33, 68, .07), 0 1px 2px rgba(42, 33, 68, .05);
    background: var(--a-bg);
    color: var(--a-text);
    padding-bottom: 64px;
    font-size: 15px;
    line-height: 1.55;
}
.adm *, .adm *::before, .adm *::after { box-sizing: border-box; }
/* Safety net: nothing inside the admission pages may create a sideways scroll on phones. */
.adm { overflow-x: clip; }
.adm img, .adm svg, .adm video { max-width: 100%; }
.adm-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.adm [hidden] { display: none !important; }

/* ---------- Hero ---------- */
.adm-hero {
    background: radial-gradient(circle at 85% 20%, rgba(255, 153, 0, .22), transparent 42%), linear-gradient(135deg, var(--a-primary) 0%, var(--a-primary-2) 55%, var(--a-primary-3) 100%);
    color: #fff;
    padding: 38px 0 72px;
}
.adm-hero-in { display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.adm-hero-text { flex: 1 1 520px; min-width: 0; }
.adm-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .3px; color: #ffd08a; }
.adm-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; margin: 12px 0 8px; line-height: 1.15; }
.adm-hero p { color: rgba(255, 255, 255, .86); margin: 0 0 14px; max-width: 640px; }
.adm-hero p strong { color: #fff; }
.adm-hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.adm-hero-points li { display: flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .92); }
.adm-hero-points i { color: var(--a-accent); }
.adm-hero-help { flex: 0 1 300px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--a-radius); padding: 16px; display: grid; gap: 10px; }
.adm-hero-help-title { font-weight: 700; color: #fff; font-size: 14.5px; }
.adm-hero .adm-btn-ghost { background: rgba(255, 255, 255, .1); color: #fff !important; border-color: rgba(255, 255, 255, .28); }
.adm-hero .adm-btn-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- Layout ---------- */
.adm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; margin-top: -44px; align-items: start; position: relative; z-index: 2; }
.adm-form { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.adm-layout > *, .adm-form > *, .adm-card, .adm-picker, .adm-field, .adm-course-list, .adm-course { min-width: 0; max-width: 100%; }
.adm-side { position: sticky; top: 76px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }

/* ---------- Cards ---------- */
.adm-card { background: var(--a-card); border-radius: var(--a-radius); box-shadow: var(--a-shadow); border: 1px solid #ece9f5; padding: 22px 24px 24px; scroll-margin-top: 130px; transition: border-color .25s; }
.adm-card.is-complete { border-color: #cfe9d8; }
.adm-card-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.adm-card-head h2 { font-size: 1.18rem; font-weight: 700; color: var(--a-ink); margin: 2px 0 2px; line-height: 1.3; }
.adm-card-head p { margin: 0; color: var(--a-muted); font-size: 13.5px; }
.adm-card-head > div { flex: 1; min-width: 0; }
.adm-step-no { flex: 0 0 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--a-accent), #ffb547); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 4px 12px rgba(255, 153, 0, .3); }
.adm-done-tick { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--a-ok-50); color: var(--a-ok); display: flex; align-items: center; justify-content: center; font-size: 13px; opacity: 0; transform: scale(.6); transition: .25s; }
.adm-card.is-complete .adm-done-tick { opacity: 1; transform: scale(1); }

/* ---------- Fields ---------- */
.adm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.adm-span-2 { grid-column: 1 / -1; }
.adm-field { min-width: 0; margin-bottom: 4px; }
.adm-card > .adm-field + .adm-field { margin-top: 18px; }
.adm-field label, .adm-label { display: block; font-weight: 600; color: var(--a-ink); font-size: 14px; margin-bottom: 7px; }
.adm-field .req { color: var(--a-err); }
.adm-field .opt { color: var(--a-muted); font-weight: 500; font-size: 12.5px; }
.adm-age { float: right; font-weight: 600; font-size: 12.5px; color: var(--a-primary-3); background: #f1eefa; border-radius: 999px; padding: 1px 9px; }
.adm-age:empty { display: none; }
.adm-input {
    width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--a-line); border-radius: 12px; background: #fff;
    font: inherit; font-size: 16px; color: var(--a-ink); transition: border-color .2s, box-shadow .2s, background .2s; appearance: none; -webkit-appearance: none;
}
textarea.adm-input { min-height: 84px; resize: vertical; line-height: 1.5; }
select.adm-input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237d7896' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; cursor: pointer; }
.adm-input::placeholder { color: #aaa6bd; }
.adm-input:hover { border-color: #cbc6de; }
.adm-input:focus { outline: none; border-color: var(--a-accent); box-shadow: 0 0 0 4px rgba(255, 153, 0, .16); }
.adm-input.is-valid { border-color: #b7e2c6; }
.adm-input.is-invalid { border-color: var(--a-err); background: var(--a-err-50); }
.adm-input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }
.adm-input-icon { position: relative; }
.adm-input-icon > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #9b96b3; font-size: 15px; pointer-events: none; }
.adm-input-icon > i.fa-whatsapp { color: #25d366; font-size: 17px; }
.adm-input-icon > .adm-input { padding-left: 42px; }
.adm-hint { font-size: 12.5px; color: var(--a-muted); margin-top: 6px; }
.adm-err { color: var(--a-err); font-size: 12.8px; font-weight: 600; margin-top: 6px; display: none; }
.adm-err:not(:empty) { display: flex; gap: 6px; align-items: flex-start; }
.adm-err:not(:empty)::before { content: "\f06a"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; margin-top: 1px; }
.adm-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 9px; background: var(--a-accent-50); border: 1px solid #ffe0b0; color: #7a4a00; border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.adm-note > i { color: var(--a-accent); margin-top: 3px; }
.adm-note strong { color: #5c3800; }
.adm-note-soft { background: #f6f4fd; border-color: #e3ddf6; color: var(--a-text); }
.adm-note-soft > i { color: var(--a-primary-3); }
.adm-note-soft strong { color: var(--a-primary); }
.adm-rec { display: inline-block; vertical-align: 1px; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--a-ok-50); color: var(--a-ok); border: 1px solid #c8ebd4; font-size: 11px; font-weight: 700; letter-spacing: .2px; }
.adm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Segmented radios */
.adm-seg { display: flex; gap: 8px; flex-wrap: wrap; border-radius: 14px; }
.adm-seg-opt { flex: 1 1 0; min-width: 96px; margin: 0 !important; position: relative; cursor: pointer; }
.adm-seg-opt input, .adm-pill input, .adm-mode input, .adm-course input, .adm-declare input, .adm-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.adm-seg-opt span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border: 1.5px solid var(--a-line); border-radius: 12px; font-weight: 600; color: var(--a-text); background: #fff; transition: .18s; padding: 8px 12px; }
.adm-seg-opt:hover span { border-color: #cbc6de; }
.adm-seg-opt input:checked + span { border-color: var(--a-accent); background: var(--a-accent-50); color: var(--a-primary); box-shadow: 0 0 0 3px rgba(255, 153, 0, .14); }
.adm-seg-opt input:focus-visible + span { box-shadow: 0 0 0 4px rgba(255, 153, 0, .3); }
.adm-seg.is-invalid .adm-seg-opt span { border-color: var(--a-err); background: var(--a-err-50); }

/* Switch */
.adm-switch { display: flex !important; align-items: center; gap: 10px; margin: 10px 0 0 !important; font-weight: 500 !important; font-size: 13.5px !important; color: var(--a-text) !important; cursor: pointer; position: relative; }
.adm-switch-ui { flex: 0 0 40px; height: 23px; border-radius: 999px; background: #d9d5e6; position: relative; transition: .2s; }
.adm-switch-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: .2s; }
.adm-switch input:checked + .adm-switch-ui { background: #25d366; }
.adm-switch input:checked + .adm-switch-ui::after { left: 20px; }
.adm-switch input:focus-visible + .adm-switch-ui { box-shadow: 0 0 0 4px rgba(37, 211, 102, .25); }

/* ---------- Course picker ---------- */
.adm-picker { border: 1.5px solid var(--a-line); border-radius: 14px; padding: 12px; background: #fcfbfe; }
.adm-picker.is-invalid { border-color: var(--a-err); background: var(--a-err-50); }
.adm-picker-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0; }
.adm-search { position: relative; flex: 1 1 220px; min-width: 0; }
.adm-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9b96b3; }
.adm-search input { width: 100%; min-height: 46px; border: 1.5px solid var(--a-line); border-radius: 12px; padding: 10px 12px 10px 40px; font: inherit; font-size: 16px; background: #fff; color: var(--a-ink); }
.adm-search input:focus { outline: none; border-color: var(--a-accent); box-shadow: 0 0 0 4px rgba(255, 153, 0, .16); }
.adm-count { font-size: 13px; font-weight: 700; color: var(--a-primary-3); background: #efebfa; border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.adm-count.has { background: var(--a-accent); color: #fff; }
/* Selected courses — a numbered list (not pills): long course names wrap onto new lines
   and can never push the card wider than the screen. */
.adm-selected { margin-top: 12px; min-width: 0; max-width: 100%; border: 1.5px solid #ffd699; background: #fffaf2; border-radius: 12px; padding: 10px; }
.adm-selected-head { display: flex; align-items: center; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; margin: 0 2px 8px; font-size: 12.8px; font-weight: 700; color: #7a4a00; }
.adm-selected-head i { color: var(--a-accent); margin-right: 5px; }
.adm-selected-head small { font-size: 12px; font-weight: 600; color: var(--a-muted); }
.adm-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; min-width: 0; }
.adm-chip { display: flex; align-items: center; gap: 9px; min-width: 0; max-width: 100%; margin: 0; background: #fff; border: 1px solid #f1dcb8; border-radius: 10px; padding: 6px 6px 6px 9px; font-size: 13px; font-weight: 600; color: var(--a-ink); line-height: 1.35; text-align: left; }
.adm-chip-no { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--a-primary); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.adm-chip-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.adm-chip-x { flex: 0 0 34px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: #f5f3fb; color: var(--a-muted); display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 22px; font-weight: 400; line-height: 1; cursor: pointer; transition: background .15s, color .15s; }
.adm-chip-x:hover, .adm-chip-x:focus-visible { background: var(--a-err-50); color: var(--a-err); outline: none; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.adm-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.adm-course-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.adm-course { position: relative; display: flex !important; align-items: flex-start; gap: 12px; width: 100%; margin: 0 !important; padding: 13px 14px; background: #fff; border: 1.5px solid var(--a-line); border-radius: 13px; cursor: pointer; transition: border-color .18s, background .18s, box-shadow .18s, transform .1s; font-weight: 400 !important; min-height: 64px; }
.adm-course:hover { border-color: #c9c3dd; }
.adm-course:active { transform: scale(.995); }
.adm-course.is-checked { border-color: var(--a-accent); background: var(--a-accent-50); box-shadow: 0 0 0 3px rgba(255, 153, 0, .12); }
.adm-course.is-extra { display: none !important; }
.adm-course-list.show-all .adm-course.is-extra, .adm-course-list.searching .adm-course.is-extra { display: flex !important; }
.adm-course.is-filtered, .adm-course-list.searching .adm-course.is-filtered { display: none !important; }
.adm-check { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 7px; border: 2px solid #c9c3dd; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; transition: .18s; margin-top: 1px; }
.adm-check i { opacity: 0; transform: scale(.6); transition: .18s; }
.adm-course.is-checked .adm-check, .adm-declare input:checked + .adm-check { background: var(--a-accent); border-color: var(--a-accent); }
.adm-course.is-checked .adm-check i, .adm-declare input:checked + .adm-check i { opacity: 1; transform: scale(1); }
.adm-course input:focus-visible + .adm-check { box-shadow: 0 0 0 4px rgba(255, 153, 0, .3); }
.adm-course-body { min-width: 0; flex: 1; display: grid; gap: 4px; }
.adm-course-name { font-weight: 600; color: var(--a-ink); font-size: 14.2px; line-height: 1.35; overflow-wrap: anywhere; }
.adm-course-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.3px; color: var(--a-muted); }
.adm-course-meta i { margin-right: 3px; opacity: .8; }
.adm-badge { position: absolute; top: -8px; right: 10px; max-width: calc(100% - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--a-primary); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .3px; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; }
.adm-more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; min-height: 44px; border: 1.5px dashed #cbc6de; border-radius: 12px; background: #fff; color: var(--a-primary-2); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.adm-more:hover { border-color: var(--a-accent); color: var(--a-accent-d); }
.adm-empty { padding: 14px; text-align: center; color: var(--a-muted); font-size: 13.5px; grid-column: 1 / -1; }

/* Study mode cards */
.adm-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-radius: 14px; }
.adm-mode { margin: 0 !important; cursor: pointer; position: relative; font-weight: 400 !important; }
.adm-mode-box { display: grid; gap: 4px; height: 100%; padding: 14px; border: 1.5px solid var(--a-line); border-radius: 14px; background: #fff; transition: .18s; }
.adm-mode-box i { font-size: 20px; color: var(--a-primary-3); margin-bottom: 4px; }
.adm-mode-box strong { color: var(--a-ink); font-size: 14.5px; }
.adm-mode-box small { color: var(--a-muted); font-size: 12.5px; line-height: 1.45; }
.adm-mode:hover .adm-mode-box { border-color: #c9c3dd; }
.adm-mode input:checked + .adm-mode-box { border-color: var(--a-accent); background: var(--a-accent-50); box-shadow: 0 0 0 3px rgba(255, 153, 0, .14); }
.adm-mode input:checked + .adm-mode-box i { color: var(--a-accent-d); }
.adm-mode input:focus-visible + .adm-mode-box { box-shadow: 0 0 0 4px rgba(255, 153, 0, .3); }
.adm-modes.is-invalid .adm-mode-box { border-color: var(--a-err); background: var(--a-err-50); }

/* Timing pills */
.adm-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-pill { margin: 0 !important; cursor: pointer; position: relative; font-weight: 400 !important; }
.adm-pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--a-line); background: #fff; font-weight: 600; font-size: 13.5px; color: var(--a-text); transition: .18s; }
.adm-pill input:checked + span { background: var(--a-primary); border-color: var(--a-primary); color: #fff; }
.adm-pill input:focus-visible + span { box-shadow: 0 0 0 4px rgba(255, 153, 0, .3); }

/* Photo */
.adm-photo { position: relative; display: flex; align-items: center; gap: 18px; min-height: 150px; padding: 18px; border: 2px dashed #cdc7e0; border-radius: 16px; background: #fcfbfe; cursor: pointer; transition: .2s; }
.adm-photo:hover, .adm-photo.is-drag { border-color: var(--a-accent); background: var(--a-accent-50); }
.adm-photo.is-invalid { border-color: var(--a-err); background: var(--a-err-50); }
.adm-photo.has-photo { border-style: solid; border-color: #bfe3cc; background: #f6fcf8; cursor: default; }
.adm-photo-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.adm-photo.has-photo .adm-photo-input { pointer-events: none; }
.adm-photo-cta { display: grid; justify-items: center; text-align: center; gap: 6px; width: 100%; color: var(--a-muted); font-size: 13px; }
.adm-photo-cta strong { color: var(--a-ink); font-size: 15px; }
.adm-photo-icon { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--a-accent), #ffb547); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 6px 16px rgba(255, 153, 0, .3); }
.adm-photo-preview { flex: 0 0 104px; width: 104px; height: 128px; border-radius: 12px; overflow: hidden; background: #eee; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.adm-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-photo-done { display: grid; gap: 6px; font-size: 13px; color: var(--a-muted); position: relative; z-index: 2; }
.adm-photo-done strong { color: var(--a-ok); font-size: 15px; }
.adm-tips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12.8px; color: var(--a-muted); }
.adm-tips i { color: var(--a-ok); margin-right: 5px; }

/* Declaration */
.adm-declare { display: flex !important; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--a-line); border-radius: 14px; background: #fcfbfe; font-weight: 400 !important; font-size: 13.8px !important; color: var(--a-text) !important; line-height: 1.55; cursor: pointer; position: relative; margin: 6px 0 0 !important; }
.adm-declare a { color: var(--a-primary-3); font-weight: 600; }
.adm-declare.is-invalid { border-color: var(--a-err); background: var(--a-err-50); }
.adm-declare input:focus-visible + .adm-check { box-shadow: 0 0 0 4px rgba(255, 153, 0, .3); }

/* ---------- Buttons ---------- */
.adm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 18px; border-radius: 12px; border: 1.5px solid transparent; font: inherit; font-weight: 700; font-size: 14.5px; text-decoration: none !important; cursor: pointer; transition: .18s; line-height: 1.2; text-align: center; }
.adm-btn-primary { background: linear-gradient(135deg, var(--a-accent), #ffad33); color: #fff !important; box-shadow: 0 8px 20px rgba(255, 153, 0, .32); }
.adm-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(255, 153, 0, .38); }
.adm-btn-primary:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.adm-btn-ghost { background: #fff; color: var(--a-primary) !important; border-color: var(--a-line); }
.adm-btn-ghost:hover { border-color: var(--a-primary-3); }
.adm-btn-wa { background: #25d366; color: #fff !important; }
.adm-btn-wa:hover { background: #1ebe5a; }
.adm-btn-lg { min-height: 56px; font-size: 16px; width: 100%; margin-top: 18px; }
.adm-btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.adm-btn-block { width: 100%; }
.adm-link { background: none; border: 0; padding: 0; color: var(--a-primary-3); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; margin-left: 4px; }
.adm-privacy { text-align: center; font-size: 12.5px; color: var(--a-muted); margin: 12px 0 0; }
.adm-privacy i { color: var(--a-ok); margin-right: 4px; }
.adm .grecaptcha-badge { visibility: hidden; }

/* Top alert */
.adm-alert { display: flex; gap: 10px; align-items: flex-start; background: var(--a-err-50); border: 1px solid #fecaca; color: #991b1b; border-radius: 14px; padding: 13px 16px; font-weight: 600; font-size: 14px; scroll-margin-top: 140px; }
.adm-alert.is-info { background: #eef6ff; border-color: #bfdbfe; color: #1e40af; }

/* ---------- Sidebar ---------- */
.adm-side-card { background: #fff; border-radius: var(--a-radius); box-shadow: var(--a-shadow); border: 1px solid #ece9f5; padding: 18px; }
.adm-progress-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.adm-progress-head strong { display: block; color: var(--a-ink); font-size: 15px; }
.adm-progress-head span { font-size: 12.5px; color: var(--a-muted); }
.adm-ring { --p: 0; flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(var(--a-accent) calc(var(--p) * 1%), #eeebf6 0); display: flex; align-items: center; justify-content: center; position: relative; }
.adm-ring::before { content: ""; position: absolute; inset: 6px; background: #fff; border-radius: 50%; }
.adm-ring span { position: relative; font-weight: 800; font-size: 13.5px; color: var(--a-primary); }
.adm-checklist { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 2px; }
.adm-checklist a { min-width: 0; overflow-wrap: anywhere; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--a-text); text-decoration: none; font-size: 13.8px; font-weight: 500; }
.adm-checklist a:hover { background: #f5f3fb; }
.adm-cl-dot { flex: 0 0 24px; height: 24px; border-radius: 50%; background: #efecf7; color: var(--a-muted); display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; }
.adm-cl-dot i { display: none; }
.adm-checklist li.done .adm-cl-dot { background: var(--a-ok); color: #fff; }
.adm-checklist li.done .adm-cl-dot i { display: inline; }
.adm-checklist li.done .adm-cl-dot b { display: none; }
.adm-checklist li.done a { color: var(--a-ink); }
.adm-side-courses { border-top: 1px solid var(--a-line); padding-top: 10px; margin-bottom: 12px; }
.adm-side-label { font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--a-muted); margin-bottom: 6px; }
.adm-side-courses ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.adm-side-courses li { font-size: 13px; font-weight: 600; color: var(--a-ink); padding-left: 14px; position: relative; line-height: 1.4; overflow-wrap: anywhere; }
.adm-side-courses li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 2px; background: var(--a-accent); }
.adm-help strong, .adm-why strong { color: var(--a-ink); display: block; margin-bottom: 4px; }
.adm-help p { font-size: 13px; color: var(--a-muted); margin: 0 0 12px; }
.adm-why ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 9px; font-size: 13.4px; }
.adm-why i { width: 26px; height: 26px; border-radius: 8px; background: #f2effa; color: var(--a-primary-3); display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; font-size: 12px; }

/* ---------- Mobile progress strip ---------- */
.adm-strip { display: none; }

/* ---------- Review modal ---------- */
.adm-modal { position: fixed; inset: 0; z-index: 3000; background: rgba(24, 18, 43, .62); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.adm-modal-box { background: #fff; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: admPop .22s ease-out; }
@keyframes admPop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.adm-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--a-line); }
.adm-modal-head h3 { margin: 0; font-size: 1.1rem; color: var(--a-ink); font-weight: 700; }
.adm-modal-head h3 i { color: var(--a-accent); margin-right: 6px; }
.adm-x { width: 38px; height: 38px; border-radius: 10px; border: 0; background: #f3f1f9; color: var(--a-text); cursor: pointer; font-size: 15px; }
.adm-modal-body { padding: 18px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.adm-modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--a-line); background: #fbfafe; }
.adm-modal-foot .adm-btn-primary { flex: 1 1 auto; max-width: 280px; }
.adm-review-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.adm-review-photo { width: 64px; height: 78px; border-radius: 10px; object-fit: cover; background: #eee; flex: 0 0 64px; }
.adm-review-photo[src=""] { display: none; }
.adm-review-top > div { min-width: 0; }
.adm-review-name { font-weight: 800; font-size: 1.15rem; color: var(--a-ink); line-height: 1.25; overflow-wrap: anywhere; }
.adm-review-sub { color: var(--a-muted); font-size: 13px; }
.adm-review-warn { display: flex; gap: 10px; background: var(--a-accent-50); border: 1px solid #ffe0b0; color: #7a4a00; border-radius: 12px; padding: 11px 13px; font-size: 13.2px; margin-bottom: 14px; line-height: 1.5; }
.adm-review-warn > i { color: var(--a-accent); margin-top: 3px; }
.adm-review-list { display: grid; grid-template-columns: minmax(110px, 150px) minmax(0, 1fr); margin: 0; border: 1px solid var(--a-line); border-radius: 14px; overflow: hidden; }
.adm-review-list dt, .adm-review-list dd { margin: 0; padding: 9px 12px; font-size: 13.5px; border-bottom: 1px solid #f0eef6; }
.adm-review-list dt { color: var(--a-muted); background: #fbfafe; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.adm-review-list dd { color: var(--a-ink); font-weight: 600; overflow-wrap: anywhere; }
.adm-review-list dt:nth-last-of-type(1), .adm-review-list dd:last-child { border-bottom: 0; }
.adm-review-courses { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: rc; }
.adm-review-courses li { display: flex; gap: 8px; align-items: flex-start; min-width: 0; counter-increment: rc; }
.adm-review-courses li::before { content: counter(rc); flex: 0 0 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--a-accent); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.adm-review-courses li span { min-width: 0; overflow-wrap: anywhere; }
.adm-muted { color: var(--a-muted); font-weight: 500; }

/* ---------- Processing overlay ---------- */
.adm-overlay { position: fixed; inset: 0; z-index: 3100; background: rgba(246, 245, 251, .94); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.adm-overlay-box { background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(42, 33, 68, .18); padding: 34px 28px 26px; width: 100%; max-width: 420px; text-align: center; }
.adm-overlay-box h3 { color: var(--a-ink); margin: 18px 0 6px; font-size: 1.25rem; font-weight: 800; }
.adm-overlay-box p { color: var(--a-muted); margin: 0; min-height: 24px; font-size: 14px; }
.adm-spinner { width: 62px; height: 62px; margin: 0 auto; border-radius: 50%; border: 5px solid #efecf7; border-top-color: var(--a-accent); border-right-color: var(--a-primary-2); animation: admSpin .9s linear infinite; }
@keyframes admSpin { to { transform: rotate(360deg); } }
.adm-ov-success i { font-size: 62px; color: var(--a-ok); animation: admPop .3s ease-out; }
.adm-ov-bar { height: 8px; background: #f0eef6; border-radius: 999px; overflow: hidden; margin: 20px 0 16px; }
.adm-ov-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--a-primary-2), var(--a-accent)); border-radius: 999px; transition: width .35s ease; }
.adm-ov-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; text-align: left; font-size: 13.4px; color: var(--a-muted); }
.adm-ov-steps li { display: flex; align-items: center; gap: 9px; }
.adm-ov-steps li::before { content: ""; flex: 0 0 18px; height: 18px; border-radius: 50%; border: 2px solid #d9d5e6; background: #fff; }
.adm-ov-steps li.active { color: var(--a-ink); font-weight: 600; }
.adm-ov-steps li.active::before { border-color: var(--a-accent); border-top-color: transparent; animation: admSpin .8s linear infinite; }
.adm-ov-steps li.done { color: var(--a-ok); }
.adm-ov-steps li.done::before { background: var(--a-ok); border-color: var(--a-ok); box-shadow: inset 0 0 0 3px #fff; animation: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .adm-layout { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
    .adm-side { position: static; }
    .adm-progress-card { display: none; }
    .adm-hero { padding: 26px 0 30px; }
    .adm-hero-done { padding-bottom: 70px; }
    .adm-done-layout { margin-top: -48px; }
    .adm-strip { display: block; position: sticky; top: 60px; z-index: 900; background: rgba(255, 255, 255, .97); box-shadow: 0 4px 14px rgba(42, 33, 68, .08); backdrop-filter: blur(6px); }
    .adm-strip-in { display: flex; align-items: center; gap: 6px; max-width: 1180px; margin: 0 auto; padding: 8px 16px; }
    .adm-strip-dot { flex: 1 1 0; display: flex; justify-content: center; text-decoration: none; }
    .adm-strip-dot span { width: 28px; height: 28px; border-radius: 50%; background: #efecf7; color: var(--a-muted); font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: .2s; }
    .adm-strip-dot.done span { background: var(--a-ok); color: #fff; }
    .adm-strip-dot.current span { box-shadow: 0 0 0 3px rgba(255, 153, 0, .35); }
    .adm-strip-pct { flex: 0 0 auto; font-weight: 800; font-size: 13px; color: var(--a-primary); min-width: 40px; text-align: right; }
    .adm-strip-bar { height: 3px; background: #efecf7; }
    .adm-strip-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--a-accent), #ffb547); transition: width .3s; }
    .adm-card { scroll-margin-top: 130px; }
}
@media (max-width: 767.98px) {
    .adm { font-size: 14.5px; }
    .adm-wrap { padding: 0 12px; }
    .adm-hero-help { flex: 1 1 100%; grid-template-columns: 1fr 1fr; }
    .adm-hero-help-title { grid-column: 1 / -1; }
    .adm-card { padding: 18px 16px 20px; border-radius: 16px; }
    .adm-card-head { gap: 12px; margin-bottom: 14px; }
    .adm-step-no { flex-basis: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
    .adm-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .adm-course-list { grid-template-columns: minmax(0, 1fr); }
    .adm-chips { grid-template-columns: minmax(0, 1fr); }
    .adm-picker { padding: 10px; }
    .adm-search { flex-basis: 100%; }
    .adm-modes { grid-template-columns: minmax(0, 1fr); }
    .adm-mode-box { grid-template-columns: 32px 1fr; align-items: center; column-gap: 10px; padding: 12px 14px; }
    .adm-mode-box i { grid-row: span 2; margin: 0; text-align: center; }
    .adm-photo { flex-direction: column; text-align: center; min-height: 170px; }
    .adm-photo.has-photo { flex-direction: row; text-align: left; }
    .adm-review-list { grid-template-columns: minmax(0, 1fr); }
    .adm-review-list dt { border-bottom: 0; padding-bottom: 0; background: none; font-size: 12px; }
    .adm-review-list dd { padding-top: 2px; }
    .adm-modal { align-items: flex-end; padding: 0; }
    .adm-modal-box { max-height: 92vh; border-radius: 20px 20px 0 0; }
    .adm-modal-foot { position: sticky; bottom: 0; }
    .adm-modal-foot .adm-btn { flex: 1 1 0; max-width: none; }
}
@media (max-width: 380px) {
    .adm-hero-help { grid-template-columns: 1fr; }
    .adm-seg-opt { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .adm *, .adm *::before, .adm *::after { animation: none !important; transition: none !important; }
}

/* =========================================================================
   Success / confirmation page
   ========================================================================= */
.adm-hero-done { text-align: center; padding: 40px 0 80px; }
.adm-hero-done h1 { margin-top: 14px; }
.adm-hero-done p { margin: 0 auto; max-width: 620px; }
.adm-done-badge { width: 78px; height: 78px; margin: 0 auto; border-radius: 50%; background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 34px; box-shadow: 0 0 0 10px rgba(34, 197, 94, .18), 0 14px 30px rgba(0, 0, 0, .25); animation: admPop .45s ease-out; }
.adm-done-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; margin-top: -48px; position: relative; z-index: 2; align-items: start; }
.adm-done-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.adm-done-layout > * { min-width: 0; }
.adm-ref-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-left: 5px solid var(--a-accent); }
.adm-ref { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: 2px; color: var(--a-primary); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.adm-done-courses { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.adm-done-courses .adm-chip { padding: 9px 12px; background: #f7f5fc; border-color: #e6e1f3; }
.adm-done-courses .adm-chip > i { flex: 0 0 auto; color: var(--a-accent); }
.adm-done-msgs { display: grid; gap: 10px; }
.adm-done-msg { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
.adm-done-msg > i { font-size: 20px; margin-top: 2px; }
.adm-done-msg strong { display: block; color: var(--a-ink); overflow-wrap: anywhere; }
.adm-done-msg span { display: block; color: var(--a-text); }
.adm-done-msg.ok { background: var(--a-ok-50); border: 1px solid #c8ebd4; }
.adm-done-msg.ok > i { color: var(--a-ok); }
.adm-done-msg.warn { background: var(--a-accent-50); border: 1px solid #ffe0b0; }
.adm-done-msg.warn > i { color: var(--a-accent); }
.adm-done-msg.wa { background: #effcf4; border: 1px solid #c9f0d8; }
.adm-done-msg.wa > i { color: #25d366; }
.adm-ur { font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif; margin-top: 4px; }
.adm-done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.adm-timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.adm-timeline li { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.adm-timeline li:last-child { padding-bottom: 0; }
.adm-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: #ebe8f4; }
.adm-tl-dot { flex: 0 0 32px; height: 32px; border-radius: 50%; background: #efecf7; color: var(--a-muted); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.adm-timeline li.done .adm-tl-dot { background: var(--a-ok); color: #fff; }
.adm-timeline li.done::before { background: linear-gradient(var(--a-ok), #ebe8f4); }
.adm-timeline li.now .adm-tl-dot { background: var(--a-accent); color: #fff; box-shadow: 0 0 0 5px rgba(255, 153, 0, .18); }
.adm-timeline li > div strong { display: block; color: var(--a-ink); font-size: 14.5px; margin-top: 4px; }
.adm-timeline li > div span { display: block; color: var(--a-muted); font-size: 13.2px; }
.adm-why a { color: var(--a-text); text-decoration: none; display: flex; align-items: center; }
.adm-why a:hover { color: var(--a-primary-3); }
@media (max-width: 991.98px) {
    .adm-done-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
    .adm-done-courses { grid-template-columns: minmax(0, 1fr); }
    .adm-done-actions .adm-btn { flex: 1 1 100%; }
    .adm-hero-done { padding: 30px 0 70px; }
}
@media print {
    .navbar, footer, .adm-side, .adm-done-actions, .adm-hero-done .adm-done-badge, #admCopyRef { display: none !important; }
    .adm, .adm-hero { background: #fff !important; color: #000 !important; }
    .adm-hero h1, .adm-hero p { color: #000 !important; }
    .adm-done-layout { margin-top: 0; grid-template-columns: 1fr; }
    .adm-card { box-shadow: none; border: 1px solid #ccc; }
}
