/* ==========================================================================
   CyberBay — formulaire de contact (pages Contact, FR et EN)
   Reprend les variables de style.css. Aucun style en ligne (CSP).
   ========================================================================== */

.contact-form h2 {
  margin-bottom: 6px;
}

.contact-form .form-intro {
  margin: 0 0 22px;
  font-size: 0.97rem;
  color: var(--muted);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.field .req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color-scheme: dark;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  min-height: 150px;
  line-height: 1.5;
  resize: vertical;
}

.field select {
  padding-right: 38px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2397a6bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(148, 163, 184, 0.45);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 230, 197, 0.18);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #f87171;
}

.field.is-invalid input:focus,
.field.is-invalid textarea:focus {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.field-error {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: #fca5a5;
}

/* Champ piège pour les robots : hors écran, ignoré des lecteurs d'écran. */
.field.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 2px 0 18px;
  font-size: 0.86rem;
  color: var(--muted);
}

.contact-form .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.form-status {
  margin: 16px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  color: var(--accent);
}

.form-status.is-error {
  color: #fca5a5;
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
