/* ============================================================
 * ISO&FACE — Surcharges Contact Form 7
 *
 * Stylise la sortie HTML que CF7 génère par-dessus le markup du
 * bloc iso/quote-form (et les autres formulaires CF7 du site).
 *
 * Hiérarchie :
 *   .quote-form-cf7 .wpcf7-form  → devis 3 étapes (page contact)
 *   .iso-cf7-compact             → rappel rapide (footer / sidebar)
 *   .iso-cf7-simu                → simulation aides
 *
 * Pré-requis : tokens.css (variables --brand, --paper, etc.)
 * ============================================================ */

/* ----------------------------------------------------------------
 *  RESET — neutralise les styles globaux de CF7
 * ---------------------------------------------------------------- */
.wpcf7 .wpcf7-form{ margin:0 }
.wpcf7 .wpcf7-form p{ margin:0 }
.wpcf7-not-valid-tip{
  display:block; margin-top:6px;
  font-size:12.5px; color:var(--error, #B00020); font-weight:600;
}
.wpcf7-response-output{
  margin:18px 0 0 !important; padding:14px 18px !important;
  border:0 !important; border-radius:12px;
  font-weight:600; font-size:14px;
}
.wpcf7 form.sent .wpcf7-response-output{
  background:var(--brand-soft); color:var(--brand-2);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output{
  background:#FCEDED; color:var(--error, #B00020);
}
.wpcf7-spinner{ background:var(--brand) !important }

/* Spam honeypot CF7 — pour les form-tag [honeypot] */
.wpcf7 .wpcf7-honeypot,
.wpcf7 input[name="iso_hp"]{
  position:absolute !important; left:-9999px !important;
  width:1px !important; height:1px !important; opacity:0 !important;
}

/* ================================================================
 *  1. DEVIS 3 ÉTAPES — bloc iso/quote-form en mode CF7
 * ================================================================ */
.quote-form-cf7 .wpcf7-form{
  display:flex; flex-direction:column; gap:0;
}

/* Les wrappers data-step="N" sont insérés directement dans le markup CF7 */
.quote-form-cf7 [data-step]{
  display:none;
}
.quote-form-cf7 [data-step].on{
  display:block;
  animation: cf7StepIn .28s ease-out;
}
@keyframes cf7StepIn{
  from{ opacity:0; transform:translateY(8px) }
  to  { opacity:1; transform:translateY(0) }
}
@media (prefers-reduced-motion: reduce){
  .quote-form-cf7 [data-step].on{ animation:none }
}

/* Lignes — 1 ou 2 colonnes (utilise .form-row / .form-row-2 dans le CF7) */
.quote-form-cf7 .form-row{ margin-bottom:14px }
.quote-form-cf7 .form-row-2{
  display:grid; grid-template-columns:1fr 1fr; gap:14px;
}
@media (max-width:640px){
  .quote-form-cf7 .form-row-2{ grid-template-columns:1fr }
}

/* Labels CF7 — toujours en <label> dans le markup */
.quote-form-cf7 label{
  display:block; font-size:13px; font-weight:600; color:var(--ink-2);
  line-height:1.4;
}
.quote-form-cf7 label .req{ color:var(--accent) }

/* Inputs / select / textarea — match du look du form natif */
.quote-form-cf7 .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance):not(.wpcf7-radio):not(.wpcf7-checkbox):not(.wpcf7-list-item):not(.wpcf7-list-item-label){
  width:100%; margin-top:6px; padding:11px 12px;
  border:1px solid var(--line); border-radius:10px; background:#fff;
  font-size:15px; color:var(--ink); font-family:inherit;
  transition:border-color .15s, box-shadow .15s;
  box-sizing:border-box;
}
.quote-form-cf7 .wpcf7-form-control:not(.wpcf7-submit):focus{
  outline:none; border-color:var(--brand);
  box-shadow:0 0 0 3px var(--brand-soft);
}
.quote-form-cf7 .wpcf7-textarea{ min-height:96px; resize:vertical }
.quote-form-cf7 .wpcf7-not-valid{ border-color:var(--error, #B00020) !important }

/* Acceptance (RGPD) */
.quote-form-cf7 .wpcf7-acceptance{ display:block; margin-top:8px }
.quote-form-cf7 .wpcf7-acceptance .wpcf7-list-item{ margin:0 }
.quote-form-cf7 .wpcf7-acceptance label{
  display:flex; gap:10px; align-items:flex-start;
  font-weight:400; font-size:13px; color:var(--ink-3); cursor:pointer;
}
.quote-form-cf7 .wpcf7-acceptance input[type="checkbox"]{
  width:auto; margin-top:2px; flex-shrink:0;
  accent-color:var(--brand);
}

/* Actions — boutons Suivant / Précédent / Envoyer */
.quote-form-cf7 .quote-actions{
  display:flex; gap:12px; justify-content:space-between;
  margin-top:24px; flex-wrap:wrap;
}
.quote-form-cf7 .quote-actions .btn:only-child{ margin-left:auto }

/* Submit CF7 — réutilise .btn.accent */
.quote-form-cf7 .wpcf7-submit{
  width:auto; margin-top:0; padding:14px 28px;
  background:var(--accent); color:#fff; border:0; border-radius:999px;
  font-weight:700; font-size:15px; letter-spacing:-.2px;
  cursor:pointer; transition:background .15s, transform .05s;
}
.quote-form-cf7 .wpcf7-submit:hover{ background:var(--accent-2, #d94f00) }
.quote-form-cf7 .wpcf7-submit:active{ transform:translateY(1px) }

/* ================================================================
 *  2. RAPPEL RAPIDE — formulaire compact (footer / sidebar)
 * ================================================================ */
.iso-cf7-compact .wpcf7-form{
  display:flex; flex-direction:column; gap:10px;
  background:#fff; border:1px solid var(--line); border-radius:18px;
  padding:22px;
}
.iso-cf7-compact label{
  display:block; font-size:12.5px; font-weight:600;
  color:var(--ink-2); margin-bottom:4px;
}
.iso-cf7-compact .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance):not(.wpcf7-list-item):not(.wpcf7-list-item-label){
  width:100%; padding:10px 12px;
  border:1px solid var(--line); border-radius:10px; background:#fff;
  font-size:14.5px; color:var(--ink); font-family:inherit;
  box-sizing:border-box;
}
.iso-cf7-compact .wpcf7-form-control:focus{
  outline:none; border-color:var(--brand);
  box-shadow:0 0 0 3px var(--brand-soft);
}
.iso-cf7-compact .wpcf7-acceptance{ font-size:12px; color:var(--ink-3) }
.iso-cf7-compact .wpcf7-acceptance label{
  display:flex; gap:8px; align-items:flex-start; cursor:pointer;
}
.iso-cf7-compact .wpcf7-acceptance input{ accent-color:var(--brand) }
.iso-cf7-compact .wpcf7-submit{
  width:100%; margin-top:6px; padding:12px 18px;
  background:var(--brand); color:#fff; border:0; border-radius:999px;
  font-weight:700; font-size:14.5px; cursor:pointer;
  transition:background .15s;
}
.iso-cf7-compact .wpcf7-submit:hover{ background:var(--brand-2) }

/* ================================================================
 *  3. SIMULATION AIDES — formulaire éligibilité (CEE, MaPrimeRénov')
 * ================================================================ */
.iso-cf7-simu .wpcf7-form{
  background:var(--brand-soft); border-radius:24px; padding:32px;
  display:grid; grid-template-columns:1fr 1fr; gap:16px;
}
@media (max-width:640px){
  .iso-cf7-simu .wpcf7-form{ grid-template-columns:1fr; padding:22px }
}
.iso-cf7-simu .full{ grid-column:1/-1 }
.iso-cf7-simu label{
  display:block; font-size:13px; font-weight:700; color:var(--brand-2);
  letter-spacing:-.1px;
}
.iso-cf7-simu .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance):not(.wpcf7-radio):not(.wpcf7-list-item):not(.wpcf7-list-item-label){
  width:100%; margin-top:6px; padding:11px 12px;
  border:1px solid #fff; border-radius:10px; background:#fff;
  font-size:15px; color:var(--ink); font-family:inherit;
  box-sizing:border-box;
}
.iso-cf7-simu .wpcf7-form-control:focus{
  outline:none; border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(255,255,255,.6);
}
/* Radio pills "Propriétaire / Locataire" */
.iso-cf7-simu .wpcf7-radio{
  display:flex; flex-wrap:wrap; gap:8px; margin-top:6px;
}
.iso-cf7-simu .wpcf7-radio .wpcf7-list-item{
  margin:0; flex:1 1 auto;
}
.iso-cf7-simu .wpcf7-radio .wpcf7-list-item label{
  display:flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 14px; border:1.5px solid #fff; background:#fff;
  border-radius:999px; cursor:pointer;
  font-size:13.5px; font-weight:600; color:var(--ink-2);
  transition:border-color .15s, background .15s;
}
.iso-cf7-simu .wpcf7-radio .wpcf7-list-item input{
  position:absolute; opacity:0; pointer-events:none;
}
.iso-cf7-simu .wpcf7-radio .wpcf7-list-item input:checked + .wpcf7-list-item-label,
.iso-cf7-simu .wpcf7-radio .wpcf7-list-item:has(input:checked) label{
  border-color:var(--brand); color:var(--brand);
  background:#fff; box-shadow:0 0 0 3px rgba(253,95,0,.12);
}
.iso-cf7-simu .wpcf7-submit{
  grid-column:1/-1;
  padding:14px 28px;
  background:var(--accent); color:#fff; border:0; border-radius:999px;
  font-weight:700; font-size:15px; cursor:pointer;
  transition:background .15s;
}
.iso-cf7-simu .wpcf7-submit:hover{ background:var(--accent-2, #d94f00) }

/* ================================================================
 *  Réutilisation des indicateurs d'étapes (.quote-steps) — déjà
 *  stylés dans main.css, on s'assure juste que CF7 ne casse rien.
 * ================================================================ */
.quote-form-cf7 .wpcf7-form > .quote-steps{
  margin:0 0 24px;
}


/* ================================================================
 *  4. FORM RAPPEL RAPIDE — utilisé en bas de single.php (post-quote)
 *     et single-realisation.php (real-quote). Form CF7 ID 780829e.
 * ================================================================ */
.post-quote .wpcf7-form,
.real-quote .wpcf7-form {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 18px 20px;
}
.post-quote .wpcf7-form label,
.real-quote .wpcf7-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.post-quote .wpcf7-form label > .wpcf7-form-control-wrap,
.real-quote .wpcf7-form label > .wpcf7-form-control-wrap {
  display: block;
  margin-top: 6px;
}
.post-quote .wpcf7-form .req,
.real-quote .wpcf7-form .req {
  color: var(--brand);
  font-weight: 700;
  margin-left: 2px;
}
.post-quote .wpcf7-form input[type="text"],
.post-quote .wpcf7-form input[type="email"],
.post-quote .wpcf7-form input[type="tel"],
.real-quote .wpcf7-form input[type="text"],
.real-quote .wpcf7-form input[type="email"],
.real-quote .wpcf7-form input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.post-quote .wpcf7-form input::placeholder,
.real-quote .wpcf7-form input::placeholder {
  color: var(--ink-4);
  font-weight: 400;
}
.post-quote .wpcf7-form input:focus,
.real-quote .wpcf7-form input:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(253, 95, 0, 0.16);
}

/* Acceptance RGPD : full width, checkbox + label inline */
.post-quote .wpcf7-form .wpcf7-acceptance,
.real-quote .wpcf7-form .wpcf7-acceptance {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-top: 4px;
}
.post-quote .wpcf7-form .wpcf7-acceptance .wpcf7-list-item,
.real-quote .wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}
.post-quote .wpcf7-form .wpcf7-acceptance input[type="checkbox"],
.real-quote .wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
  flex-shrink: 0;
}

/* Bouton submit : pleine largeur, style accent ISO&FACE */
.post-quote .wpcf7-form .wpcf7-submit,
.real-quote .wpcf7-form .wpcf7-submit {
  grid-column: 1 / -1;
  width: 100%;
  padding: 16px 24px;
  background: var(--brand);
  border: 0;
  border-radius: var(--radius-full);
  color: #fff;
  font-family: "Google Sans Flex", "Inter", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  text-align: center;
}
.post-quote .wpcf7-form .wpcf7-submit:hover,
.real-quote .wpcf7-form .wpcf7-submit:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}
.post-quote .wpcf7-form .wpcf7-submit:disabled,
.real-quote .wpcf7-form .wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* Validation message inline (sous chaque champ) */
.post-quote .wpcf7-form .wpcf7-not-valid-tip,
.real-quote .wpcf7-form .wpcf7-not-valid-tip {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* Response message (en bas du form) */
.post-quote .wpcf7 .wpcf7-response-output,
.real-quote .wpcf7 .wpcf7-response-output {
  grid-column: 1 / -1;
  margin: 18px 0 0 !important;
}

/* Mobile : passe en une colonne */
@media (max-width: 600px) {
  .post-quote .wpcf7-form,
  .real-quote .wpcf7-form {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}


/* ================================================================
 *  5. WRAP CF7 callback : header agences + bloc match agence
 * ================================================================ */
.iso-cf7-callback {
  max-width: 720px;
  margin: 0 auto;
}
.wp-block-iso-callback-banner .iso-cf7-callback {
  margin: 0;
}

/* Header info : « Nos agences / 7 agences locales » */
.iso-cf7-callback__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.iso-cf7-callback__head-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--ink-3);
}
.iso-cf7-callback__head-value {
  font-family: "Google Sans Flex", "Inter", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-left: auto;
}

/* Bloc « Votre agence » — caché par défaut, animé à l'apparition */
.iso-cf7-callback__match[hidden] { display: none !important; }
.iso-cf7-callback__match {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: rgba(253, 95, 0, 0.08);
  border: 1px solid var(--brand-pale);
  border-radius: var(--radius);
  margin-bottom: 18px;
  animation: isoAgenceSlide .3s ease-out;
}
@keyframes isoAgenceSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.iso-cf7-callback__match-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.iso-cf7-callback__match-body { flex: 1; }
.iso-cf7-callback__match-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--brand);
  margin-bottom: 2px;
}
.iso-cf7-callback__match-name {
  font-family: "Google Sans Flex", "Inter", sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.iso-cf7-callback__match-meta {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 2px;
}

@media (max-width: 600px) {
  .iso-cf7-callback__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .iso-cf7-callback__head-value { margin-left: 0; }
}


/* ================================================================
 *  6. ZONE DE DÉPÔT FICHIER — habille le form-tag [file] de CF7
 *     en zone drag & drop (CV du formulaire de candidature).
 *     Markup attendu autour du tag :
 *       <span class="iso-file-drop">
 *         [file candidat-cv ...]
 *         <span class="iso-file-drop__ui">svg + __text</span>
 *       </span>
 *     L'input natif couvre toute la zone en opacité 0 : le clic ouvre
 *     le sélecteur et le drop natif du navigateur assigne le fichier.
 *     main.js (initFileDrops) affiche le nom du fichier choisi.
 * ================================================================ */
.iso-file-drop{
  position:relative; display:flex; align-items:center; justify-content:center;
  margin-top:8px; min-height:190px; padding:28px 20px;
  border:2px dashed var(--line-2); border-radius:var(--radius, 12px);
  background:#fff; text-align:center; cursor:pointer;
  transition:border-color .15s, background .15s;
}
.iso-file-drop:hover,
.iso-file-drop.is-dragover{ border-color:var(--brand); background:var(--brand-soft) }
.iso-file-drop .wpcf7-form-control-wrap{ position:static }
.iso-file-drop input[type="file"]{
  position:absolute; inset:0; width:100%; height:100%;
  margin:0; opacity:0; cursor:pointer;
}
.iso-file-drop__ui{
  display:flex; flex-direction:column; align-items:center; gap:12px;
  pointer-events:none;
  font-size:15.5px; font-weight:500; color:var(--ink-3);
}
.iso-file-drop__ui svg{ width:26px; height:26px; color:var(--ink-3) }
.iso-file-drop.has-file{ border-style:solid; border-color:var(--brand) }
.iso-file-drop.has-file .iso-file-drop__text{ color:var(--ink); font-weight:600 }
.iso-file-drop.has-file .iso-file-drop__ui svg{ color:var(--brand) }
.iso-file-drop .wpcf7-not-valid-tip{
  position:absolute; left:0; right:0; bottom:10px;
  text-align:center; pointer-events:none;
}

/* ─── Step navigation pour le wrap .iso-cf7-callback--quote ───── */
.iso-cf7-callback--quote [data-step] { display: none; }
.iso-cf7-callback--quote [data-step].on {
  display: block;
  animation: cf7StepIn .28s ease-out;
}
.iso-cf7-callback--quote .form-row { margin-bottom: 14px; }
.iso-cf7-callback--quote .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .iso-cf7-callback--quote .form-row-2 { grid-template-columns: 1fr; }
}
.iso-cf7-callback--quote .quote-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 24px;
  flex-wrap: wrap;
}
.iso-cf7-callback--quote .quote-actions .btn:only-child { margin-left: auto; }

