/* =====================================================
   PPDB Online - Formulir Pendaftaran Mahasiswa Baru
   Madrasah As-Sunniyah | Tahun Akademik 2026/2027
   Premium Styling
   ===================================================== */

/* ── Hero Banner ── */
.ppdb-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d3b20 0%, #1a5c2a 30%, #2d8a45 60%, #c8960c 100%);
  overflow: hidden;
  padding: 100px 20px 80px;
}

.ppdb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200, 150, 12, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  z-index: 1;
}

.ppdb-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.ppdb-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.ppdb-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 700px;
  animation: fadeInUp 0.8s ease-out;
}

.ppdb-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

.ppdb-hero-badge i {
  font-size: 1.1rem;
  color: #f0c040;
}

.ppdb-hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

.ppdb-hero-content p {
  font-size: 1.3rem;
  opacity: 0.9;
  font-weight: 300;
  margin-bottom: 30px;
}

.ppdb-hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-ppdb-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(135deg, #f0c040, #c8960c);
  color: #1a1a2e;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(200, 150, 12, 0.4);
}

.btn-ppdb-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 150, 12, 0.6);
}

.btn-ppdb-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-ppdb-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.ppdb-hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 2;
  color: #f0f7f2;
}

.ppdb-hero-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ── Alur Pendaftaran ── */
.ppdb-alur {
  padding: 60px 20px 50px;
  background: transparent;
}

.ppdb-alur .section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ppdb-alur .section-title i {
  color: var(--gold-main);
}

.alur-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.alur-step {
  background: #fff;
  border-radius: 16px;
  padding: 30px 24px 26px;
  text-align: center;
  position: relative;
  flex: 0 0 200px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(26, 92, 42, 0.08);
  transition: all 0.3s ease;
}

.alur-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26, 92, 42, 0.12);
  border-color: var(--green-mid);
}

.alur-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green-light), var(--green-mid));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 14px;
  box-shadow: 0 4px 15px rgba(45, 138, 69, 0.3);
}

.alur-number {
  position: absolute;
  top: -12px;
  right: -8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-main), var(--gold-light));
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(200, 150, 12, 0.4);
}

.alur-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.alur-step p {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.5;
}

.alur-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: var(--gold-main);
  font-size: 1.2rem;
  margin-top: 50px;
  animation: bounceRight 1.5s ease-in-out infinite;
}

@keyframes bounceRight {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(6px);
  }
}

/* ── Formulir Section ── */
.ppdb-form-section {
  padding: 20px 20px 80px;
}

.formulir-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ── KOP SURAT ── */
.kop-surat {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px 40px 16px;
}

.kop-logo img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}

.kop-text {
  flex: 1;
  text-align: center;
}

.kop-nama {
  font-size: 2rem;
  font-weight: 800;
  font-style: italic;
  color: #1a1a2e;
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-family: 'Times New Roman', 'Georgia', serif;
}

.kop-alamat-detail {
  font-size: 0.78rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin: 0;
}

.kop-alamat-detail strong {
  font-weight: 600;
}

/* Double line separator like official kop surat */
.kop-line-double {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 30px;
  padding-bottom: 2px;
}

.kop-line-thick {
  display: block;
  height: 3.5px;
  background: #1a1a2e;
  border-radius: 1px;
}

.kop-line-thin {
  display: block;
  height: 1.2px;
  background: #1a1a2e;
}

/* ── Formulir Title ── */
.formulir-title {
  text-align: center;
  padding: 28px 20px 10px;
}

.formulir-title h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.formulir-title h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-medium);
  letter-spacing: 0.5px;
}

/* ── Form Sections (Fieldset) ── */
.ppdb-form {
  padding: 20px 40px 40px;
}

.form-section {
  border: 2px solid var(--green-pale);
  border-radius: 14px;
  padding: 24px 28px 18px;
  margin-bottom: 28px;
  position: relative;
  background: #fafffe;
  transition: border-color 0.3s ease;
}

.form-section:hover {
  border-color: var(--green-light);
}

.form-section legend {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
}

