/* Style spécifique pour la page de rendez-vous */
.appointment-form {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.appointment-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.form-group label {
  font-weight: 500;
  color: #444;
  margin-bottom: 8px;
  display: block;
}

.form-control {
  padding: 12px 15px;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #5846f9;
  box-shadow: 0 0 0 3px rgba(88, 70, 249, 0.1);
}

.form-select {
  padding: 12px 15px;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%235846f9' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 15px center;
  background-size: 16px 12px;
}

.form-select:focus {
  border-color: #5846f9;
  box-shadow: 0 0 0 3px rgba(88, 70, 249, 0.1);
}

.service-option {
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 15px;
  height: 100%;
}

.service-option:hover {
  border-color: #5846f9;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(88, 70, 249, 0.1);
}

.service-option.selected {
  border-color: #5846f9;
  background-color: rgba(88, 70, 249, 0.05);
  box-shadow: 0 5px 15px rgba(88, 70, 249, 0.1);
}

.service-option i {
  font-size: 2.5rem;
  color: #5846f9;
  display: block;
  margin-bottom: 15px;
}

.service-option h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.service-option p {
  font-size: 0.9rem;
  color: #777;
}

.service-option .service-check {
  position: absolute;
  top: 10px;
  right: 25px;
  color: #5846f9;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-option.selected .service-check {
  opacity: 1;
}

.contact-info-wrapper {
  margin-top: 30px;
}

.contact-info-item {
  display: flex;
  align-items: start;
  margin-bottom: 20px;
}

.contact-info-item i {
  color: #5846f9;
  font-size: 1.2rem;
  margin-right: 15px;
  background: rgba(88, 70, 249, 0.1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.contact-info-content h5 {
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-info-content p {
  color: #777;
  margin-bottom: 0;
}

.btn-submit {
  background: #5846f9;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(88, 70, 249, 0.2);
}

.btn-submit:hover {
  background: #7b27d8;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(88, 70, 249, 0.3);
}

.steps-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.steps-wrapper::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 3px;
  background: #e1e1e1;
  z-index: 1;
}

.form-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex-grow: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f5f5f5;
  border: 3px solid #e1e1e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.3rem;
  color: #777;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.step-text {
  font-size: 0.9rem;
  color: #777;
  font-weight: 500;
  text-align: center;
}

.form-step.active .step-number {
  background: #5846f9;
  border-color: #5846f9;
  color: #fff;
  box-shadow: 0 5px 15px rgba(88, 70, 249, 0.2);
}

.form-step.active .step-text {
  color: #5846f9;
  font-weight: 600;
}

.form-step.completed .step-number {
  background: #5846f9;
  border-color: #5846f9;
  color: #fff;
}

.form-step.completed::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: #5846f9;
  z-index: -1;
}

.form-tab {
  display: none;
}

.form-tab.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.time-slot {
  padding: 10px 15px;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.time-slot:hover {
  border-color: #5846f9;
  background-color: rgba(88, 70, 249, 0.05);
}

.time-slot.selected {
  background-color: #5846f9;
  border-color: #5846f9;
  color: #fff;
}

.date-picker-wrapper {
  position: relative;
  margin-bottom: 20px;
}

#datepicker {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%235846f9' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8H14M6 12H14M5 4h10a2 2 0 012 2v10a2 2 0 01-2 2H5a2 2 0 01-2-2V6a2 2 0 012-2z'/%3e%3c/svg%3e");
  background-position: right 15px center;
  background-repeat: no-repeat;
  background-size: 20px;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.btn-prev {
  background: #f5f5f5;
  color: #444;
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-prev:hover {
  background: #e1e1e1;
}

.btn-next {
  background: #5846f9;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-next:hover {
  background: #7b27d8;
}

.loading-indicator {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-submit.loading .loading-indicator {
  display: inline-block;
}

.form-summary {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.summary-item {
  margin-bottom: 15px;
  display: flex;
}

.summary-label {
  font-weight: 600;
  width: 150px;
  color: #777;
}

.summary-value {
  flex-grow: 1;
}

.summary-heading {
  margin-bottom: 20px;
  color: #5846f9;
  font-weight: 600;
  font-size: 1.2rem;
}

/* Animation pour les icônes des services */
.service-option i {
  transition: transform 0.3s ease;
}

.service-option:hover i {
  transform: scale(1.2);
}

/* Style pour le message de confirmation */
.success-message {
  text-align: center;
  padding: 30px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.success-icon {
  font-size: 5rem;
  color: #28a745;
  margin-bottom: 20px;
  display: inline-block;
  animation: bounceIn 0.6s;
}

@keyframes bounceIn {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-30px);}
  60% {transform: translateY(-15px);}
}

.success-message h3 {
  color: #28a745;
  margin-bottom: 15px;
}

.success-message p {
  color: #777;
  margin-bottom: 25px;
}

.btn-home {
  background: #5846f9;
  color: #fff;
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-home:hover {
  background: #7b27d8;
  color: #fff;
  transform: translateY(-3px);
}

/* Styles responsifs */
@media (max-width: 768px) {
  .steps-wrapper {
    flex-direction: column;
  }

  .steps-wrapper::before {
    display: none;
  }

  .form-step {
    flex-direction: row;
    margin-bottom: 15px;
  }

  .step-number {
    margin-bottom: 0;
    margin-right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .service-option {
    margin-bottom: 15px;
  }

  .form-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .btn-prev, .btn-next, .btn-submit {
    width: 100%;
  }

  .summary-item {
    flex-direction: column;
  }

  .summary-label {
    width: 100%;
    margin-bottom: 5px;
  }
}

/* Theme spécifique pour les différents types de services */
.web-theme .appointment-form {
  border-top: 5px solid #3498db;
}

.mobile-theme .appointment-form {
  border-top: 5px solid #e74c3c;
}

.software-theme .appointment-form {
  border-top: 5px solid #9b59b6;
}

.marketing-theme .appointment-form {
  border-top: 5px solid #2ecc71;
}

.ai-theme .appointment-form {
  border-top: 5px solid #f39c12;
}

.graphic-theme .appointment-form {
  border-top: 5px solid #1abc9c;
}

.cybersecurity-theme .appointment-form {
  border-top: 5px solid #34495e;
}

/* Thèmes spécifiques pour les services */
.web-theme .service-check, .web-theme .form-step.active .step-number,
.web-theme .form-step.active .step-text, .web-theme .form-step.completed .step-number,
.web-theme .time-slot.selected, .web-theme .btn-next, .web-theme .btn-submit {
  background-color: #3498db;
}

.mobile-theme .service-check, .mobile-theme .form-step.active .step-number,
.mobile-theme .form-step.active .step-text, .mobile-theme .form-step.completed .step-number,
.mobile-theme .time-slot.selected, .mobile-theme .btn-next, .mobile-theme .btn-submit {
  background-color: #e74c3c;
}

.software-theme .service-check, .software-theme .form-step.active .step-number,
.software-theme .form-step.active .step-text, .software-theme .form-step.completed .step-number,
.software-theme .time-slot.selected, .software-theme .btn-next, .software-theme .btn-submit {
  background-color: #9b59b6;
}

.marketing-theme .service-check, .marketing-theme .form-step.active .step-number,
.marketing-theme .form-step.active .step-text, .marketing-theme .form-step.completed .step-number,
.marketing-theme .time-slot.selected, .marketing-theme .btn-next, .marketing-theme .btn-submit {
  background-color: #2ecc71;
}

.ai-theme .service-check, .ai-theme .form-step.active .step-number,
.ai-theme .form-step.active .step-text, .ai-theme .form-step.completed .step-number,
.ai-theme .time-slot.selected, .ai-theme .btn-next, .ai-theme .btn-submit {
  background-color: #f39c12;
}

.graphic-theme .service-check, .graphic-theme .form-step.active .step-number,
.graphic-theme .form-step.active .step-text, .graphic-theme .form-step.completed .step-number,
.graphic-theme .time-slot.selected, .graphic-theme .btn-next, .graphic-theme .btn-submit {
  background-color: #1abc9c;
}

.cybersecurity-theme .service-check, .cybersecurity-theme .form-step.active .step-number,
.cybersecurity-theme .form-step.active .step-text, .cybersecurity-theme .form-step.completed .step-number,
.cybersecurity-theme .time-slot.selected, .cybersecurity-theme .btn-next, .cybersecurity-theme .btn-submit {
  background-color: #34495e;
}
