/* =========================================
   Globale Finances - Formulaire de Prêt
   Design Professionnel
   ========================================= */

#gf-loan-app {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  font-family: "Poppins", sans-serif;
  background: #f8f9fa;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* En-tête */
.gf-header {
  text-align: center;
  margin-bottom: 30px;
}

.gf-header h2 {
  color: #1a1a2e;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.gf-header p {
  color: #6c757d;
  font-size: 16px;
  margin: 0;
}

/* Barre de progression */
.gf-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0 40px 0;
  gap: 0;
}

.gf-progress-step {
  display: flex;
  align-items: center;
  flex-direction: column;
  position: relative;
  width: 120px;
}

.gf-progress-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  z-index: 2;
}

.gf-progress-circle.active {
  background: #007bff;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.gf-progress-circle.completed {
  background: #28a745;
  color: white;
}

.gf-progress-line {
  height: 3px;
  background: #e0e0e0;
  flex: 1;
  margin-top: -25px;
}

.gf-progress-line.active {
  background: #007bff;
}

.gf-progress-label {
  font-size: 13px;
  color: #999;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.gf-progress-label.active {
  color: #007bff;
}

/* Contenu du formulaire */
.gf-form-step {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.4s ease;
}

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

.gf-form-step h3 {
  color: #1a1a2e;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 30px 0;
  position: relative;
  padding-bottom: 15px;
}

.gf-form-step h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #007bff;
  border-radius: 3px;
}

/* Grille de champs */
.gf-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.gf-form-grid.full {
  grid-template-columns: 1fr;
}

/* Champs */
.gf-field {
  margin-bottom: 5px;
}

.gf-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
}

.gf-field label .required {
  color: #dc3545;
}

.gf-field input,
.gf-field select,
.gf-field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: #495057;
  background: #f8f9fa;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.gf-field input:focus,
.gf-field select:focus,
.gf-field textarea:focus {
  border-color: #007bff;
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  outline: none;
}

.gf-field textarea {
  min-height: 100px;
  resize: vertical;
}

.gf-field input[type="date"] {
  cursor: pointer;
}

.gf-field select {
  cursor: pointer;
}

/* Calcul mensualité */
.gf-estimation {
  background: linear-gradient(135deg, #e8f4fd, #f0f8ff);
  border-radius: 10px;
  padding: 15px 20px;
  margin: 20px 0;
  border: 1px solid #b8daff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gf-estimation-label {
  font-size: 14px;
  color: #495057;
}

.gf-estimation-value {
  font-size: 24px;
  font-weight: 700;
  color: #007bff;
}

/* Boutons */
.gf-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  gap: 15px;
}

.gf-btn {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gf-btn-prev {
  background: #6c757d;
  color: white;
}

.gf-btn-prev:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.gf-btn-next {
  background: #007bff;
  color: white;
}

.gf-btn-next:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.gf-btn-submit {
  background: #28a745;
  color: white;
  width: 100%;
}

.gf-btn-submit:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Récapitulatif */
.gf-summary {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.gf-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.gf-summary-item {
  padding: 10px;
  background: white;
  border-radius: 8px;
}

.gf-summary-item label {
  font-size: 12px;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 5px;
}

.gf-summary-item value {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
}

/* Message de succès */
.gf-success {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.gf-success-icon {
  font-size: 60px;
  color: #28a745;
  margin-bottom: 20px;
}

.gf-success h2 {
  color: #1a1a2e;
  margin-bottom: 10px;
}

.gf-success p {
  color: #6c757d;
  margin-bottom: 20px;
}

.gf-success-code {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px 30px;
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  color: #007bff;
  border: 2px dashed #007bff;
  margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
  #gf-loan-app {
    margin: 20px;
    padding: 15px;
  }

  .gf-form-grid {
    grid-template-columns: 1fr;
  }

  .gf-progress-label {
    font-size: 11px;
  }

  .gf-summary-grid {
    grid-template-columns: 1fr;
  }

  .gf-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Écran de succès */
.gf-success {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.gf-success-icon {
  font-size: 60px;
  color: #28a745;
  margin-bottom: 20px;
}

.gf-success h2 {
  color: #1a1a2e;
  margin-bottom: 10px;
}

.gf-success p {
  color: #6c757d;
  margin-bottom: 10px;
}

.gf-success-code {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px 30px;
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  color: #007bff;
  border: 2px dashed #007bff;
  margin: 20px 0;
}

/* Options de contact */
.gf-contact-options {
  margin: 30px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.gf-contact-options h4 {
  color: #1a1a2e;
  margin-bottom: 20px;
  font-size: 18px;
}

.gf-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  margin: 5px;
}

.gf-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gf-whatsapp-btn {
  background: #25d366;
  color: white;
}

.gf-whatsapp-btn:hover {
  background: #1ebe5b;
}

.gf-email-btn {
  background: #007bff;
  color: white;
}

.gf-email-btn:hover {
  background: #0056b3;
}

.gf-icon {
  font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .gf-contact-btn {
    display: flex;
    width: 100%;
    margin: 10px 0;
  }
}