.form-section legend i {
  color: var(--gold-main);
  font-size: 1rem;
}

/* ── Form Group ── */
.form-group {
  display: grid;
  grid-template-columns: 200px 20px 1fr;
  align-items: center;
  margin-bottom: 10px;
  gap: 4px;
}

.form-group.numbered label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-medium);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group .num {
  font-weight: 700;
  color: var(--green-dark);
  min-width: 22px;
}

.form-group .separator {
  font-weight: 700;
  color: var(--text-medium);
  text-align: center;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group select {
  width: 100%;
  padding: 9px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: #fff;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45, 138, 69, 0.1);
}

.form-group input::placeholder {
  color: #bbb;
  font-style: italic;
}

.form-group input.input-error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
  animation: shake 0.4s ease;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

/* ── Alamat Sub Fields ── */
.form-group.alamat-sub {
  margin-bottom: 8px;
}

.form-group.alamat-sub label {
  visibility: hidden;
}

.input-split {
  display: flex;
  gap: 10px;
}

.input-split input {
  flex: 1;
  padding: 9px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: #fff;
  transition: all 0.3s ease;
  outline: none;
}

.input-split input:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45, 138, 69, 0.1);
}

.input-split input::placeholder {
  color: #bbb;
  font-style: italic;
}

.input-triple {
  display: flex;
  gap: 10px;
}

.input-labeled {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.input-labeled.small {
  flex: 0 0 80px;
}

.input-labeled input {
  padding: 9px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: #fff;
  transition: all 0.3s ease;
  outline: none;
}

.input-labeled input:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45, 138, 69, 0.1);
}

.input-labeled input::placeholder {
  color: #bbb;
  font-style: italic;
}

.input-labeled small {
  font-size: 0.72rem;
  color: var(--text-light);
  padding-left: 4px;
}

/* ── Photo Box (inline) ── */
.form-row-with-photo {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.form-row-with-photo .form-fields {
  flex: 1;
}

.photo-box {
  flex: 0 0 110px;
  border: 2px dashed #ccc;
  border-radius: 12px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: #fafafa;
}

.photo-box:hover {
  border-color: var(--green-mid);
  background: var(--green-pale);
}

.photo-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--text-light);
  font-size: 0.75rem;
  text-align: center;
  padding: 10px;
}

.photo-label i {
  font-size: 1.4rem;
  color: var(--green-mid);
}

.photo-size {
  font-weight: 800;
  color: var(--green-dark);
  font-size: 0.9rem;
}

.photo-input {
  display: none;
}

.photo-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: none;
}

/* ── Question Groups ── */
.form-group-question {
  margin-bottom: 22px;
}

.question-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: 12px;
  display: flex;
  gap: 6px;
}

.question-label .num {
  font-weight: 800;
  color: var(--green-dark);
  min-width: 22px;
}

.radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-left: 28px;
}

.radio-option,
.check-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-medium);
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.radio-option:hover,
.check-option:hover {
  background: var(--green-pale);
}

.radio-option input,
.check-option input {
  accent-color: var(--green-mid);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding-left: 28px;
}

/* ── Photo Upload Grid ── */
.photo-upload-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.photo-upload-card {
  position: relative;
  width: 160px;
  flex: 0 0 160px;
}

.photo-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 160px;
  height: 200px;
  border: 2.5px dashed #ccc;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fafafa;
  text-align: center;
  color: var(--text-light);
}

.photo-upload-area:hover {
  border-color: var(--green-mid);
  background: var(--green-pale);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.photo-upload-area i {
  font-size: 2rem;
  color: var(--green-mid);
}

.photo-upload-label {
  font-size: 0.8rem;
  font-weight: 500;
}

.photo-upload-size {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-dark);
}

.photo-upload-hint {
  font-size: 0.7rem;
  color: #aaa;
}

