/* =========================================
   STYLE SPÉCIFIQUE - PAGE DEMANDE DE DEVIS
   ========================================= */

/* --- États de Sécurité et d'Authentification --- */
#authLoader, #accessDenied {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
  padding: 40px 20px;
}

.lock-icon-container {
  width: 90px;
  height: 90px;
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.8rem;
  margin-bottom: 25px;
  box-shadow: 0 10px 25px rgba(220, 53, 69, 0.2);
}

.spinner {
  border: 4px solid rgba(13, 110, 253, 0.2);
  border-left-color: #0d6efd;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin { 
  0% { transform: rotate(0deg); } 
  100% { transform: rotate(360deg); } 
}

@keyframes fadeIn { 
  from { opacity: 0; transform: translateY(10px); } 
  to { opacity: 1; transform: translateY(0); } 
}

#accessDenied h2 { 
  color: #333; 
  font-size: 2rem; 
  margin-bottom: 10px; 
}

#accessDenied p { 
  color: #666; 
  margin-bottom: 25px; 
  font-size: 1.1rem; 
  max-width: 400px; 
}

.devis-form-container { max-width: 900px; margin: 0 auto; }

.form-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-card:hover { box-shadow: 0 8px 15px rgba(0,0,0,0.05); }

.form-card-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.form-card-header h3 {
  font-size: 1.25rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.form-grid label { display: block; margin-bottom: 8px; font-weight: 500; color: #555; font-size: 0.9rem; }

.form-grid input, .form-grid select, .devis-select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-grid input:focus, .form-grid select:focus, .devis-select:focus, textarea:focus {
  outline: none;
  border-color: #0d6efd;
}

textarea {
  width: 100%; padding: 10px 15px; border: 1px solid #ccc; border-radius: 5px; resize: vertical; box-sizing: border-box;
}

/* Sélecteur de transport */
.transport-selector { display: flex; gap: 20px; flex-wrap: wrap; }
.transport-option { cursor: pointer; flex: 1; min-width: 150px; }
.transport-option input[type="checkbox"] { display: none; }

.transport-card {
  border: 2px solid #eaeaea;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  color: #666;
  background-color: #fafafa;
}
.transport-card i { font-size: 2rem; margin-bottom: 10px; display: block; }
.transport-option input[type="checkbox"]:checked + .transport-card {
  border-color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.05);
  color: #0d6efd;
}

/* Zone de dépôt de fichiers */
.file-upload-zone {
  border: 2px dashed #ccc; border-radius: 8px; padding: 30px; text-align: center;
  background-color: #f9f9f9; cursor: pointer; transition: all 0.3s ease; position: relative;
}
.file-upload-zone:hover { border-color: #0d6efd; background-color: rgba(13, 110, 253, 0.02); }
.file-upload-zone.dragover { background-color: rgba(13, 110, 253, 0.1); border-color: #0d6efd; }
.file-input-hidden { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* Liste des fichiers */
.file-item {
  display: flex; justify-content: space-between; align-items: center;
  background: #f8f9fa; padding: 10px 15px; margin-bottom: 8px; border-radius: 5px; border: 1px solid #dee2e6;
}
.btn-remove-file { background: none; border: none; color: #dc3545; cursor: pointer; font-size: 1.1rem; }
.btn-remove-file:hover { color: #a71d2a; }

/* Bouton d'envoi */
.btn-submit-devis {
  background-color: #0d6efd; color: white; border: none; padding: 15px 40px; font-size: 1.1rem;
  border-radius: 5px; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 10px;
}
.btn-submit-devis:hover:not(:disabled) { background-color: #0b5ed7; transform: translateY(-2px); }
.btn-submit-devis:disabled { background-color: #6c757d; opacity: 0.6; cursor: not-allowed; }
