/* =========================================================
   Contact Form - UNSA (Flex)
   ========================================================= */

/* ---------- Conteneur principal ---------- */
.cf-block {
  max-width: 1250px;
  margin: 0 auto;
  padding: 50px 80px;
  border-radius: 24px;
  box-shadow: 0 8px 10px rgba(23,25,27,0.18), 0 2px 4px rgba(44,62,80,0.07);
}

/* ---------- Titres ---------- */
.cf-title {
  color: var(--unsa-btn-secondary);
  font-weight: 700;
  margin-bottom: 40px;
}

/* ---------- Séparateur horizontal ---------- */
.cf-hr {
  height: 1px;
  background: #aaaaaa;
  margin: 40px 0;
}

/* =========================================================
   BLOC 1 : "Vous êtes" / "Contact"
   ========================================================= */

.cf-flex {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 0;
}

.cf-col {
  flex: 1 1 0;
}

/* Barre verticale */
.cf-divider {
  width: 1px;
  background: #aaaaaa;
  align-self: stretch;
}

/* ---------- Lignes verticales (label + champ) ---------- */
.cf-row-line {
  display: flex;
  flex-direction: column;   /* LABEL AU-DESSUS */
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

/* Label */
.cf-label-col {
  width: 100%;
  text-align: left;
  color: var(--unsa-navy);
  font-weight: 700;
  font-size: 20px;
  font-family: 'Museo Sans', sans-serif;
}

/* Conteneur champ */
.cf-input-col {
  width: 100%;
  padding: 0;  /* plus de padding latéral inutile */
}

/* Champs texte / select / textarea */
.cf-input,
.cf-select,
.cf-textarea,
.cf-textmsg {
  width: 100%;
  border: 1.6px solid var(--unsa-navy);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1rem;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.cf-input:focus,
.cf-select:focus,
.cf-textarea:focus,
.cf-textmsg:focus {
  border-color: var(--unsa-official);
  box-shadow: 0 0 0 2px rgba(0,159,227,.15);
}

/* Select custom (flèche) */
.cf-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--unsa-navy) 50%),
    linear-gradient(135deg, var(--unsa-navy) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(1.05em),
    calc(100% - 14px) calc(1.05em);
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

/* Textarea */
.cf-textmsg {
  min-height: 180px;
  resize: vertical;
}

/* =========================================================
   BLOC 2 : "Informations professionnelles"
   ========================================================= */

.cf-flex-3 {
  display: flex;
  gap: 50px;
}

.cf-col-3 {
  flex: 1 1 0;
}

/* Séparateur vertical */
.cf-sep {
  width: 1px;
  background: #aaaaaa;
}

/* ========== RADIOS VERTICALISÉS ========== */

.cf-row-line.radio-stack {
  flex-direction: column;
}

.cf-row-line.radio-stack .cf-label-col {
  width: 100%;
  margin-bottom: 5px;
}

.cf-row-line.radio-stack .cf-radio-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}

/* Ligne d'une radio */
.cf-row-inline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Radio custom */
.cf-radio {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--unsa-navy);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.cf-radio:checked::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--unsa-navy);
}

.cf-radio-label {
  font-size: 18px;
  color: var(--unsa-dark);
}

/* =========================================================
   Responsive ≤ 992px
   ========================================================= */

@media (max-width: 992px) {
  .cf-flex {
    flex-direction: column;
    gap: 24px;
  }

  .cf-flex-3 {
    flex-direction: column;
    gap: 24px;
  }

  .cf-divider,
  .cf-sep {
    display: none;
  }

  .cf-block {
    padding: 40px 24px;
  }
}