.photo-preview-large {
  position: absolute;
  inset: 0;
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  display: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ── TTD Section ── */
.ttd-section {
  display: flex;
  justify-content: flex-end;
  padding: 10px 0;
}

.ttd-place {
  text-align: center;
  min-width: 240px;
}

.ttd-place p {
  font-size: 0.85rem;
  color: var(--text-medium);
}

.ttd-label {
  margin-top: 6px;
  font-weight: 600;
}

.ttd-upload-card {
  position: relative;
  width: 220px;
  height: 100px;
  margin: 10px auto;
}

.ttd-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  border: 2px dashed var(--green-light);
  border-radius: 10px;
  cursor: pointer;
  background: var(--green-pale);
  color: var(--green-dark);
  transition: all 0.3s ease;
  padding: 8px;
}

.ttd-upload-area:hover {
  border-color: var(--green-mid);
  background: #e0f2f1;
  transform: translateY(-2px);
}

.ttd-upload-area i {
  font-size: 1.5rem;
  color: var(--green-mid);
}

.ttd-upload-text {
  font-size: 0.8rem;
  font-weight: 700;
}

.ttd-upload-hint {
  font-size: 0.68rem;
  color: var(--text-light);
}

.ttd-preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ddd;
  display: none;
  padding: 4px;
}

.ttd-line {
  font-size: 0.85rem;
  margin-top: 8px;
}

.ttd-line strong {
  font-weight: 700;
  color: var(--text-dark);
}

/* ── Form Actions ── */
.form-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  padding: 30px 40px;
  flex-wrap: wrap;
}

.btn-ppdb-submit {
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(26, 92, 42, 0.3);
  font-family: var(--font-sans);
}

.btn-ppdb-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 92, 42, 0.4);
}

