/* =========================================================
   1. RESET & DASAR
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Quicksand', 'Segoe UI', Roboto, sans-serif;
}

body {
  background: linear-gradient(135deg, #fdf6e3 0%, #f5e6d3 50%, #f0dcd0 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  position: relative;
  overflow-x: hidden;
}

/* =========================================================
   2. BACKGROUND DEKORATIF (AWAN & BALON)
========================================================= */
.bg-decor {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: hidden;
}

.cloud {
  position: absolute; background: rgba(255, 255, 255, 0.5);
  border-radius: 50px; animation: floatCloud 20s ease-in-out infinite;
}
.cloud::before, .cloud::after {
  content: ''; position: absolute; background: inherit; border-radius: 50%;
}
.cloud-1 { width: 120px; height: 40px; top: 8%; left: -5%; animation-delay: 0s; }
.cloud-1::before { width: 60px; height: 60px; top: -30px; left: 20px; }
.cloud-1::after { width: 80px; height: 70px; top: -35px; left: 50px; }

.cloud-2 { width: 150px; height: 45px; top: 15%; right: -5%; animation-delay: -7s; animation-duration: 25s; }
.cloud-2::before { width: 70px; height: 65px; top: -35px; left: 25px; }
.cloud-2::after { width: 90px; height: 75px; top: -40px; left: 60px; }

.cloud-3 { width: 100px; height: 35px; bottom: 20%; left: 50%; animation-delay: -14s; animation-duration: 22s; }
.cloud-3::before { width: 50px; height: 50px; top: -25px; left: 15px; }
.cloud-3::after { width: 65px; height: 55px; top: -30px; left: 40px; }

@keyframes floatCloud {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(80px); }
}

.balloon { position: absolute; font-size: 2.5rem; animation: floatBalloon 8s ease-in-out infinite; }
.balloon-1 { top: 5%; left: 10%; animation-delay: 0s; }
.balloon-2 { top: 12%; right: 15%; animation-delay: -3s; font-size: 2rem; }
.balloon-3 { bottom: 25%; left: 5%; animation-delay: -6s; font-size: 1.8rem; }

@keyframes floatBalloon {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* =========================================================
   3. CONTAINER UTAMA & HEADER
========================================================= */
.container {
  max-width: 900px; width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px); border-radius: 50px;
  box-shadow: 0 20px 60px rgba(210, 150, 120, 0.25), 0 0 0 2px rgba(255, 215, 200, 0.3);
  padding: 2.5rem 2.5rem 2rem; position: relative; z-index: 1; border: 2px solid rgba(255, 255, 255, 0.6);
}

.header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.mascot { display: flex; flex-direction: column; align-items: center; animation: bounceMascot 3s ease-in-out infinite; }

@keyframes bounceMascot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mascot-face { font-size: 4rem; filter: drop-shadow(0 8px 20px rgba(255, 200, 100, 0.3)); transition: transform 0.3s; }
.mascot-face:hover { transform: scale(1.1) rotate(-10deg); }
.mascot-text {
  font-size: 0.8rem; background: #ffd93d; padding: 2px 14px; border-radius: 20px;
  color: #6b4c3b; font-weight: 600; margin-top: -8px; box-shadow: 0 4px 10px rgba(255, 217, 61, 0.4);
}

.header-content { flex: 1; }
h1 { font-size: 2.2rem; font-weight: 700; color: #4a2c1f; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h1 i { color: #f0936d; font-size: 2rem; animation: sparkle 2s ease-in-out infinite; }

@keyframes sparkle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2) rotate(10deg); }
}

