/* ============================================
   STYLES POUR LE MODAL DE RÉSERVATION D'APPEL
   ============================================ */

.modal-appel {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-appel-content {
  background-color: #FFFFFF;
  margin: auto;
  padding: 2.5rem;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-appel-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: #aaa;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.modal-appel-close:hover,
.modal-appel-close:focus {
  color: #000;
}

.modal-appel-content h2 {
  color: #1d44a1;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.form-appel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-appel .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-appel .form-group label {
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-appel .form-group input,
.form-appel .form-group textarea {
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-appel .form-group input:focus,
.form-appel .form-group textarea:focus {
  outline: none;
  border-color: #1d44a1;
}

.creneaux-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
}

.creneau-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: #FFFFFF;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.creneau-item:hover {
  background-color: #f0f0f0;
}

.creneau-item input[type="radio"] {
  cursor: pointer;
}

.creneau-item label {
  cursor: pointer;
  margin: 0;
  flex: 1;
  color: #333;
}

.no-creneaux {
  text-align: center;
  color: #666;
  padding: 1rem;
}

.btn-submit-appel {
  background-color: #1d44a1;
  color: #FFFFFF;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 0.5rem;
}

.btn-submit-appel:hover {
  background-color: #0a1f4d;
}

.btn-submit-appel:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.message-success,
.message-error {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.message-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-appel {
    padding: 1rem;
  }
  
  .modal-appel-content {
    padding: 1.5rem;
  }
  
  .modal-appel-content h2 {
    font-size: 1.5rem;
  }
}
