.ppdb-body {
  background-color: #1d74e6;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045) 0 1px,
    transparent 1px 7px
  );
}

.ppdb-bar {
  width: min(1040px, calc(100% - 28px));
  margin: 16px auto 0;
  background: #fff;
  border-radius: 18px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.intro {
  width: min(760px, calc(100% - 32px));
  margin: 28px auto 18px;
  text-align: center;
}

.intro h1 {
  margin: 0 auto;
  color: #fff;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.intro p {
  margin: 10px auto 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.9);
}

.process,
.level-grid,
.form-card {
  width: min(1040px, calc(100% - 28px));
  margin-left: auto;
  margin-right: auto;
}

.process {
  background: #fff;
  color: #243447;
  border-radius: 28px;
  padding: 28px 22px 22px;
  box-shadow: 0 16px 40px rgba(12, 48, 110, 0.16);
}

.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  position: relative;
  text-align: center;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 16%;
  right: 16%;
  border-top: 2px dotted #c5d2e2;
}

.timeline h2 {
  margin: 0 0 6px;
  color: #1b2838;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 800;
}

.timeline p {
  margin: 0 auto;
  max-width: 28ch;
  color: #6d7c8d;
  font-size: 15px;
}

.node {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #eef3f8;
  color: #1d74e6;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.node svg { width: 24px; height: 24px; }

.level-grid {
  margin-top: 18px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.level {
  grid-column: span 2;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  text-decoration: none;
  text-align: left;
  color: #fff;
  border: 0;
  border-radius: 22px;
  padding: 22px 20px 18px;
  background-color: #123056;
  background-position: center;
  background-size: cover;
  box-shadow: 0 12px 30px rgba(12, 48, 110, 0.12);
  cursor: pointer;
}

.level::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 20, 40, 0.08) 0%, rgba(8, 20, 40, 0.82) 100%);
}

.level-tpa { background-image: url("../assets/ilustrasi/tpa.svg"); }
.level-kb { background-image: url("../assets/ilustrasi/kb.svg"); }
.level-tk { background-image: url("../assets/ilustrasi/tk.svg"); }
.level-sd { background-image: url("../assets/ilustrasi/sd.svg"); }
.level-smp { background-image: url("../assets/ilustrasi/smp.svg"); }
.level-sma { background-image: url("../assets/ilustrasi/sma.svg"); }

