/* assets/css/application-form.css — CSS du formulaire de demande (application-form.php,
   application-relance.php), porte quasi verbatim du template
   (template-thailand/application-form-step1.html + -step2.html), sur les variables de
   assets/css/style.css (--navy/--navy-light correspondent a --blue/--blue-light du template,
   --bg-tint correspond a --cream). */

.af-wrap { max-width: 900px; margin: 0 auto; padding: 0 20px 60px; }

.af-stepper { display: flex; align-items: center; gap: 14px; margin: 26px 0 8px; }
.af-step-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.af-step-item.active { color: var(--red); }
.af-step-item.done { color: #1E7A3B; }
.af-step-circle {
  width: 28px; height: 28px; border-radius: 50%; background: #EFEAE0; color: var(--muted);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex: 0 0 auto;
}
.af-step-item.active .af-step-circle { background: var(--red); color: #fff; }
.af-step-item.done .af-step-circle { background: #1E7A3B; color: #fff; }
.af-step-line { width: 48px; height: 2px; background: var(--line); flex: 0 0 auto; }

.af-paid-banner {
  background: #EAF7EE; border: 1px solid #BFE6C9; color: #175C2C; border-radius: 10px;
  padding: 12px 16px; font-size: 14px; margin: 18px 0 0; text-align: center;
}

.af-form {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(20,20,20,.08); padding: 30px; margin-top: 20px;
}
.af-form fieldset { border: none; padding: 0; margin: 0 0 30px; }
.af-form legend { font-size: 17px; font-weight: 700; margin-bottom: 4px; padding: 0; color: var(--navy); }
.af-legend-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }
.af-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.af-field { margin-bottom: 16px; }
.af-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.af-field .af-hint { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.af-field input, .af-field select, .af-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; background: #fff; color: var(--ink); font-family: inherit;
}
.af-field textarea { resize: vertical; min-height: 80px; }
.af-field input:focus, .af-field select:focus, .af-field textarea:focus {
  outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red);
}
.af-field input[readonly] { background: var(--bg-tint); color: var(--muted); }

/* Filet rouge sur les champs restes vides apres une tentative d'envoi (voir guardFormSubmit
   dans application-form.php/application-relance.php) : purement visuel, ne bloque rien de
   plus que la validation HTML5 deja en place. Retire des qu'un champ redevient valide. */
.af-field input.af-invalid, .af-field select.af-invalid, .af-field textarea.af-invalid {
  border-color: var(--red); background: var(--red-tint);
}

.af-radio-group { display: flex; gap: 24px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.af-radio-option { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.af-radio-option input { width: 18px; height: 18px; accent-color: var(--red); cursor: pointer; }

.af-checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; margin-bottom: 20px; }
.af-checkbox-row input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--red); }

.af-terms { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin: 6px 0 22px; }
.af-terms input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--red); }

.af-conditional { display: none; }
.af-conditional.show { display: block; }

.af-submit-row { text-align: center; }
.af-submit-row .btn-primary {
  display: inline-block; background: var(--red); color: #fff; padding: 15px 40px; border-radius: 10px;
  font-weight: 700; text-decoration: none; font-size: 16px; border: none; cursor: pointer; font-family: inherit;
}
.af-submit-row .btn-primary:hover { background: var(--red-dark); }
.af-submit-row .btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.af-submit-note { color: var(--muted); font-size: 13px; margin-top: 10px; }

.af-next-note {
  background: #EEF0FF; border: 1px solid #CDD3F5; border-radius: 10px; padding: 14px 18px;
  font-size: 13.5px; color: var(--navy); margin-top: 22px; text-align: center;
}

.af-error-note { color: #b91c1c; font-weight: 600; font-size: 14px; margin: 0 0 16px; }

@media (max-width: 640px) {
  .af-form { padding: 20px; }
  .af-grid2 { grid-template-columns: 1fr; }
}
