/* Styles pour le formulaire de proposition d'événement */
.event-proposal-form {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem;
  transition: all 0.3s ease;
  width: 100%;
  font-size: 1rem;
}

.form-control:focus {
  border-color: rgb(0, 173, 187);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}

.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
  min-width: 200px;
}

.input-group-text {
  background-color: rgb(0, 173, 187);
  color: white;
  border: 2px solid rgb(20 211 224);
  font-weight: bold;
  padding: 0.5rem 0.75rem;
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  font-size: 0.9rem;
  line-height: 1.2;
}

.input-group .form-control {
  border-radius: 8px 0 0 8px;
  border-right: none;
  padding-right: 1.5rem;
}

.input-group .form-control:focus {
  border-right: none;
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-left: 0;
  position: relative;
}

.form-check-input {
  margin-right: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.form-check-label {
  position: relative;
  z-index: 2;
  margin-left: 0;
  padding-left: 0;
  cursor: pointer;
  user-select: none;
}

.form-check-input:checked {
  background-color: rgb(0, 173, 187);
  border-color: rgb(20 211 224);
}

/* Amélioration des checkboxes pour le formulaire */
.event-proposal-form .form-check {
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  margin-left: 20px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}


.event-proposal-form .form-check-input {
  margin-right: 1rem;
  margin-top: 0;
  margin-bottom: 0;
}

.event-proposal-form .form-check-label {
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  display: block;
  width: 100%;
  margin-left: 0;
  padding-left: 0;
  position: relative;
  z-index: 2;
}

/* S'assurer que les checkboxes sont cliquables sur toute la zone */
.event-proposal-form .form-check {
  cursor: pointer;
}

.event-proposal-form .form-check-input {
  cursor: pointer;
}


.btn-primary {
  background-color: rgb(0, 173, 187);
  border-color: rgb(20 211 224);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background-color: rgb(0 136 146);
  border-color: rgb(7 94 100);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgb(0 136 146);
;
}

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

.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
  border: 1px solid transparent;
}

.price-input {
  text-align: right;
  font-weight: 500;
  padding-right: 1rem;
  min-width: 120px;
}

.price-input:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group .form-control:disabled {
  background-color: #e9ecef;
  opacity: 0.6;
  cursor: not-allowed;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-proposal-form {
  animation: fadeIn 0.5s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
  .event-proposal-form {
    padding: 1rem;
    margin: 1rem;
  }
  
  .row.mb-4 .col-md-6 {
    margin-bottom: 1rem;
  }
  
  .btn-primary {
    width: 100%;
    padding: 1rem;
  }
  
  .form-control {
    padding: 0.875rem;
  }
  
  .input-group-text {
    padding: 0.875rem;
  }
}

@media (max-width: 576px) {
  .event-proposal-form {
    padding: 0.75rem;
    margin: 0.5rem;
  }
  
  .form-label {
    font-size: 0.9rem;
  }
  
  .form-control {
    font-size: 0.9rem;
    padding: 0.75rem;
  }
}

/* Correction des champs select */
select.form-control {
  width: 100%;
  height: auto;
  min-height: 2.5rem;
  padding: 0.75rem;
  line-height: 1.5;
  vertical-align: middle;
  overflow: visible;
}

/* Correction du widget heure */
.form-control.time-widget {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
}

.form-control.time-widget select {
  min-width: 80px;
  width: auto;
  height: auto;
  padding: 0.5rem;
  margin: 0;
}

.form-label.hour-label {
  padding: 0;
}

/* Amélioration de l'accessibilité */
.form-control:focus,
.form-check-input:focus,
.btn-primary:focus {
  outline: 2px solid rgb(0, 173, 187);
  outline-offset: 2px;
}

/* Styles pour les messages d'erreur */
.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

/* Amélioration visuelle pour les champs prix */
.price-input::placeholder {
  color: #6c757d;
  font-style: italic;
}

/* Style pour les champs désactivés */
.form-control:disabled {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
}