.level:hover { transform: translateY(-2px); }
.qris-img { width: min(260px, 72vw); margin: 0 auto 12px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.qris-img svg { display: block; width: 100%; height: auto; }
.lembar-meta select { padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }

.level strong {
  display: block;
  font-size: 22px;
  color: #fff;
}

.level > span {
  display: block;
  margin-top: 2px;
  color: #d7e7ff;
  font-weight: 700;
}

.level p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.level.is-selected {
  box-shadow: 0 0 0 3px #fff, 0 12px 30px rgba(12, 48, 110, 0.18);
}

.form-card {
  background: #fff;
  color: var(--ink);
  border-radius: 28px;
  padding: 22px 22px 18px;
  margin-bottom: 28px;
  box-shadow: 0 16px 40px rgba(12, 48, 110, 0.16);
  scroll-margin-top: 16px;
}

.picked {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  color: #243447;
  font-weight: 700;
}

#change-level {
  border: 0;
  background: #e8eef5;
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

h2 { margin: 0 0 8px; font-size: 26px; }

.steps {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0 0 18px;
}

.steps li {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #8aa0b8;
  background: #f3f7fb;
  border-radius: 999px;
  padding: 8px 6px;
}

.steps li.is-active { background: var(--navy); color: #fff; }
.steps li.is-done { background: #d9e8fb; color: var(--navy); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.full { grid-column: 1 / -1; }

label,
fieldset {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #24384f;
  border: 0;
  margin: 0;
  padding: 0;
}

input,
select,
textarea {
  border: 1px solid #d7e2ee;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  font-weight: 500;
}

.choice { flex-direction: row; align-items: center; font-weight: 600; }
.choice input { width: auto; }

.hint { color: var(--muted); font-size: 14px; font-weight: 500; }

.file { position: relative; }
.file input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d7e2ee;
  background: #f8fafc;
  border-radius: 12px;
  padding: 8px;
  font-weight: 500;
}
.file-btn {
  background: #e8eef5;
  color: var(--navy);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  white-space: nowrap;
}

.form-error { color: #9d2c2c; min-height: 1.2em; font-size: 14px; }

.actions { display: flex; justify-content: flex-end; gap: 8px; }
.actions button,
.actions .btn { border-radius: 12px; }
.actions button[data-back],
.actions button[data-next],
.actions button[data-submit] {
  border: 0;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
}
.actions button[data-back] { background: #e8eef5; color: var(--navy); }
.actions.center { justify-content: center; margin-top: 16px; }

.review { margin: 0; }
.review div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.review dt { color: var(--muted); }
.review dd { margin: 0; font-weight: 700; }

.success { text-align: center; padding: 12px 8px 8px; }
.success strong {
  display: block;
  margin: 8px 0;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 44px);
  color: var(--navy);
}
.success p { color: #52657c; }

.helpdesk {
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  color: #243447;
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: 0 16px 40px rgba(12, 48, 110, 0.16);
}
.helpdesk-ikon {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #eef3f8;
  color: #1d74e6;
  display: grid;
  place-items: center;
}
.helpdesk-ikon svg { width: 26px; height: 26px; }
.helpdesk-teks { flex: 1; min-width: 0; }
.helpdesk-teks h2 { margin: 0 0 4px; color: #1b2838; font-family: var(--sans); font-size: 20px; font-weight: 800; }
.helpdesk-teks p { margin: 0; color: #6d7c8d; font-size: 15px; }
.helpdesk-nomor { display: inline-block; margin-top: 6px; color: #1b2838; font-weight: 700; letter-spacing: 0.02em; }
.helpdesk-wa {
  flex: none;
  padding: 12px 20px;
  border-radius: 999px;
  background: #1fa855;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.helpdesk-wa:hover { background: #178a45; }

.wa-melayang {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px 11px 12px;
  border-radius: 999px;
  background: #1fa855;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(8, 40, 20, 0.28);
}
.wa-melayang svg { width: 24px; height: 24px; }
.wa-melayang:hover { background: #178a45; }

.ppdb-foot {
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}
.ppdb-foot a { color: #fff; font-weight: 700; }

.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks .choice {
  border: 1px solid #d7e2ee;
  background: #f8fafc;
  border-radius: 999px;
  padding: 8px 12px;
}
.qris { text-align: center; }
.qris-nominal,
.va {
  display: block;
  margin: 8px 0;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.qris-mark {
  width: min(220px, 70vw);
  margin: 0 auto 12px;
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 2px;
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 12px;
  background: #10284a;
}
.qris-mark i { display: block; background: #fff; border-radius: 1px; }
.qris-mark i.off { background: transparent; }
.bill { margin-top: 18px; }
.spp-jadwal { max-height: 320px; overflow: auto; margin-top: 8px; }
.bill-table { width: 100%; border-collapse: collapse; }
.bill-table td,
.bill-table th { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; }
.bill-table td:last-child,
.bill-table th:last-child { text-align: right; }
.wait-card { margin-top: 16px; padding: 16px; border-radius: 16px; background: #f4f8fc; }
.masuk-lagi { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.masuk-lagi p { margin: 0 0 8px; }
.masuk-row { display: flex; gap: 8px; }
.masuk-row input { flex: 1; }
.eyebrow { margin: 0; color: #6d7f95; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.form-card:has(.lembar) {
  padding: 16px 0 8px;
  border-radius: 4px;
  overflow: hidden;
}

.form-card:has(.lembar) .steps { margin: 0 16px 14px; }
.form-card:has(.lembar) .masuk-lagi { margin: 14px 16px 10px; }

.lembar { color: #1c3148; background: #fff; }
.lembar-kepala {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px 22px;
  background: var(--navy);
  color: #fff;
  position: relative;
}
.lembar-kepala img { width: 58px; height: 58px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; }
.lembar-kepala strong {
  display: block;
  font-size: clamp(18px, 2.4vw, 26px);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.lembar-kepala em { font-style: normal; color: #8ec2ff; }
.lembar-kepala small { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.82); font-size: 13px; }
.lembar-pita {
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 100%;
  background: #1d74e6;
}
.lembar-pita::after {
  content: "";
  position: absolute;
  left: -28px;
  bottom: 0;
  border-right: 28px solid #1d74e6;
  border-top: 28px solid transparent;
}
.lembar-isi { padding: 22px 28px 8px; position: relative; }
.lembar-isi::before {
  content: "";
  position: absolute;
  right: 18%;
  top: 36px;
  width: 180px;
  height: 180px;
  background: url("../assets/pp-bm.png") center/contain no-repeat;
  opacity: 0.06;
  pointer-events: none;
}
.lembar h2 {
  margin: 0 0 16px;
  color: #16325c;
  font-family: var(--sans);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.lembar-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.lembar-meta p {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  font-weight: 800;
}
.lembar-meta small { font-weight: 600; color: #5d7190; }
.kotak { display: inline-flex; gap: 4px; }
.kotak i {
  width: 22px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1.5px solid #1f6fe0;
  color: #0e3d8c;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
}
.lembar-tanggal { position: relative; padding-bottom: 14px; }
.lembar-hb {
  position: absolute;
  left: 78px;
  bottom: 0;
  display: flex;
  gap: 14px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #7f93ad;
  font-weight: 700;
}
.lembar-surat {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
  margin: 8px 0 16px;
}
.lembar-surat strong { display: block; margin-bottom: 6px; }
.lembar-surat p { margin: 0; color: #6a7d93; font-size: 14px; font-weight: 500; max-width: 52ch; }
.lembar-surat a,
.lembar #change-level {
  display: inline;
  border: 0;
  background: none;
  padding: 0;
  border-radius: 0;
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
}
.lembar-wa { font-weight: 800; }
.lembar-wa small { display: block; margin-top: 4px; color: #7f93ad; font-size: 11px; font-weight: 600; }
.lembar input[type="text"],
.lembar input[type="tel"],
.lembar input:not([type="radio"]):not([type="checkbox"]) {
  width: 100%;
  border: 1.5px solid #1f6fe0;
  border-radius: 2px;
  background: #fff;
  padding: 8px 10px;
  color: #16325c;
}
.lembar-bagian {
  position: relative;
  margin: 8px 0 0;
  padding: 10px 28px;
  background: var(--navy);
  color: #d7e8ff;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
}
.lembar-bagian::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 100%;
  background: #1d74e6;
}
.lembar-form { display: grid; gap: 14px; padding-top: 18px; padding-bottom: 8px; }
.lembar-baris {
  display: grid;
  grid-template-columns: 132px 14px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.lembar-baris > span { font-weight: 800; }
.lembar-dua {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 18px 28px;
}
.lembar-cek { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.lembar .choice { font-weight: 700; gap: 8px; }
.lembar input[type="radio"],
.lembar input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 1.5px solid #1f6fe0;
  border-radius: 2px;
  background: #fff;
  display: inline-grid;
  place-content: center;
}
.lembar input[type="radio"]:checked::before,
.lembar input[type="checkbox"]:checked::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #0e3d8c;
}
.lembar-kaki {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-top: 8px;
  padding: 16px 28px 18px;
  background: #e7f1fc;
}
.lembar-kaki p { margin: 0; max-width: 46ch; color: #3e5674; font-size: 14px; }
.lembar-kaki strong { display: block; margin-bottom: 4px; color: #16325c; }
.lembar-kaki .btn { border-radius: 4px; background: #1d74e6; }

@media (max-width: 800px) {
  .ppdb-bar { flex-wrap: wrap; }
  .intro h1 { max-width: 9em; font-size: 32px; }
  .intro p { max-width: 30ch; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .level-grid { grid-template-columns: 1fr; }
  .level { grid-column: auto; }
  .helpdesk { flex-direction: column; text-align: center; }
  .helpdesk-wa { align-self: stretch; text-align: center; }
  .wa-melayang span { display: none; }
  .wa-melayang { padding: 12px; }
  .ppdb-foot { padding-bottom: 64px; }
  .grid-2,
  .review div,
  .lembar-surat,
  .lembar-dua,
  .lembar-baris { grid-template-columns: 1fr; }
  .lembar-baris b { display: none; }
  .lembar-hb { position: static; }
  .lembar-kaki { flex-direction: column; align-items: stretch; }
}
