/* RESET */
* {
  box-sizing: border-box;
}

/* BODY */
body {
  margin: 0;
  background: #1e4e79;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* TEMPLATE WRAPPER */
.template-container {
  position: relative;
  width: 450px;
  max-width: 100%;
  
}

/* TEMPLATE IMAGE */
.template-img {
  width: 100%;
  height: auto;
  display: block;
}

/* FORM AREA (YELLOW PAPER CONTENT) */
.paper-content {
  position: absolute;
  top: 8%;
  left: 10%;
right: 10%;
  bottom: 20%;   /* ⭐ THIS IS THE MAGIC */
  padding: 10px;
  background: transparent;

  overflow-y: auto;
  overflow-x: hidden;

  scrollbar-width: none;
}
.paper-content::-webkit-scrollbar {
  display: none;
}

/* HEADINGS */
.paper-content h4 {
  text-align: center;
  font-weight: 700;
  font-size: 22px;
  color: #1f2937;
  margin-bottom: 2px;
}

.paper-content .small {
  text-align: center;
  font-size: 14px;
  color: #374151;
  margin-bottom: 4px;
}

.paper-content .intro {
  text-align: center;
  font-size: 12px;
  color: #4b5563;
  margin-bottom: 12px;
}

/* FORM INPUTS */
.form-control,
.form-select {
  font-size: 13px;
  border-radius: 8px;
  margin-bottom: 8px;
  padding: 7px 10px;
}

/* CHECKBOX & RADIO FIX */
.form-check {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-check-input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.form-check-label {
  font-size: 13px;
  line-height: 1.2;
}

/* MULTI STEP FORM */
.form-step {
  display: none;
}
.form-step.active {
  display: block;
}



/* BUTTONS */
.btn {
  border-radius: 8px;
  font-size: 14px;
  padding: 7px 0;
}

/* ===============================
   SUCCESS POPUP – FULL STYLE
================================ */

/* Modal width */
#successModal .modal-dialog {
  max-width: 360px;
  margin: auto;
}

/* Modal content */
#successModal .modal-content {
  position: relative;
  border-radius: 16px;
  border: none;
  overflow: visible;                 /* 🔥 allow check circle */
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  animation: popupScale .3s ease;
}

/* Popup animation */
@keyframes popupScale {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Check icon wrapper */
  
.check-wrapper {
  position: absolute;
  top: -26px;           /* ⬅️ half of 52px */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
/* Green check circle – reduced size */
.check-circle {
  width: 56px;        /* ⬅️ reduced from 72px */
  height: 56px;
  background: #6fd34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

/* SVG tick – matched size */
.check-circle svg {
  width: 18px;        /* ⬅️ balanced with 56px circle */
  height: 18px;
}


/* ⏳ FULLSCREEN UPLOAD LOADER */
.upload-loader {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-loader.d-none {
  display: none;
}

.loader-box {
  text-align: center;
  background: #fff;
  padding: 30px 40px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}


/* Popup body */
.success-body {
  padding: 32px 24px 24px;
  text-align: center;
}

/* Title */
.success-body h4 {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

/* Message */
.success-body p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Contact */
.success-body a {
  text-decoration: none;
  color: #16a34a;
  font-weight: 600;
}

/* Success button */
.success-btn {
  display: block;
  width: 70%;
  margin: 0 auto;
  padding: 9px 0;
  border-radius: 8px;
  border: none;
  background: #6fd34a;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s ease;
}

.success-btn:hover {
  background: #63c43f;
}




/* MOBILE – PERFECT CENTER FIX */
@media (max-width: 576px) {

  
  body {
    margin: 0;
    background: #1e4e79;
    display: flex;
    justify-content: center;     /* horizontal center */
    align-items: center;         /* ✅ vertical center */
    min-height: 100dvh;          /* ✅ real mobile height */
    overflow-x: hidden;
  }

  .template-container {
    position: relative;
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
   
  }

  .template-img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .paper-content {
    top: 9%;
    left: 7%;
     right: 7%;
    bottom: 16%;   /* 🔥 tweakable but stable */
    padding: 8px;
   
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .paper-content h4 {
    font-size: 18px;
  }

  .paper-content .small {
    font-size: 12px;
  }

  .paper-content .intro {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .form-control,
  .form-select {
    font-size: 12px;
    padding: 6px 8px;
    margin-bottom: 6px;
    font-weight: 500;
  }

  .form-check-label {
    font-size: 12px;
    font-weight: 500;
  }
  .form-check {
    margin-bottom: 2px;
  }

  .form-label {
    margin-bottom: 4px;
  }

  .row {
    margin-bottom: 6px;
  }

  

}