/* ── Widget VP Formulaire de contact (Fotostudio) ──
   Charte : Montserrat (texte), Playfair Display (titres), corail #f1b8a0,
   dégradé bouton #b46396 → #f1b8a0 (vp-button-gradient), ombre corail. */

.vp-cf {
  --vp-cf-border: var(--border, #ececec);
  --vp-cf-ring: var(--ring, #f49585);
  --vp-cf-muted: var(--muted-foreground, #6b6b6b);
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  color: var(--foreground, #000);
}

.vp-cf__intro {
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--vp-cf-muted);
  text-align: center;
}

.vp-cf__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
}
.vp-cf__full { grid-column: 1 / -1; }

.vp-cf__field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.vp-cf__label {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--foreground, #000);
}
.vp-cf__req { color: var(--primary, #f1b8a0); font-weight: 700; }
.vp-cf__hint { margin-top: -4px; font-size: 13px; color: var(--vp-cf-muted); }

.vp-cf .vp-cf__input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--foreground, #000);
  background: var(--background, #fff);
  border: 1px solid var(--vp-cf-border);
  border-radius: 12px;
  box-shadow: none;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.vp-cf .vp-cf__input:hover { border-color: var(--accent, #f5d4cb); }
.vp-cf .vp-cf__input:focus,
.vp-cf .vp-cf__input:focus-visible {
  border-color: var(--vp-cf-ring);
  box-shadow: 0 0 0 4px rgba(244, 149, 133, .18);
}
/* Erreur affichée seulement après interaction (pas de rouge au chargement) */
.vp-cf .vp-cf__input:user-invalid { border-color: var(--destructive, #e88273); }

.vp-cf .vp-cf__select {
  padding-right: 48px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23f1b8a0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 14px 9px;
}
.vp-cf .vp-cf__select:invalid { color: var(--vp-cf-muted); }
.vp-cf .vp-cf__select option { color: var(--foreground, #000); }

.vp-cf .vp-cf__textarea { min-height: 170px; resize: vertical; }

/* Consentement */
.vp-cf__consent {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 28px 0 0;
  padding: 18px 20px;
  background: var(--muted, #fdf6f3);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--vp-cf-muted);
}
.vp-cf__consent label { cursor: pointer; }
.vp-cf .vp-cf__checkbox {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--ring, #f49585);
  cursor: pointer;
}

/* Envoi */
.vp-cf__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  text-align: center;
}
.vp-cf .vp-cf__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 44px;
  background-color: transparent;
  background-image: linear-gradient(90deg, #b46396 0%, #f1b8a0 100%);
  color: #fff;
  border: 0;
  border-radius: 100px;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(180, 99, 150, .25);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.vp-cf .vp-cf__button:hover,
.vp-cf .vp-cf__button:focus,
.vp-cf .vp-cf__button:active {
  color: #fff;
  background-color: transparent;
  background-image: linear-gradient(90deg, #b46396 0%, #f1b8a0 100%);
}
.vp-cf .vp-cf__button:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(180, 99, 150, .35); }
.vp-cf .vp-cf__button:focus-visible { outline: 2px solid var(--vp-cf-ring); outline-offset: 4px; }
.vp-cf.is-sending .vp-cf__button { opacity: .6; pointer-events: none; transform: none; }

.vp-cf__legal {
  max-width: 560px;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--vp-cf-muted);
}
.vp-cf__legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.vp-cf__legal a:hover { color: #b46396; }

@media (max-width: 767px) {
  .vp-cf__grid { grid-template-columns: 1fr; gap: 18px; }
  .vp-cf .vp-cf__input { font-size: 16px; } /* évite le zoom automatique iOS */
  .vp-cf .vp-cf__button { width: 100%; padding: 18px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .vp-cf .vp-cf__button, .vp-cf .vp-cf__input { transition: none; }
  .vp-cf .vp-cf__button:hover { transform: none; }
}

/* Turnstile + message d'état */
.vp-cf__turnstile { min-height: 65px; display: flex; justify-content: center; }
.vp-cf__status {
  max-width: 560px;
  margin: 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fdecea;
  color: #9b3b2f;
  font-size: 14px;
  line-height: 1.5;
}
.vp-cf__status[hidden] { display: none; }
.vp-cf .vp-cf__button:disabled { cursor: progress; }
.vp-cf__status.is-info { background: var(--muted, #fdf6f3); color: var(--muted-foreground, #6b6b6b); }