.school-name {
  font-size: 1rem; font-weight: 700; letter-spacing: 2px;
  background: linear-gradient(135deg, #f0936d, #e8a87c);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-top: -5px;
}

.subhead {
  color: #8b6b5a; font-weight: 500; display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap; font-size: 0.95rem; background: rgba(255, 215, 200, 0.25);
  padding: 4px 16px; border-radius: 30px; margin-top: 4px; width: fit-content;
}

/* =========================================================
   4. PROGRESS STEPS
========================================================= */
.progress-steps {
  display: flex; align-items: center; justify-content: center; gap: 0;
  margin: 1.5rem 0 2rem; padding: 12px 20px; background: rgba(255, 235, 220, 0.4); border-radius: 50px; flex-wrap: wrap;
}

.step { display: flex; align-items: center; gap: 8px; }
.step-number {
  width: 32px; height: 32px; border-radius: 50%; background: #e8d5c8; color: #8b6b5a;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; transition: 0.3s;
}
.step.active .step-number {
  background: linear-gradient(135deg, #f0936d, #e8a87c); color: white; box-shadow: 0 4px 15px rgba(240, 147, 109, 0.4);
}
.step-label { font-size: 0.75rem; font-weight: 600; color: #8b6b5a; }
.step.active .step-label { color: #4a2c1f; }
.step-line { width: 30px; height: 2px; background: #e8d5c8; margin: 0 6px; }

/* =========================================================
   5. SECTION TITLE & INPUT FORM
========================================================= */
.section-title {
  display: flex; align-items: center; gap: 12px; margin: 1.2rem 0 0.8rem;
  padding: 0 0 0.5rem; border-bottom: 2px dashed rgba(240, 147, 109, 0.3);
}
.section-title h2 { font-size: 1.1rem; color: #4a2c1f; font-weight: 700; }
.section-icon { font-size: 1.5rem; }
.section-line { flex: 1; height: 2px; background: linear-gradient(to right, rgba(240, 147, 109, 0.3), transparent); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.8rem; }
.full-width { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-weight: 600; font-size: 0.85rem; color: #4a2c1f; display: flex; align-items: center; gap: 8px; }
.form-group label i { color: #f0936d; width: 18px; font-size: 0.9rem; }
.required { color: #ff6b6b; font-size: 0.9rem; }

.form-group input, .form-group select {
  padding: 12px 16px; border: 2px solid #f0ddd0; border-radius: 20px; font-size: 0.95rem;
  background: #fefcf9; transition: 0.3s; outline: none; font-family: 'Quicksand', sans-serif;
}
.form-group input:focus, .form-group select:focus {
  border-color: #f0936d; box-shadow: 0 0 0 4px rgba(240, 147, 109, 0.15); background: white;
}
.form-group input::placeholder { color: #c4b0a0; }

.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-card {
  display: flex; align-items: center; gap: 10px; padding: 8px 20px 8px 16px;
  border: 2px solid #f0ddd0; border-radius: 30px; cursor: pointer; transition: 0.3s; background: #fefcf9;
}
.radio-card:hover { border-color: #f0936d; background: #fff5ee; }
.radio-card input[type="radio"] { accent-color: #f0936d; width: 18px; height: 18px; margin: 0; }
.radio-card:has(input:checked) { border-color: #f0936d; background: #fff0e8; box-shadow: 0 4px 15px rgba(240, 147, 109, 0.15); }
.radio-emoji { font-size: 1.2rem; }
.radio-text { font-weight: 500; color: #4a2c1f; }

/* =========================================================
   6. SECTION PAYMENT - DESAIN BARU YANG ANTI-BERANTAKAN
========================================================= */
.pay-box {
  background: #fffcf9; border: 2px solid #f0ddd0; border-radius: 28px;
  box-shadow: 0 10px 30px rgba(210, 150, 120, 0.12); overflow: hidden;
  margin: 0.5rem 0 1.5rem; transition: all 0.3s ease;
}
.pay-box:hover { border-color: #f0936d; box-shadow: 0 15px 35px rgba(240, 147, 109, 0.18); }

.pay-top-banner {
  background: linear-gradient(135deg, #fff0e6, #fdf4ec); padding: 1.5rem;
  display: flex; align-items: center; gap: 1.2rem; border-bottom: 2px dashed #f0ddd0;
}
.pay-logo {
  width: 58px; height: 58px; background: linear-gradient(135deg, #f0936d, #e8835a);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: white; box-shadow: 0 6px 18px rgba(240, 147, 109, 0.3); flex-shrink: 0;
}
.pay-header-text h3 { font-size: 1.25rem; color: #4a2c1f; margin-bottom: 4px; font-weight: 700; }
.pay-header-text p { font-size: 0.85rem; color: #8b6b5a; margin: 0; }

.pay-content { padding: 1.8rem 1.5rem; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.pay-item { display: flex; flex-direction: column; gap: 6px; }
.pay-label { font-size: 0.75rem; font-weight: 700; color: #b39c8d; letter-spacing: 0.5px; }
.pay-value { font-size: 1.05rem; font-weight: 600; color: #4a2c1f; }
.pay-amount { color: #e67e22; font-size: 1.3rem; font-weight: 700; }

.pay-acc-wrapper { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pay-acc-num {
  font-family: 'Courier New', monospace; font-size: 1.15rem; font-weight: 700;
  background: #f8f0ea; padding: 8px 14px; border-radius: 10px; color: #4a2c1f; border: 1px solid #e8d5c8;
}

.btn-copy-new {
  background: #f0936d; color: white; border: none; padding: 8px 16px; border-radius: 10px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: 0.2s; box-shadow: 0 4px 12px rgba(240, 147, 109, 0.2);
}
.btn-copy-new:hover { background: #e07d54; transform: translateY(-2px); }

.pay-alert {
  background: #fff8f2; border-left: 4px solid #f0936d; padding: 1rem 1.2rem;
  border-radius: 12px; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 8px;
}
.alert-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: #5a3d2e; }
.alert-item i { color: #f0936d; margin-top: 3px; }

.pay-checkbox-area { padding-top: 1.2rem; border-top: 2px dashed #f0ddd0; }
.custom-check-label {
  display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 0.95rem; color: #4a2c1f;
}
.custom-check-label input[type="checkbox"] { width: 20px; height: 20px; accent-color: #2ecc71; cursor: pointer; }
.custom-check-label i { color: #2ecc71; font-size: 1.1rem; }

/* =========================================================
   7. UPLOAD CARDS GRID & TOMBOL SUBMIT
========================================================= */
.upload-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 0.5rem; }
.upload-card {
  background: #fefcf9; border: 2px dashed #f0ddd0; border-radius: 24px; padding: 1rem 0.8rem;
  text-align: center; transition: 0.3s; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.upload-card:hover { border-color: #f0936d; background: #fff8f2; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(240, 147, 109, 0.12); }
.upload-icon { font-size: 2rem; }
.upload-card label { font-weight: 600; font-size: 0.8rem; color: #4a2c1f; display: flex; align-items: center; gap: 4px; }
.upload-card label .required { font-size: 0.8rem; }
.upload-card input[type="file"] { width: 100%; padding: 6px 4px; font-size: 0.7rem; border: none; background: transparent; cursor: pointer; font-family: 'Quicksand', sans-serif; }
.upload-card input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, #f0936d, #e8a87c); color: white; border: none;
  padding: 4px 14px; border-radius: 30px; font-weight: 600; font-size: 0.7rem; cursor: pointer; transition: 0.3s; font-family: 'Quicksand', sans-serif;
}
.upload-card input[type="file"]::file-selector-button:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(240, 147, 109, 0.3); }
.file-hint { font-size: 0.6rem; color: #c4b0a0; }

.btn-submit {
  grid-column: 1 / -1; margin-top: 1.5rem; padding: 18px 32px;
  background: linear-gradient(135deg, #f0936d, #e8835a); border: none; border-radius: 60px;
  color: white; font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  gap: 14px; cursor: pointer; transition: 0.3s; box-shadow: 0 12px 30px rgba(240, 147, 109, 0.35);
  letter-spacing: 0.5px; font-family: 'Quicksand', sans-serif; outline: none;
}
.btn-submit .btn-text { font-size: 1.1rem; }
.btn-submit i { font-size: 1.3rem; }
.btn-submit:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 18px 40px rgba(240, 147, 109, 0.45); }
.btn-submit:active { transform: scale(0.97) translateY(0); }

/* =========================================================
   8. FOOTER & TOAST
========================================================= */
.footer { margin-top: 2rem; text-align: center; padding-top: 1.2rem; border-top: 2px dashed rgba(240, 147, 109, 0.2); }
.footer p { color: #8b6b5a; font-weight: 500; font-size: 0.9rem; }
.footer-icons { display: flex; justify-content: center; gap: 10px; margin-top: 6px; font-size: 1.2rem; }
.footer-icons span { animation: sparkle 3s ease-in-out infinite; display: inline-block; }
.footer-icons span:nth-child(2) { animation-delay: 0.5s; }
.footer-icons span:nth-child(3) { animation-delay: 1s; }
.footer-icons span:nth-child(4) { animation-delay: 1.5s; }

.toast-message {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #4a2c1f; color: #fefcf9; padding: 14px 30px; border-radius: 60px;
  font-weight: 600; box-shadow: 0 12px 40px rgba(0,0,0,0.15); display: flex; align-items: center;
  gap: 12px; z-index: 999; opacity: 0; transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none; font-family: 'Quicksand', sans-serif;
}
.toast-message.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* =========================================================
   9. RESPONSIVE MEDIA QUERIES
========================================================= */
@media (max-width: 768px) {
  .container { padding: 1.5rem 1.2rem; }
  .form-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  h1 { font-size: 1.6rem; }
  .header { flex-direction: column; text-align: center; }
  .mascot-face { font-size: 3rem; }
  .progress-steps { gap: 4px; padding: 8px 12px; }
  .step-line { width: 15px; }
  .upload-grid { grid-template-columns: 1fr 1fr; }
  .pay-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .pay-acc-wrapper { flex-direction: column; align-items: stretch; }
  .pay-acc-num { text-align: center; }
  .btn-copy-new { justify-content: center; }
}

@media (max-width: 480px) {
  .upload-grid { grid-template-columns: 1fr; }
  .radio-group { flex-direction: column; }
  .btn-submit { padding: 14px 20px; font-size: 1rem; }
}