/* =========================================================
   Volunteer Field Interviewer — application form
   Glass wizard, 2 questions per screen.
   ========================================================= */

.apply-section{
  display: flex;
  justify-content: center;
  padding: 70px 20px 90px;
  background:
    radial-gradient(900px 460px at 10% 0%, rgba(0,155,213,0.14), transparent 60%),
    radial-gradient(700px 420px at 100% 20%, rgba(252,203,6,0.10), transparent 55%);
}

.apply-wizard{
  width: 100%;
  max-width: 720px;
  border-radius: 24px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 20px 60px rgba(9,42,67,0.14);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  overflow: hidden;
}

/* ---- Header / progress ---- */
.apply-head{
  padding: 30px 40px 0;
}
.apply-head .apply-tag{
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0,115,199,0.12);
  color: #0073C7;
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 14px;
}
.apply-head h2{
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: #222E50;
  margin: 0 0 20px;
}

.apply-progress-track{
  height: 6px;
  border-radius: 999px;
  background: rgba(34,46,80,0.10);
  overflow: hidden;
  margin-bottom: 10px;
}
.apply-progress-fill{
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0073C7, #009BD5);
  transition: width .5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0%;
}
.apply-step-label{
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #55606e;
  margin-bottom: 22px;
}

/* ---- Body / questions ---- */
.apply-body{
  padding: 6px 40px 10px;
  min-height: 230px;
}

.apply-screen{
  animation: apply-fade-in .5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes apply-fade-in{
  from{ opacity: 0; transform: translateY(14px) scale(0.98); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

.apply-field{
  margin-bottom: 26px;
}
.apply-field label.apply-q{
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: #222E50;
  margin-bottom: 4px;
}
.apply-field .apply-hint{
  display: block;
  font-size: 0.85rem;
  color: #6c7787;
  margin-bottom: 12px;
}

.apply-field input[type="text"],
.apply-field input[type="email"],
.apply-field input[type="tel"],
.apply-field input[type="number"],
.apply-field textarea,
.apply-field select{
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid rgba(34,46,80,0.18);
  background: rgba(255,255,255,0.75);
  font-family: 'Poppins', sans-serif;
  font-size: 0.96rem;
  color: #222E50;
  transition: border-color .3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.apply-field textarea{
  min-height: 100px;
  resize: vertical;
}
.apply-field input:focus,
.apply-field textarea:focus,
.apply-field select:focus{
  outline: none;
  border-color: #0073C7;
  box-shadow: 0 0 0 3px rgba(0,115,199,0.15);
}

/* ---- Choice groups (radio / checkbox) ---- */
.apply-choices{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.apply-choices.apply-choices-row{
  flex-direction: row;
  flex-wrap: wrap;
}
.apply-choice{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(34,46,80,0.16);
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  font-size: 0.95rem;
  color: #222E50;
  transition: border-color .3s cubic-bezier(0.16, 1, 0.3, 1), background .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.apply-choices.apply-choices-row .apply-choice{
  flex: 1 1 150px;
}
.apply-choice:hover{
  border-color: rgba(0,115,199,0.45);
}
.apply-choice input{
  accent-color: #0073C7;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.apply-choice.is-checked{
  border-color: #0073C7;
  background: rgba(0,115,199,0.10);
}

.apply-inline-input{
  margin-top: 8px;
  margin-left: 27px;
}

/* ---- Errors ---- */
.apply-error{
  color: #C0392B;
  font-size: 0.85rem;
  margin-top: 8px;
  display: none;
}
.apply-field.has-error .apply-error{ display: block; }
.apply-field.has-error input,
.apply-field.has-error textarea,
.apply-field.has-error .apply-choice{
  border-color: #C0392B;
}

/* ---- Footer / nav buttons ---- */
.apply-foot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px 34px;
}

.apply-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .3s cubic-bezier(0.16, 1, 0.3, 1), opacity .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.apply-btn-primary{
  background: linear-gradient(135deg, #0073C7, #009BD5);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,115,199,0.32);
  margin-left: auto;
}
.apply-btn-primary:hover{ transform: translateY(-2px); }
.apply-btn-primary:disabled{
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.apply-btn-ghost{
  background: transparent;
  color: #55606e;
  border: 1px solid rgba(34,46,80,0.18);
}
.apply-btn-ghost:hover{
  border-color: #0073C7;
  color: #0073C7;
}
.apply-btn-ghost:disabled{
  opacity: 0;
  pointer-events: none;
}

.apply-btn .fa-spinner{
  animation: apply-spin 0.8s linear infinite;
}
@keyframes apply-spin{
  to{ transform: rotate(360deg); }
}

/* ---- End states (disqualified / already submitted / success) ---- */
.apply-end{
  padding: 54px 40px 60px;
  text-align: center;
}
.apply-end .apply-end-icon{
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.apply-end.is-success .apply-end-icon{
  background: rgba(0,155,213,0.14);
  color: #0073C7;
}
.apply-end.is-stop .apply-end-icon{
  background: rgba(252,203,6,0.18);
  color: #a3790a;
}
.apply-end h2{
  font-family: 'Poppins', sans-serif;
  color: #222E50;
  margin: 0 0 14px;
  font-size: 1.5rem;
}
.apply-end p{
  color: #55606e;
  line-height: 1.7;
  max-width: 48ch;
  margin: 0 auto 10px;
}
.apply-end .apply-end-details{
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(0,115,199,0.08);
  text-align: left;
  font-size: 0.92rem;
  color: #223;
}
.apply-end .apply-end-details strong{ color: #0073C7; }

@media (max-width: 640px){
  .apply-head, .apply-body, .apply-foot, .apply-end{
    padding-left: 24px;
    padding-right: 24px;
  }
  .apply-choices.apply-choices-row .apply-choice{
    flex: 1 1 100%;
  }
}
