/* Student-facing site */
html { scroll-behavior: smooth; }

/* ---------- header / hero / footer ---------- */
.site-header { background: var(--brand-dark); color: #fff; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: var(--brand-dark);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; flex: 0 0 42px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: #b9c7e2; font-size: .75rem; }
.btn-light-outline { color: #fff; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }
.btn-light-outline:hover { background: #fff; color: var(--brand-dark); }

.hero {
    background:
        radial-gradient(1200px 300px at 85% -20%, rgba(217, 164, 65, .25), transparent 60%),
        linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff; padding: 2.2rem 0 4.2rem; text-align: center;
}
.hero h1 { font-size: clamp(1.35rem, 4.2vw, 2.15rem); font-weight: 700; line-height: 1.25; max-width: 780px; margin: .6rem auto .5rem; }
.hero-sub { color: #d6e0f3; max-width: 640px; margin: 0 auto; font-size: clamp(.92rem, 2.6vw, 1.05rem); }
.hero-chip {
    display: inline-block; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
    padding: .3rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
}

.form-wrap { max-width: 900px; margin-top: -2.6rem; padding-bottom: 3rem; position: relative; }
.site-footer { padding: 1.5rem 0 2rem; color: var(--muted); font-size: .88rem; }
.footer-lock { color: #4b5563; }

/* ---------- stepper ---------- */
.stepper {
    top: .5rem; z-index: 1020; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px);
    border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 1rem; overflow: hidden;
}
.stepper-scroll { display: flex; overflow-x: auto; scrollbar-width: none; padding: .35rem .4rem 0; }
.stepper-scroll::-webkit-scrollbar { display: none; }
.step {
    flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .55rem .7rem; color: var(--muted); text-decoration: none; font-size: .82rem; font-weight: 600; white-space: nowrap;
    border-radius: 10px;
}
.step-dot {
    width: 28px; height: 28px; border-radius: 50%; background: #e9edf5; color: #6b7a99;
    display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; flex: 0 0 28px; transition: all .2s;
}
.step.active { color: var(--brand); background: #eef3fb; }
.step.active .step-dot { background: var(--brand); color: #fff; }
.step.done .step-dot { background: #16a34a; color: #fff; }
.step.done .step-dot i::before { content: "\f00c"; }
.form-progress { height: 4px; border-radius: 0; background: #e9edf5; }
.form-progress .progress-bar { background: linear-gradient(90deg, var(--brand-2), var(--accent)); transition: width .3s; }
@media (max-width: 575.98px) {
    .step { padding: .5rem .45rem; }
    .step-label { display: none; }
    .step.active .step-label { display: inline; }
}

/* ---------- info / closed ---------- */
.info-card { margin-bottom: 1rem; border-left: 4px solid var(--accent); }
.info-icon { font-size: 1.4rem; color: var(--accent); padding-top: .15rem; }
.checklist { padding-left: 1.1rem; color: #4b5563; font-size: .9rem; columns: 2; column-gap: 1.5rem; }
@media (max-width: 575.98px) { .checklist { columns: 1; } }
.closed-icon { font-size: 3rem; color: var(--muted); }

/* ---------- form sections ---------- */
.form-section { margin-bottom: 1.25rem; scroll-margin-top: 90px; overflow: hidden; }
.section-head {
    display: flex; align-items: center; gap: .9rem; padding: 1rem 1.25rem;
    background: linear-gradient(180deg, #f8faff, #f1f5fc); border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: 1.12rem; font-weight: 700; margin: 0; color: var(--brand-dark); }
.section-kicker { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; }
.form-section .card-body { padding: 1.25rem; }
@media (min-width: 768px) { .form-section .card-body { padding: 1.5rem; } }
.section-note { background: #f5f8ff; border: 1px solid #dfe8f8; border-radius: 12px; padding: .75rem .9rem; color: #405070; font-size: .88rem; margin-bottom: 1rem; }
.percent-pill { display: inline-block; background: #ecfdf3; color: var(--ok); border: 1px solid #bbf7d0; padding: .25rem .8rem; border-radius: 999px; font-weight: 600; font-size: .85rem; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field-error, .upload-error { color: var(--danger); font-size: .82rem; margin-top: .35rem; }
.field-error:empty, .upload-error:empty { display: none; }
.field-error::before, .upload-error:not(:empty)::before { content: "\f06a"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: .35rem; }

/* ---------- choice & method cards ---------- */
.choice-card, .method-card { display: block; height: 100%; cursor: pointer; margin: 0; position: relative; }
.choice-body, .method-body {
    display: flex; align-items: center; gap: .85rem; padding: .95rem 1rem;
    border: 2px solid #dbe2ee; border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s;
}
.choice-body small, .method-info small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.choice-icon, .method-logo {
    width: 44px; height: 44px; border-radius: 12px; flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center;
    background: #eef3fb; color: var(--brand); font-size: 1.15rem;
}
.choice-check, .method-check { margin-left: auto; color: transparent; font-size: 1.3rem; }
.choice-card:hover .choice-body, .method-card:hover .method-body { border-color: #9fb3d6; }
.choice-card input:checked + .choice-body, .method-card input:checked + .method-body {
    border-color: var(--brand); background: #f3f7ff; box-shadow: 0 0 0 3px rgba(37, 76, 143, .12);
}
.choice-card input:checked + .choice-body .choice-check, .method-card input:checked + .method-body .method-check { color: var(--brand); }
.choice-card input:focus-visible + .choice-body, .method-card input:focus-visible + .method-body { outline: 3px solid rgba(37, 76, 143, .45); outline-offset: 2px; }
.method-jazzcash .method-logo { background: #fdecec; color: #c62828; }
.method-easypaisa .method-logo { background: #e6f7ee; color: #178a4c; }
.method-number {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap;
    margin: -.35rem .6rem 0; padding: .65rem .8rem .55rem; background: #f8fafd; border: 1px dashed #c8d3e6; border-top: 0;
    border-radius: 0 0 12px 12px;
}
.method-number .num { font-size: 1.28rem; font-weight: 700; letter-spacing: .02em; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.field.is-invalid-group .choice-body, .field.is-invalid-group .method-body { border-color: var(--danger); }

.fee-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; margin-bottom: 1.25rem;
    border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.fee-label { font-size: .82rem; opacity: .85; }
.fee-amount { font-size: 1.9rem; font-weight: 800; line-height: 1.15; }
.fee-icon { font-size: 2.2rem; opacity: .35; }
.pay-instructions { display: flex; gap: .5rem; background: #fffbeb; border: 1px solid #fde68a; color: #7a5b0c; border-radius: 12px; padding: .8rem 1rem; font-size: .9rem; }
.pay-instructions i { margin-top: .2rem; }

/* ---------- upload cards ---------- */
.upload-card {
    border: 2px dashed #ccd6e7; border-radius: 14px; padding: .9rem; background: #fbfcff; height: 100%;
    transition: border-color .15s, background .15s; position: relative;
}
.upload-card.dragover { border-color: var(--brand-2); background: #eef4ff; }
.upload-card.has-file { border-style: solid; border-color: #86d0a3; background: #f6fdf9; }
.upload-card.has-error { border-color: var(--danger); background: #fff7f7; }
.upload-head { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .8rem; }
.upload-icon {
    width: 40px; height: 40px; border-radius: 11px; flex: 0 0 40px; background: #e8eefb; color: var(--brand);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.upload-title { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.upload-hint { color: var(--muted); font-size: .78rem; margin-top: .1rem; }
.badge-req { background: #fee2e2; color: #b91c1c; font-weight: 600; font-size: .68rem; vertical-align: middle; margin-left: .25rem; }
.badge-opt { background: #eef0f4; color: #5b6472; font-weight: 600; font-size: .68rem; vertical-align: middle; margin-left: .25rem; }
.upload-empty { text-align: center; padding: .4rem 0 .1rem; }
.btn-choose { background: var(--brand); color: #fff; }
.btn-choose:hover { background: var(--brand-dark); color: #fff; }
.btn-camera { background: #fff; color: var(--brand); border: 1px solid #c3d0e6; }
.upload-formats { font-size: .76rem; color: var(--muted); margin-top: .55rem; }
.upload-selected { display: flex; align-items: center; gap: .75rem; }
.upload-selected.d-none { display: none !important; }
.thumb {
    width: 60px; height: 60px; border-radius: 10px; flex: 0 0 60px; background: #eef1f7; border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 1.7rem; color: #64748b;
}
.thumb-img { width: 100%; height: 100%; object-fit: cover; }
.thumb-pdf { color: #dc2626; }
.meta { flex: 1; }
.fname { font-weight: 600; font-size: .88rem; }
.fsize { font-size: .76rem; color: var(--muted); }
.fstatus { font-size: .76rem; color: var(--ok); font-weight: 600; }
.actions { display: flex; gap: .35rem; }
.btn-icon {
    width: 36px; height: 36px; border-radius: 10px; border: 1px solid #d5dbe6; background: #fff; color: var(--brand);
    display: inline-flex; align-items: center; justify-content: center;
}
.btn-icon:hover { background: #eef3fb; }
.btn-icon.btn-remove { color: var(--danger); }
.btn-icon-outline { width: 44px; height: 44px; border-radius: 10px; border: 1px solid #c3d0e6; background: #fff; color: var(--brand); }
.btn-icon-outline:hover { background: #eef3fb; }
.total-size { margin-top: 1rem; font-size: .85rem; padding: .5rem .8rem; border-radius: 10px; background: #f1f5f9; color: #475569; }
.total-size.warn { background: #fef2f2; color: #b91c1c; }

/* ---------- confirmation ---------- */
.privacy-note { display: flex; gap: .8rem; background: #f4f8ff; border: 1px solid #dbe6fa; border-radius: 12px; padding: .9rem 1rem; font-size: .86rem; color: #3b4a66; margin-bottom: 1.25rem; }
.privacy-note > i { font-size: 1.4rem; color: var(--brand-2); margin-top: .1rem; }
.captcha-box { background: #fafbfe; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; margin-bottom: 1rem; }
.captcha-q {
    font-size: 1.35rem; font-weight: 700; letter-spacing: .08em; color: var(--brand-dark); background: #fff; border: 1px solid #d5dbe6;
    border-radius: 10px; padding: .4rem 1rem; user-select: none; font-family: "Courier New", monospace; min-width: 140px; text-align: center;
}
.captcha-input { width: 110px; max-width: 40%; text-align: center; font-weight: 600; font-size: 1.1rem; }
.captcha-box .invalid-feedback, .captcha-box [data-error-for] { color: var(--danger); font-size: .82rem; margin-top: .4rem; }
.captcha-box [data-error-for]:empty { display: none; }
.consent-check { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem .9rem 2.6rem; }
.consent-check .form-check-input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; }
.consent-check .form-check-label { font-weight: 600; }
.consent-field { margin-bottom: 1.25rem; }
.submit-area { margin-top: .5rem; }
.upload-progress { height: 10px; border-radius: 6px; margin-bottom: .8rem; }
#submitBtn { padding: .85rem 1rem; font-size: 1.05rem; }

/* ---------- success ---------- */
.success-wrap { margin-top: -2.6rem; }
body:not(.page-slip) .success-wrap { margin-top: 2rem; }
.success-card { max-width: 720px; margin: 0 auto; }
.success-badge {
    width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 2.4rem;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px #f0fdf4; animation: pop .5s ease-out;
}
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.appno-card { background: linear-gradient(135deg, #f3f7ff, #eaf1ff); border: 1px solid #cdddf7; border-radius: 16px; padding: 1.2rem 1rem; }
.appno-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.appno { font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 800; color: var(--brand); letter-spacing: .04em; word-break: break-all; }
.save-note { margin: 1rem 0 1.5rem; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: .6rem .9rem; font-weight: 500; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .75rem; }
.summary-grid > div { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: .65rem .85rem; }
.summary-grid span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.summary-grid strong { font-size: .95rem; }
.next-steps { margin-top: 1.5rem; background: #f8fafc; border-radius: 12px; padding: 1rem 1.2rem; }
.next-steps ol { margin: 0; padding-left: 1.2rem; color: #4b5563; font-size: .92rem; }

/* ---------- slip / lookup ---------- */
.slip-wrap { margin-top: 1.5rem; }
.page-slip .form-wrap { margin-top: 1.5rem; }
.slip { overflow: hidden; }
.slip-head {
    background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; padding: 1.3rem 1.5rem;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.slip-college { font-size: 1.35rem; font-weight: 800; }
.slip-title { font-size: .9rem; opacity: .9; }
.slip-sub { font-size: .8rem; opacity: .8; margin-top: .2rem; }
.slip-no { background: #fff; color: var(--brand); border-radius: 12px; padding: .6rem 1rem; text-align: center; }
.slip-no span { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.slip-no strong { font-size: 1.25rem; letter-spacing: .03em; }
.slip-body { padding: 1.25rem 1.5rem 1.5rem; }
.slip-status { display: flex; flex-wrap: wrap; gap: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.slip-status span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: .2rem; }
.slip-h { font-size: .95rem; font-weight: 700; color: var(--brand-dark); margin: 1.2rem 0 .5rem; }
.slip-dl { display: grid; grid-template-columns: minmax(130px, 220px) 1fr; margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.slip-dl dt, .slip-dl dd { padding: .5rem .8rem; margin: 0; border-bottom: 1px solid var(--line); }
.slip-dl dt { background: #f8fafc; color: var(--muted); font-weight: 600; font-size: .85rem; }
.slip-dl dd { word-break: break-word; }
.slip-dl dt:last-of-type, .slip-dl dd:last-of-type { border-bottom: 0; }
@media (max-width: 575.98px) {
    .slip-dl { grid-template-columns: 1fr; }
    .slip-dl dt { border-bottom: 0; padding-bottom: 0; background: #fff; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
    .slip-dl dd { padding-top: .1rem; }
}
.slip-docs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .35rem .75rem; }
.slip-docs i { color: #16a34a; margin-right: .35rem; }
.slip-note { margin: 1.4rem 0 0; font-size: .82rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 1rem; }

@media print {
    .site-header, .site-footer, .stepper { display: none !important; }
    .form-wrap { margin: 0 !important; max-width: 100%; padding: 0; }
    .slip { border: 1px solid #999; box-shadow: none; }
    .slip-head { background: #1b3a6b !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .badge-soft { border: 1px solid #999; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
