/* NOOKI Devis — Form CSS */

.ndv-wrap {
  --ndv-bg:       #faccc4;
  --ndv-field:    #ffedde;
  --ndv-text:     #2c2e5d;
  --ndv-btn-bg:   #2c2e5d;
  --ndv-btn-text: #ffffff;

  background: var(--ndv-bg);
  border-radius: 20px;
  padding: 36px 40px 40px;
  width: 100%;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ndv-text);
}

.ndv-wrap *, .ndv-wrap *::before, .ndv-wrap *::after { box-sizing: border-box; }

/* Header */
.ndv-header { margin-bottom: 28px; }
.ndv-header h2 { margin: 0 0 8px; font-size: 22px; font-weight: 900; color: var(--ndv-text); }
.ndv-header p  { margin: 0; font-size: 15px; color: var(--ndv-text); opacity: 0.8; line-height: 1.5; }

/* Champs */
.ndv-field { margin-bottom: 20px; }

.ndv-field label {
  display: block;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--ndv-text) !important;
  margin-bottom: 10px !important;
}

.ndv-field small { font-weight: 400; opacity: 0.7; font-size: 13px; }

.ndv-field input[type="text"],
.ndv-field input[type="email"],
.ndv-field input[type="tel"],
.ndv-field textarea {
  width: 100% !important;
  background: var(--ndv-field) !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 18px 20px !important;
  font-size: 15px !important;
  color: var(--ndv-text) !important;
  font-family: inherit !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  display: block !important;
  transition: box-shadow 0.2s ease !important;
  box-shadow: none !important;
}

.ndv-field input:focus,
.ndv-field textarea:focus {
  box-shadow: 0 0 0 3px rgba(44,46,93,0.15) !important;
}

.ndv-field textarea {
  resize: none !important;
  min-height: 120px !important;
}

/* Erreur */
.ndv-error {
  background: rgba(231,76,60,0.12);
  color: #c0392b;
  border: 1px solid rgba(231,76,60,0.3);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* Bouton */
.ndv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ndv-btn-bg) !important;
  color: var(--ndv-btn-text) !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 16px 40px !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  transition: opacity 0.2s ease !important;
  margin-top: 8px;
  text-transform: uppercase;
}

.ndv-btn:hover:not(:disabled) { opacity: 0.85 !important; }
.ndv-btn:disabled { opacity: 0.5 !important; cursor: not-allowed !important; }

.ndv-btn-label { display: block; }
.ndv-spinner {
  width: 20px; height: 20px; display: none;
  animation: ndv-spin 0.75s linear infinite;
  stroke: var(--ndv-btn-text);
}
.ndv-spinner.active { display: block; }
@keyframes ndv-spin { to { transform: rotate(360deg); } }

/* Succès */
.ndv-success {
  background: rgba(39,174,96,0.12);
  color: #27ae60;
  border: 1px solid rgba(39,174,96,0.3);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  margin-top: 16px;
  text-align: center;
}

/* Branding */
.ndv-branding {
  text-align: center;
  margin-top: 24px;
  font-size: 11px;
  color: rgba(44,46,93,0.35);
}
.ndv-branding a { color: rgba(44,46,93,0.5); text-decoration: none; font-weight: 600; }

@media (max-width: 600px) {
  .ndv-wrap { padding: 24px 20px 28px; border-radius: 16px; }
  .ndv-field input[type="text"],
  .ndv-field input[type="email"],
  .ndv-field input[type="tel"],
  .ndv-field textarea { padding: 14px 16px !important; }
}
