/* ===== NOUVEAU FORMULAIRE RSVP - Style élégant ===== */

.rsvp-card {
  background: linear-gradient(135deg, #f5f0e8 0%, #ebe4d8 100%) !important;
  max-width: 600px;
  margin: 3rem auto !important;
  padding: 3rem 2.5rem !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 40px rgba(139, 107, 82, 0.15) !important;
}

.rsvp-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-style: italic;
  font-weight: 300;
  color: #8b6b52;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.rsvp-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  color: #a08970;
  text-align: center;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.rsvp-form-new {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  overflow: visible !important;
  width: 100% !important;
}

.form-label {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  color: #a08970 !important;
  letter-spacing: 0.02em;
  display: block !important;
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1rem !important;
  color: #5a4a3a !important;
  background: #ffffff !important;
  border: 1px solid #d4c4b0;
  border-radius: 12px;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: #b8a890;
  box-shadow: 0 0 0 3px rgba(184, 168, 144, 0.1);
}

.form-input::placeholder {
  color: #c4b4a4;
  font-style: italic;
}

/* Champ téléphone avec icône */
.tel-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.tel-icon {
  position: absolute;
  left: 1rem;
  font-size: 1.2rem;
  pointer-events: none;
  z-index: 1;
}

.tel-input {
  padding-left: 3rem !important;
}

/* Checkboxes */
.form-group-checkboxes,
.checkbox-group-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  margin: 0.5rem 0 !important;
  width: 100% !important;
  overflow: visible !important;
}

.checkbox-label,
.checkbox-item-form {
  display: flex !important;
  align-items: center !important;
  gap: 0.8rem !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.95rem !important;
  color: #5a4a3a !important;
  cursor: pointer;
  transition: color 0.3s ease;
  width: 100% !important;
  overflow: visible !important;
}

.checkbox-label:hover,
.checkbox-item-form:hover {
  color: #8b6b52;
}

.checkbox-label input[type="checkbox"],
.checkbox-item-form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #8b6b52;
}

.checkbox-item-form label,
.checkbox-item-form label[for] {
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: normal !important;
  color: #5a4a3a !important;
  font-size: 0.95rem !important;
  font-family: 'Montserrat', sans-serif !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  white-space: nowrap !important;
  text-indent: 0 !important;
  line-height: 1.5 !important;
}

/* Textarea */
.form-textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1rem !important;
  color: #5a4a3a !important;
  background: #ffffff !important;
  border: 1px solid #d4c4b0;
  border-radius: 12px;
  transition: all 0.3s ease;
  outline: none;
  resize: vertical;
  min-height: 100px;
}

.form-textarea:focus {
  border-color: #b8a890;
  box-shadow: 0 0 0 3px rgba(184, 168, 144, 0.1);
}

.form-textarea::placeholder {
  color: #c4b4a4;
  font-style: italic;
}

/* Bouton Envoyer */
.btn-submit {
  width: 100%;
  padding: 1rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #f5f0e8;
  background: linear-gradient(135deg, #6b5446 0%, #5a4436 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(107, 84, 70, 0.3);
  letter-spacing: 0.05em;
  margin-top: 1rem;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #5a4436 0%, #4a3426 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 84, 70, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Message de réponse */
#responseMessage {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  display: none;
}

#responseMessage:not(:empty) {
  display: block;
}

#responseMessage.success {
  color: #2d5016;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
}

#responseMessage.error {
  color: #c62828;
  background: #ffebee;
  border: 1px solid #ef9a9a;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .rsvp-card {
    padding: 2rem 1.5rem !important;
    margin: 2rem 1rem !important;
  }
  
  .rsvp-title {
    font-size: 2.2rem;
  }
  
  .rsvp-subtitle {
    font-size: 0.9rem;
  }
  
  .form-input,
  .form-textarea {
    font-size: 16px; /* Évite le zoom sur mobile */
  }
}