/* Inputs/textarea génériques sur la variante quote */
.iso-cf7-callback--quote .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance):not(.wpcf7-radio):not(.wpcf7-checkbox):not(.wpcf7-list-item):not(.wpcf7-list-item-label) {
  width: 100%; margin-top: 6px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 15px; color: var(--ink); font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.iso-cf7-callback--quote .wpcf7-form-control:not(.wpcf7-submit):focus {
  outline: 0; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.iso-cf7-callback--quote label {
  display: block;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  line-height: 1.4;
}
.iso-cf7-callback--quote label .req { color: var(--brand); }


/* ================================================================
 *  7. WRAP CF7 — variant `quote` en 2 colonnes
 *     Form gauche, carte agence sticky à droite (mise à jour live).
 * ================================================================ */
.iso-cf7-callback--quote {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
  max-width: 1080px;
  margin: 32px auto;
  padding: 0 40px;
}
.iso-cf7-callback--quote .iso-cf7-callback__form { min-width: 0; }
.iso-cf7-callback--quote .iso-cf7-callback__aside {
  position: sticky;
  top: 100px;
}

/* Header info collapse dans la sidebar */
.iso-cf7-callback--quote .iso-cf7-callback__head {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 12px;
  padding: 16px 18px;
}
.iso-cf7-callback--quote .iso-cf7-callback__head-value {
  margin-left: 0;
  font-size: 17px;
}

/* Carte agence détaillée (sticky) */
.iso-cf7-callback__match--card {
  display: block;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}
.iso-cf7-callback__match--card[hidden] { display: none !important; }
.iso-cf7-callback__match-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.iso-cf7-callback__match-details {
  margin: 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  row-gap: 10px;
  column-gap: 14px;
  font-size: 13px;
}
.iso-cf7-callback__match-details dt {
  color: var(--ink-3);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-top: 1px;
}
.iso-cf7-callback__match-details dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}
.iso-cf7-callback__match-details dd a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}
.iso-cf7-callback__match-details dd a:hover { text-decoration: underline; }
.iso-cf7-callback__hours-label { align-self: start; padding-top: 2px; }
.iso-cf7-callback__hours {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  row-gap: 4px;
  font-size: 12.5px;
}
.iso-cf7-callback__hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.iso-cf7-callback__hours li > span:first-child {
  color: var(--ink-3);
  font-weight: 500;
}
.iso-cf7-callback__hours li > span:last-child {
  color: var(--ink);
  font-weight: 600;
}
.iso-cf7-callback__match-cta {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}
.iso-cf7-callback__match-cta:hover { text-decoration: underline; }

