
/* ==========================================================================
   FORMULAIRE CF7 — Page Contact Karuweb
   Ciblage strict : .contact-page__form-wrap
   ========================================================================== */

/* Carte formulaire */
.contact-page__form-wrap {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 44px 48px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.contact-page__form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #B47CFD, #FF7FC2);
}

/* Titre & lead du formulaire */
.contact-page__form-title {
  font-family: var(--kw-font-title, 'Outfit', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #1A1208;
  margin: 0 0 6px;
}
.contact-page__form-lead {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(26, 18, 8, 0.5);
  margin: 0 0 32px;
}

/* --------------------------------------------------------------------------
   CHAMPS
   -------------------------------------------------------------------------- */
.contact-page__form-wrap .karuweb-cf7-row {
  margin-bottom: 14px;
}
.contact-page__form-wrap .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.contact-page__form-wrap input[type="text"],
.contact-page__form-wrap input[type="email"],
.contact-page__form-wrap input[type="tel"],
.contact-page__form-wrap textarea {
  width: 100%;
  background: #F8F7F4;
  border: 1.5px solid #E8E4F0;
  border-radius: 10px;
  color: #1A1208;
  font-family: var(--kw-font-body, 'Inter', sans-serif);
  font-size: 0.93rem;
  padding: 13px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  line-height: 1.5;
}

/* Placeholder */
.contact-page__form-wrap input::placeholder,
.contact-page__form-wrap textarea::placeholder {
  color: rgba(26, 18, 8, 0.35);
}

/* Focus */
.contact-page__form-wrap input:focus,
.contact-page__form-wrap textarea:focus {
  border-color: #B47CFD;
  box-shadow: 0 0 0 3px rgba(180, 124, 253, 0.12);
  background: #FFFFFF;
}

/* Textarea */
.contact-page__form-wrap textarea {
  min-height: 140px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   ERREURS
   -------------------------------------------------------------------------- */
.contact-page__form-wrap .wpcf7-not-valid-tip {
  color: #E04B4B;
  font-size: 0.75rem;
  margin-top: 5px;
  display: block;
  font-style: italic;
}
.contact-page__form-wrap input.wpcf7-not-valid,
.contact-page__form-wrap textarea.wpcf7-not-valid {
  border-color: rgba(224, 75, 75, 0.5);
  box-shadow: 0 0 0 3px rgba(224, 75, 75, 0.07);
}

/* --------------------------------------------------------------------------
   MESSAGE DE RÉPONSE
   -------------------------------------------------------------------------- */
.contact-page__form-wrap .wpcf7-response-output {
  border-radius: 10px !important;
  padding: 13px 16px !important;
  font-size: 0.88rem !important;
  margin: 16px 0 0 !important;
  border: 1.5px solid !important;
  font-family: var(--kw-font-body, 'Inter', sans-serif) !important;
  line-height: 1.6 !important;
}
.contact-page__form-wrap .wpcf7-mail-sent-ok {
  background: #F0FAF6 !important;
  border-color: #1D9E75 !important;
  color: #166B4F !important;
}
.contact-page__form-wrap .wpcf7-mail-sent-ng,
.contact-page__form-wrap .wpcf7-validation-errors {
  background: #FEF2F2 !important;
  border-color: #E04B4B !important;
  color: #B91C1C !important;
}

/* --------------------------------------------------------------------------
   BOUTON SUBMIT
   -------------------------------------------------------------------------- */
.contact-page__form-wrap .wpcf7-submit {
  width: 100%;
  background: linear-gradient(120deg, #B47CFD 0%, #FF7FC2 100%);
  color: #FFFFFF;
  font-family: var(--kw-font-title, 'Outfit', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  padding: 15px 32px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(180, 124, 253, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  margin-top: 8px;
  display: block;
}
.contact-page__form-wrap .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 127, 194, 0.4);
  opacity: 0.95;
}
.contact-page__form-wrap .wpcf7-spinner {
  display: none !important;
}

/* --------------------------------------------------------------------------
   NOTE RGPD
   -------------------------------------------------------------------------- */
.contact-page__form-note {
  font-size: 0.72rem;
  color: rgba(26, 18, 8, 0.38);
  line-height: 1.65;
  margin-top: 14px;
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .contact-page__form-wrap { padding: 32px 22px; }
}
@media (max-width: 480px) {
  .contact-page__form-wrap { padding: 26px 18px; border-radius: 14px; }
}