.btn-ppdb-reset {
  padding: 14px 30px;
  background: #fff;
  color: var(--text-medium);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid #ddd;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

.btn-ppdb-reset:hover {
  border-color: #e74c3c;
  color: #e74c3c;
}

.btn-ppdb-print {
  padding: 14px 30px;
  background: #fff;
  color: var(--gold-dark);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--gold-mid);
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

.btn-ppdb-print:hover {
  background: var(--gold-pale);
  transform: translateY(-2px);
}

/* ── Alert ── */
.ppdb-alert {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 14px;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.5s ease-out;
}

.ppdb-alert i {
  font-size: 1.5rem;
  margin-top: 2px;
}

.ppdb-alert strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.ppdb-alert p {
  font-size: 0.88rem;
  margin: 0;
}

.ppdb-alert-success {
  background: linear-gradient(135deg, #d4edda, #e8f5e9);
  border: 1px solid #a5d6a7;
  color: #1b5e20;
}

.ppdb-alert-success i {
  color: #2e7d32;
}

.ppdb-alert-error {
  background: linear-gradient(135deg, #fde2e2, #ffebee);
  border: 1px solid #ef9a9a;
  color: #b71c1c;
}

.ppdb-alert-error i {
  color: #c62828;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(240, 192, 64, 0.4);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(240, 192, 64, 0);
  }
}

/* ── Print Styles ── */
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 15mm;
  }

  body, html {
    background: #fff !important;
    color: #000 !important;
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
    font-size: 10pt !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Hide Web Layout Elements */
  .ppdb-hero,
  .ppdb-alur,
  .form-actions,
  .site-header,
  .footer,
  .back-to-top,
  .topbar,
  .navbar,
  .ppdb-alert,
  .photo-upload-area i,
  .photo-upload-hint,
  .ttd-upload-area i,
  .ttd-upload-hint {
    display: none !important;
  }

  .ppdb-page {
    margin: 0 !important;
    padding: 0 !important;
  }

  .ppdb-form-section {
    padding: 0 !important;
  }

  .formulir-wrapper {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .ppdb-form {
    padding: 0 !important;
  }

  /* Kop Surat Print */
  .kop-surat {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    padding: 0 0 6px 0 !important;
    margin: 0 !important;
  }

  .kop-logo {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
  }

  .kop-logo img {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain !important;
  }

  .kop-text {
    text-align: center !important;
    width: 100% !important;
    padding-left: 75px !important;
    padding-right: 15px !important;
  }

  .kop-nama {
    font-family: 'Times New Roman', Times, serif !important;
    font-size: 17pt !important;
    font-weight: bold !important;
    font-style: italic !important;
    color: #000 !important;
    margin: 0 0 2px 0 !important;
    text-transform: uppercase !important;
  }

  .kop-alamat-detail {
    font-family: Arial, sans-serif !important;
    font-size: 7.5pt !important;
    color: #000 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
  }

  .kop-line-double {
    margin: 4px 0 10px 0 !important;
  }

  .kop-line-thick {
    background: #000 !important;
    height: 3px !important;
    display: block !important;
  }

  .kop-line-thin {
    background: #000 !important;
    height: 1px !important;
    display: block !important;
    margin-top: 1.5px !important;
  }

  /* Title Print */
  .formulir-title {
    text-align: center !important;
    margin: 10px 0 14px 0 !important;
    padding: 0 !important;
  }

  .formulir-title h2 {
    font-size: 12pt !important;
    color: #000 !important;
    font-weight: bold !important;
    margin: 0 0 2px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }

  .formulir-title h3 {
    font-size: 10pt !important;
    color: #000 !important;
    font-weight: bold !important;
    margin: 0 !important;
    text-transform: uppercase !important;
  }

  /* Form Sections (Fieldsets) */
  .form-section {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 0 14px 0 !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .form-section legend {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 0 6px 0 !important;
    font-size: 9.5pt !important;
    font-weight: bold !important;
    color: #000 !important;
    text-transform: uppercase !important;
    display: block !important;
    width: 100% !important;
  }

  .form-section legend i {
    display: none !important;
  }

  /* Form Row with Photo */
  .form-row-with-photo {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    position: relative !important;
    width: 100% !important;
  }

  .form-fields {
    flex: 1 !important;
    padding-right: 15px !important;
  }

  /* Photo box 2x3 */
  .photo-box {
    width: 90px !important;
    height: 120px !important;
    border: 1.5px solid #000 !important;
    background: #fff !important;
    border-radius: 0 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .photo-label {
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
  }

  .photo-label i,
  .photo-label span:not(.photo-size) {
    display: none !important;
  }

  .photo-size {
    font-size: 11pt !important;
    font-weight: bold !important;
    color: #000 !important;
  }

  .photo-preview {
    border-radius: 0 !important;
  }

  /* Form Groups */
  .form-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    margin-bottom: 4px !important;
    width: 100% !important;
  }

  .form-group.numbered label {
    width: 165px !important;
    min-width: 165px !important;
    max-width: 165px !important;
    flex-shrink: 0 !important;
    font-size: 9pt !important;
    color: #000 !important;
    font-weight: normal !important;
    display: flex !important;
    gap: 4px !important;
  }

  .form-group .num {
    color: #000 !important;
    font-weight: bold !important;
  }

  .form-group .separator {
    width: 15px !important;
    min-width: 15px !important;
    flex-shrink: 0 !important;
    color: #000 !important;
    text-align: center !important;
  }

  /* Sub Alamat */
  .form-group.alamat-sub label,
  .form-group.alamat-sub .separator {
    visibility: hidden !important;
  }

  .input-triple,
  .input-split {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    width: 100% !important;
    flex: 1 !important;
  }

  .input-labeled {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 4px !important;
    flex: 1 !important;
  }

  .input-labeled small {
    order: -1 !important;
    font-size: 9pt !important;
    color: #000 !important;
    font-weight: normal !important;
    min-width: fit-content !important;
  }

  /* Form Inputs as Dotted Lines */
  .form-group input[type="text"],
  .form-group input[type="tel"],
  .form-group input[type="email"],
  .form-group input[type="date"],
  .form-group select,
  .input-split input,
  .input-labeled input {
    flex: 1 !important;
    width: 100% !important;
    border: none !important;
    border-bottom: 1px dotted #000 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 2px !important;
    font-size: 9pt !important;
    color: #000 !important;
    font-family: inherit !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
    outline: none !important;
    height: 18px !important;
    line-height: 18px !important;
  }

  /* Radio & Checkbox Grids */
  .form-group-question {
    margin-bottom: 8px !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .question-label {
    font-size: 9pt !important;
    font-weight: bold !important;
    color: #000 !important;
    margin-bottom: 3px !important;
  }

  .radio-grid,
  .checkbox-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2px 16px !important;
    padding-left: 18px !important;
  }

  .radio-option,
  .check-option {
    padding: 0 !important;
    font-size: 8.5pt !important;
    color: #000 !important;
  }

  .radio-option input,
  .check-option input {
    accent-color: #000 !important;
  }

  /* Photo Upload Grid Print */
  .photo-upload-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 30px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding-left: 18px !important;
    width: 100% !important;
    margin: 8px 0 !important;
  }

  .photo-upload-card {
    display: inline-block !important;
    width: 105px !important;
    min-width: 105px !important;
    max-width: 105px !important;
    flex: 0 0 105px !important;
    position: relative !important;
    margin: 0 !important;
  }

  .photo-upload-area {
    width: 105px !important;
    height: 135px !important;
    border: 1.5px solid #000 !important;
    background: #fff !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .photo-upload-label {
    display: none !important;
  }

  .photo-upload-size {
    font-size: 11pt !important;
    color: #000 !important;
    font-weight: bold !important;
  }

  .photo-preview-large {
    width: 105px !important;
    height: 135px !important;
    border-radius: 0 !important;
  }

  /* TTD Section Print */
  .ttd-section {
    display: flex !important;
    justify-content: flex-end !important;
    padding-top: 6px !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .ttd-place {
    text-align: center !important;
    width: 210px !important;
  }

  .ttd-date,
  .ttd-label,
  .ttd-line {
    font-size: 9pt !important;
    color: #000 !important;
    margin: 2px 0 !important;
  }

  .ttd-upload-card {
    height: 60px !important;
    width: 170px !important;
    margin: 4px auto !important;
    border: none !important;
  }

  .ttd-upload-area {
    border: none !important;
    background: transparent !important;
  }

  .ttd-upload-text {
    display: none !important;
  }

  .ttd-preview-img {
    border: none !important;
    background: transparent !important;
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ppdb-hero {
    min-height: 340px;
    padding: 80px 16px 60px;
  }

  .ppdb-hero-content h1 {
    font-size: 1.8rem;
  }

  .ppdb-hero-content p {
    font-size: 1rem;
  }

  .alur-grid {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .alur-step {
    flex: 0 0 auto;
    width: 100%;
    max-width: 280px;
  }

  .alur-connector {
    margin-top: 0;
    transform: rotate(90deg);
  }

  .kop-surat {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .kop-nama {
    font-size: 1.3rem;
  }

  .ppdb-form {
    padding: 16px 18px 30px;
  }

  .form-group {
    grid-template-columns: 1fr;
    gap: 2px;
    margin-bottom: 14px;
  }

  .form-group .separator {
    display: none;
  }

  .form-group.alamat-sub label {
    display: none;
  }

  .form-row-with-photo {
    flex-direction: column-reverse;
    align-items: center;
  }

  .photo-box {
    flex: 0 0 auto;
    width: 120px;
    height: 150px;
    margin-bottom: 10px;
  }

  .radio-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
    padding-left: 10px;
  }

  .photo-upload-grid {
    flex-direction: column;
    align-items: center;
  }

  .form-actions {
    flex-direction: column;
    padding: 20px;
  }

  .btn-ppdb-submit,
  .btn-ppdb-reset,
  .btn-ppdb-print {
    width: 100%;
    justify-content: center;
  }

  .formulir-title h2 {
    font-size: 0.95rem;
  }

  .formulir-title h3 {
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .ppdb-hero-content h1 {
    font-size: 1.4rem;
  }

  .ppdb-hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn-ppdb-primary,
  .btn-ppdb-outline {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
  }

  .input-split {
    flex-direction: column;
  }

  .input-triple {
    flex-direction: column;
  }

  .input-labeled.small {
    flex: 1;
  }
}