/* Placeholder : message quand pas encore d'agence matchée */
.iso-cf7-callback__placeholder {
  padding: 28px 22px;
  background: var(--paper-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}
.iso-cf7-callback__placeholder[hidden] { display: none !important; }
.iso-cf7-callback__placeholder p { margin: 0; }

/* Responsive : single colonne sous 980px, sticky désactivé */
@media (max-width: 980px) {
  .iso-cf7-callback--quote {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .iso-cf7-callback--quote .iso-cf7-callback__aside { position: static; }
}


/* ================================================================
 *  8. CLOUDFLARE TURNSTILE — intégration visuelle
 *     Le widget est une iframe : impossible de styler son contenu.
 *     On aligne donc son conteneur sur le look des champs, et on
 *     compte sur les réglages du plugin : taille « flexible »,
 *     thème « light » (le thème auto peut sortir un widget sombre
 *     sur fond blanc).
 * ================================================================ */
.wpcf7 .cf-turnstile,
.wpcf7 .cf7-turnstile{
  display:block;
  margin:14px 0 0;
  line-height:0;               /* supprime l'espace fantôme sous l'iframe */
  border-radius:10px;          /* mêmes angles que les inputs */
  overflow:hidden;
  width:fit-content;
  max-width:100%;
}
.wpcf7 .cf-turnstile iframe,
.wpcf7 .cf7-turnstile iframe{
  max-width:100%;
  border-radius:10px;
}

/* En taille « flexible », le widget prend toute la largeur du form */
.wpcf7 .cf-turnstile:has(iframe[style*="width: 100%"]),
.wpcf7 .cf-turnstile[data-size="flexible"]{
  width:100%;
}

/* Formulaires en grid (rappel single / réalisation, simu) :
   le widget occupe toute la ligne, comme l'acceptance RGPD */
.post-quote .wpcf7-form .cf-turnstile,
.real-quote .wpcf7-form .cf-turnstile,
.iso-cf7-simu .cf-turnstile{
  grid-column:1 / -1;
}
