/* ====== Conteneur du formulaire ====== */
#rsalle-booking-form {
  max-width: 900px;                /* un peu plus large pour la 2 colonnes */
  width: 100%;
  margin: 0 auto;
  padding: 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

/* ====== Grille 2 colonnes : dates à droite ====== */
#rsalle-booking-form .rsalle-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

/* Colonne nom/prénom (ligne interne) */
#rsalle-booking-form .rsalle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Empile en mobile */
@media (max-width: 820px) {
  #rsalle-booking-form .rsalle-grid { grid-template-columns: 1fr; }
  #rsalle-booking-form .rsalle-row  { grid-template-columns: 1fr; }
  #rsalle-booking-form { padding: 20px; }
}

/* ====== Labels & required ====== */
#rsalle-booking-form label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
  color: #475569; /* gris lisible */
  font-size: 0.95rem;
}
#rsalle-booking-form .rsalle-required {
  color: #e74c3c;
  margin-left: 3px;
}

/* ====== Inputs / Textarea / Select ====== */
#rsalle-booking-form input[type="text"],
#rsalle-booking-form input[type="email"],
#rsalle-booking-form input[type="tel"],
#rsalle-booking-form input[type="number"],
#rsalle-booking-form input[type="date"],
#rsalle-booking-form input[type="time"],
#rsalle-booking-form input[type="search"],
#rsalle-booking-form input[type="password"],
#rsalle-booking-form input[type="url"],
#rsalle-booking-form select,
#rsalle-booking-form textarea {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 14px 14px;
  margin: 0 0 16px 0;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 5px;
  font-size: 16px;
  line-height: 1.4;
  color: #0f172a;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  box-sizing: border-box;
  box-shadow:
    0 1px 1px rgba(0,0,0,0.02),
    0 2px 6px rgba(0,0,0,0.03); /* ombrage doux */
}

#rsalle-booking-form textarea {
  min-height: 120px;
  resize: vertical;
}

#rsalle-booking-form .flatpickr-months .flatpickr-month {
    height: 64px !important;
}

/* Focus moderne (anneau) */
#rsalle-booking-form input:focus,
#rsalle-booking-form select:focus,
#rsalle-booking-form textarea:focus {
  border-color: #3b82f6; /* bleu plus visible */
  box-shadow:
    0 0 0 4px rgba(59,130,246,0.15),
    0 2px 10px rgba(0,0,0,0.06);
  outline: none;
}

/* Placeholder discret */
#rsalle-booking-form ::placeholder {
  color: #94a3b8;
  opacity: 1;
}

/* États invalides natifs */
#rsalle-booking-form :invalid { border-color: #e2e8f0; }

/* une fois la tentative d’envoi faite */
#rsalle-booking-form.was-validated :invalid {
  border-color: #fca5a5;
}
#rsalle-booking-form :invalid:focus {
  box-shadow:
    0 0 0 4px rgba(220,38,38,0.14),
    0 4px 14px rgba(220,38,38,0.14);
}

/* ====== Select propre (sans dégradé), chevrons CSS ====== */
#rsalle-booking-form select {
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px; /* espace pour le chevron */
}

/* Désactivés */
#rsalle-booking-form input:disabled,
#rsalle-booking-form select:disabled,
#rsalle-booking-form textarea:disabled {
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

/* ====== Note sous le calendrier ====== */
.rsalle-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: #555;
  margin: 8px 0 16px;
}
.rsalle-note i {
  margin-top: 2px;
  font-size: 16px;
  color: var(--ast-global-color-0); /* ton bleu WP */
}

/* ====== Bouton submit ====== */
#rsalle-booking-form .rsalle-actions { margin-top: 8px; }
#rsalle-booking-form button,
#rsalle-booking-form .rsalle-btn {
  width: 100%;
  background-color: var(--ast-global-color-0);
  color: #fff;
  padding: 14px 0;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: transform .06s ease, box-shadow .15s ease, background-color .15s ease;
  box-shadow: 0 10px 24px rgba(0,115,170,0.25);
}
#rsalle-booking-form button:hover,
#rsalle-booking-form .rsalle-btn:hover {
  transform: translateY(-2px);
}
#rsalle-booking-form button:active,
#rsalle-booking-form .rsalle-btn:active {
  transform: translateY(1px);
}

/* ====== Flatpickr responsive (si utilisé) ====== */
.flatpickr-calendar { max-width: 100% !important; }

/* ====== Accessibilité : reduced motion ====== */
@media (prefers-reduced-motion: reduce) {
  #rsalle-booking-form *,
  #rsalle-booking-form button { transition: none !important; }
}
