/* =========================================================
   PPDB (formulir & sukses) dan 404 — Al Khoir Boyolali
   Dipakai bersama landing.css; mandiri dari style.css.
   ========================================================= */
.ppdb-body { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #fff, #F3F9FF 40%, #fff); }
.lp-back { margin-left: auto; }

/* ---- formulir ---- */
.ppdb-page { max-width: 820px; margin: 0 auto; }
.ppdb-body .sub-head::after { content: ''; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, rgba(251, 253, 255, 0), #FBFDFF 96%); }
.ppdb-body .sub-foot { padding-top: 26px; }
.ppdb-honeypot { position: absolute; left: -9999px; top: -9999px; }

.ppdb-form-card { background: #fff; border: 1px solid var(--lp-line); border-radius: clamp(24px, 3vw, 36px); box-shadow: 0 30px 70px rgba(4, 46, 119, .12); padding: clamp(22px, 4vw, 44px); }
.ppdb-page .alert { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; padding: 14px 16px; border-radius: 18px; font-size: 14px; line-height: 1.5; background: #fff; box-shadow: 0 12px 30px rgba(4, 46, 119, .1); }
.ppdb-page .alert .ic { margin-top: 2px; font-size: 19px; }
.ppdb-page .alert-error { color: #B0123E; border: 1px solid #FFC9D6; background: #FFF4F7; }
.ppdb-page .alert-success { color: #137A45; border: 1px solid #B6EBCF; background: #EEFBF4; }

.form-section-title { display: flex; align-items: center; gap: 12px; margin: 32px 0 16px; padding-top: 24px; border-top: 1px solid #E6EEF9; font: 700 clamp(18px, 1.5vw, 21px)/1.2 var(--lp-display); color: #072268; }
.form-section-title:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.sec-ic { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--c); font-size: 21px; }
.ppdb-form-card .hint { margin: -6px 0 16px; font-size: 13px; color: var(--lp-muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-group { margin-bottom: 18px; }
.form-group > label { display: block; margin-bottom: 7px; font-weight: 600; font-size: 13.5px; color: #1C385F; }
.ppdb-form-card :is(input[type="text"], input[type="email"], input[type="date"], input[type="number"], select, textarea) {
    width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid #D6E3F6; border-radius: 16px; background-color: #fff;
    font: 500 15px var(--lp-body); color: #072268; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.ppdb-form-card select { padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237C90B3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 20px no-repeat; }
.ppdb-form-card textarea { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.ppdb-form-card ::placeholder { color: #A7B5CE; font-weight: 400; }
.ppdb-form-card :is(input, select, textarea):focus { outline: none; border-color: var(--lp-blue); box-shadow: 0 0 0 4px #EAF2FF; }
.ppdb-form-card :is(input, select, textarea).has-error { border-color: #E5385F; background-color: #FFF8FA; }
.field-error { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #D0214C; }

.file-drop { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 2px dashed #B9D2F4; border-radius: 18px; background: #F5FAFF; transition: border-color .2s, background .2s; }
.file-drop:hover { border-color: var(--lp-blue); background: #EEF6FF; }
.file-drop.has-file { border-style: solid; border-color: #33B27A; background: #EEFBF4; }
.file-drop.has-error { border-color: #E5385F; background: #FFF8FA; }
.file-drop .file-drop-label { display: block; font-weight: 600; font-size: 13.5px; color: #1C385F; overflow-wrap: anywhere; }
.file-drop input[type="file"] { display: block; width: 100%; font: 400 12.5px var(--lp-body); color: var(--lp-muted); }
.file-drop input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 16px; border: 0; border-radius: 999px; background: #E4F3FE; color: #0D65F5; font: 600 12.5px var(--lp-body); cursor: pointer; }
.file-drop input[type="file"]::file-selector-button:hover { background: #D3EAFD; }

.form-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; margin-top: 28px; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px; border-radius: 999px; font: 600 15.5px var(--lp-body); cursor: pointer; border: 0; transition: transform .2s, box-shadow .2s; }
.btn-primary { color: #fff; background: linear-gradient(180deg, #FF4AA3, #FC2F8D); box-shadow: 0 14px 28px rgba(252, 47, 141, .34); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(252, 47, 141, .44); }
.btn-primary:disabled { opacity: .7; cursor: wait; transform: none; }
.btn-primary .ic { font-size: 20px; }
.btn-secondary { color: #0C4FC0; background: #fff; border: 1.5px solid #B9D8FA; }
.btn-secondary:hover { background: #F0F6FF; }

@media (max-width: 720px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column-reverse; align-items: stretch; }
    .btn-primary, .btn-secondary { width: 100%; }
}
@media (max-width: 520px) { .lp-back span { display: none; } .lp-back { padding: 0 14px; } }

@media (max-width: 760px) {
    .ppdb-body .sub-head { background-position: 26% top; }
    .ppdb-body .sub-head::before { background: rgba(255, 255, 255, .72); }
}

/* ---- halaman sukses & 404 ---- */
.sukses-wrap { flex: 1; display: grid; place-items: start center; padding: 110px var(--lp-pad) 60px; background: radial-gradient(80% 50% at 50% 0, #DDF1FF, rgba(221, 241, 255, 0) 70%); }
.ppdb-sukses { width: 100%; max-width: 620px; text-align: center; background: #fff; border: 1px solid var(--lp-line); border-radius: 36px; padding: clamp(26px, 5vw, 48px); box-shadow: 0 30px 70px rgba(4, 46, 119, .12); }
.ppdb-sukses .icon-circle { width: 80px; height: 80px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 40px; color: #fff; background: linear-gradient(145deg, #3CCB8B, #1FA855); box-shadow: 0 16px 30px rgba(31, 168, 85, .32); }
.ppdb-sukses .icon-circle .ic { stroke-width: 3; }
.ppdb-sukses h1 { font: 800 clamp(26px, 3.2vw, 36px)/1.15 var(--lp-display); color: #043687; }
.ppdb-sukses .ket { margin-top: 10px; font-size: 15px; color: var(--lp-muted); }
.ppdb-sukses .ket a, .ppdb-sukses-steps a { color: var(--lp-blue); font-weight: 600; }
.ppdb-sukses .ket a:hover, .ppdb-sukses-steps a:hover { text-decoration: underline; }
.ppdb-nomor-box { margin: 24px 0; padding: 20px; border-radius: 24px; background: linear-gradient(145deg, #EAF2FF, #FEEFF5); border: 2px dashed #8FB4F5; }
.ppdb-nomor-box .label { margin-bottom: 4px; font: 600 12px var(--lp-body); letter-spacing: .24em; color: #0A3DB8; }
.ppdb-nomor-box .nomor { font: 800 clamp(24px, 4.4vw, 34px)/1.2 var(--lp-display); letter-spacing: .04em; color: #043687; overflow-wrap: anywhere; }
.ppdb-sukses-steps { display: grid; gap: 12px; margin-top: 22px; text-align: left; font-size: 14px; }
.ppdb-sukses-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; background: #F5F9FF; }
.st-ic { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--c); font-size: 19px; }
.sukses-cta { margin-top: 26px; }

.nf-kode { font: 800 clamp(80px, 16vw, 130px)/1 var(--lp-display); letter-spacing: .02em; color: #FC2F8D; text-shadow: 0 10px 0 rgba(252, 47, 141, .12); }
.nf-kode span { color: #1356E6; }
.nf-kids { width: min(80%, 320px); margin: 14px auto 0; filter: drop-shadow(0 16px 16px rgba(4, 46, 119, .12)); }

/* ---- portal calon orang tua (PPDB) ---- */
.portal-masuk .icon-circle.biru { background: linear-gradient(145deg, #4D93FF, #1356E6); box-shadow: 0 16px 30px rgba(19, 86, 230, .3); }
.portal-form { margin-top: 24px; text-align: left; }
.portal-form .form-group > label { display: block; margin-bottom: 7px; font-weight: 600; font-size: 13.5px; color: #1C385F; }
.portal-form input { width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid #D6E3F6; border-radius: 16px; background: #fff; font: 500 15px var(--lp-body); color: #072268; }
.portal-form input:focus { outline: none; border-color: var(--lp-blue); box-shadow: 0 0 0 4px #EAF2FF; }
.portal-form input.has-error { border-color: #E5385F; background: #FFF8FA; }
.portal-submit { width: 100%; margin-top: 6px; }
.portal-bantuan { margin-top: 18px; font-size: 13px; line-height: 1.7; color: var(--lp-muted); }
.portal-bantuan a { color: var(--lp-blue); font-weight: 600; }
.portal-bantuan a:hover { text-decoration: underline; }

.portal-page { max-width: 760px; }
.portal-kartu { margin-bottom: 18px; padding: clamp(20px, 3vw, 30px); background: #fff; border: 1px solid var(--lp-line); border-radius: 26px; box-shadow: 0 22px 50px rgba(4, 46, 119, .1); }
.portal-judul { margin-bottom: 16px; font: 700 18px var(--lp-display); color: #072268; }
.portal-status-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lp-muted); }
.portal-status-nilai { display: block; margin-top: 6px; font: 800 clamp(23px, 3vw, 30px)/1.15 var(--lp-display); }
.portal-status-kuning .portal-status-nilai { color: #A15C04; }
.portal-status-hijau .portal-status-nilai { color: #137A45; }
.portal-status-merah .portal-status-nilai { color: #C0193F; }
.portal-status-biru .portal-status-nilai { color: #0C4FC0; }
.portal-catatan { margin-top: 12px; padding: 13px 15px; border-radius: 16px; background: #F5F9FF; font-size: 13.5px; line-height: 1.6; color: var(--lp-ink); }

.portal-tahap { display: grid; gap: 4px; }
.portal-tahap li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.portal-tahap .bulat { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #EDF2FA; color: #7C90B3; font: 700 14px var(--lp-body); }
.portal-tahap li.selesai .bulat { background: linear-gradient(145deg, #3CCB8B, #1FA855); color: #fff; }
.portal-tahap strong { display: block; font-size: 14.5px; color: #072268; }
.portal-tahap em { font-style: normal; font-size: 13px; color: var(--lp-muted); }
.portal-tahap.tahap-berhenti li.selesai .bulat { background: linear-gradient(145deg, #FF7A9C, #E5385F); }

.portal-data { display: grid; gap: 10px; }
.portal-data > div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-bottom: 10px; border-bottom: 1px solid #F1F5FB; }
.portal-data dt { min-width: 150px; font-size: 13px; font-weight: 600; color: var(--lp-muted); }
.portal-data dd { font-size: 14px; color: var(--lp-ink); }

.portal-berkas { display: grid; gap: 10px; }
.portal-berkas li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 13px 16px; border-radius: 16px; background: #F7FAFF; font-size: 14px; color: var(--lp-ink); }
.portal-berkas a { color: var(--lp-blue); font-weight: 600; }
.portal-berkas a:hover { text-decoration: underline; }
.portal-berkas em { font-style: normal; font-size: 13px; color: var(--lp-muted); }

.sukses-aksi { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.sukses-aksi .sukses-cta { margin-top: 0; }

.ppdb-aksi { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 520px) { .ppdb-aksi { flex-direction: column; align-items: stretch; } .ppdb-aksi .cta { justify-content: center; } }

.file-drop { cursor: pointer; }
.file-drop.drag-aktif { border-color: var(--lp-blue); border-style: solid; background: #EEF6FF; }
.ppdb-privasi { margin-top: 8px; padding: 16px 18px; border: 1px solid #D6E4F7; border-radius: 12px; background: #F6FAFF; font-size: 13px; line-height: 1.6; color: #1C385F; }
.ppdb-privasi p { margin: 6px 0 12px; }
.ppdb-setuju { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.ppdb-setuju input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; }
