/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito', sans-serif;
  background: transparent;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ===== FORMULAIRE ===== */
#pixalie-form {
  background: transparent;
  padding: 18px 20px 20px 20px;
  max-width: 100%;
}

/* ===== CHAMPS ===== */
.form-field {
  margin-bottom: 12px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 300;
  padding: 16px 18px;
  background-color: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  display: block;
  transition: border-color 0.15s;
  outline: none;
}

/* Select : masquer la flèche native */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* Placeholders */
input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Nunito', sans-serif;
}

/* Option vide du select (placeholder) */
select option[value=""] { color: rgba(255, 255, 255, 0.45); }
select option { color: #fff; background: #111; }

/* Focus */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-color: #fff;
}

/* Champ en erreur */
input.input-error,
select.input-error,
textarea.input-error {
  border-color: #ff6b6b !important;
}

/* Textarea */
textarea {
  resize: vertical;
  min-height: 130px;
}

/* ===== MESSAGES D'ERREUR ===== */
.field-error {
  font-size: 11px;
  color: #ff6b6b;
  margin-top: 3px;
  font-family: 'Nunito', sans-serif;
}

.field-error.hidden,
.global-error.hidden { display: none; }

.global-error {
  font-size: 12px;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 3px;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-family: 'Nunito', sans-serif;
}

/* ===== HONEYPOT ===== */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ===== BOUTON SUBMIT ===== */
.btn-submit {
  width: 100%;
  background-color: #A873EC;
  border: none;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0px;
  padding: 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.btn-submit:hover:not(:disabled) {
  background-color: #9355e0;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading.hidden,
.btn-text.hidden { display: none; }
