/* Envoi commun aux formulaires Volkswagen Tourisme et Utilitaires. */
.cf-form .cf-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.cf-form [hidden] { display: none !important; }
.cf-form.is-sent {
  display: grid;
  align-items: center;
  background: linear-gradient(155deg, #f5f8f6, #fafbf9);
  border-color: #d3e4d8;
}
.cf-form .cf-success:not([hidden]) { display: flex; }
.cf-form .cf-success {
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 32px 8px;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--vw, #1b2236);
  text-align: center;
  line-height: 1.6;
}
.cf-success-icon {
  display: block;
  width: 84px;
  height: 84px;
  margin-bottom: 28px;
  flex-shrink: 0;
  color: #25814a;
}
.cf-success-icon circle { fill: #e4f2e8; }
.cf-success-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.cf-success-title {
  font: inherit;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
  margin: 0 0 16px;
}
.cf-success-description {
  margin: 0;
  max-width: 340px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: #59666b;
}
.cf-success.show .cf-success-icon { animation: cf-success-appear .45s ease-out both; }
.cf-success.show .cf-success-icon path { animation: cf-success-check .55s .2s ease-out both; }
.cf-success.show .cf-success-title,
.cf-success.show .cf-success-description { animation: cf-success-appear .45s .35s ease-out both; }
@keyframes cf-success-appear {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cf-success-check {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-success.show .cf-success-icon,
  .cf-success.show .cf-success-icon path,
  .cf-success.show .cf-success-title,
  .cf-success.show .cf-success-description { animation: none; }
}
.cf-error, .cf-noscript {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid #b97575;
  border-radius: 2px;
  background: #fff3f3;
  color: #752828;
  font-size: 14px;
  line-height: 1.6;
}
.cf-error p + p { margin-top: 8px; }
.cf-error a, .cf-noscript a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cf-form[aria-busy="true"] { cursor: wait; }
.cf-form .cf-submit:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
  box-shadow: none;
}
.cf-form .cf-submit:focus-visible,
.cf-form .cf-error:focus,
.cf-error a:focus-visible,
.cf-noscript a:focus-visible {
  outline: 2px solid var(--vw, #1b2236);
  outline-offset: 4px;
}
/* Le statut reçoit le focus pour sa lecture, sans devenir un bouton encadré. */
.cf-form .cf-success:focus { outline: none; }

.cf-required { color: #b42332; font-weight: 700; }
.cf-required-note { margin: 0 0 22px; color: #59666b; font-size: 12px; line-height: 1.6; }
.cf-attachments { margin: 4px 0 24px; padding: 18px; border: 1px solid var(--rule, #d9dfe3); border-radius: 4px; background: #fff; }
.cf-attachments .cf-label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cf-attachment-icon { display: block; width: 18px; height: 18px; flex-shrink: 0; }
.cf-attachment-note { margin: 0 0 12px; font-size: 13px; line-height: 1.65; color: var(--vw, #1b2236); }
.cf-file-help, .cf-file-status { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: #59666b; overflow-wrap: anywhere; }
.cf-file-status:empty { display: none; }
.cf-file-status.is-error { color: #a11e2b; }
.cf-file-picker { position: relative; }
.cf-file-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.cf-file-button { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 12px; border: 1px solid var(--vw, #1b2236); border-radius: 2px; background: #f5f7f9; color: var(--vw, #1b2236); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.cf-clear-files { margin-top: 10px; padding: 6px 0; border: 0; background: none; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; color: var(--vw, #1b2236); cursor: pointer; }
.cf-file-input:focus-visible + .cf-file-button, .cf-clear-files:focus-visible { outline: 2px solid var(--vw, #1b2236); outline-offset: 4px; }
.cf-file-input:disabled + .cf-file-button, .cf-clear-files:disabled { opacity: .65; cursor: wait; }

.cf-security { margin: 0 0 20px; min-width: 0; }
.cf-security-status { margin-top: 10px; color: #59666b; font-size: 12px; line-height: 1.6; }
.cf-security-status.is-error { color: #a11e2b; }
.cf-security-retry { margin-top: 8px; padding: 8px 0; border: 0; background: none; color: var(--vw, #1b2236); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cf-security-retry:focus-visible { outline: 2px solid var(--vw, #1b2236); outline-offset: 4px; }
.cf-form .cf-submit:disabled { cursor: not-allowed; }
.cf-form[aria-busy="true"] .cf-submit:disabled { cursor: wait; }
