/* Styles pour la barre de progression améliorée */
.progress-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto 30px;
  }
  
  .steps {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 10px;
  }
  
  .step {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #dedede;
    border-radius: 50%;
    color: #878787;
    background: #ffffff;
    font-size: 24px;
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: 200ms ease;
  }
  
  .step.active {
    color: #ffcc66;
    border-color: #ffcc66;
  }
  
  .step.completed {
    color: white;
    border-color: #ffcc66;
    background-color: #ffcc66;
  }
  
  .progress-bar {
    position: absolute;
    width: calc(100% - 80px);
    height: 4px;
    background: #dedede;
    z-index: 1;
    left: 40px;
  }
  
  .progress-bar .progress {
    position: absolute;
    width: 0%;
    height: 100%;
    background-image: linear-gradient(to right, #22219b, #ffcc66);
    transition: width 300ms ease;
  }
  
  /* Add text labels below steps on larger screens */
  @media (min-width: 768px) {
    .step::after {
      content: attr(data-label);
      position: absolute;
      top: 60px;
      font-size: 12px;
      white-space: nowrap;
      color: #878787;
    }
    
    .step.active::after {
      color: #22219b;
      font-weight: 700;
    }
    
    .step.completed::after {
      color: #ffcc66;
    }
  }
  
  /* Layout */
  .main {
    display: flex;
    flex-direction: column;
  }
  
  .content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
  }
  
  /* Back button container */
  .back-btn {
    padding: 10px 20px;
  }
  
  /* Step title */
  .step-title {
    font-size: 1.75em;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
    position: relative;
    padding-bottom: 15px;
  }
  
  .step-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #22219b;
  }
  
  /* Options in first step */
  .options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1150px;
    margin: 0 auto;
  }
  
  .option {
    background: white;
    border: 2px solid transparent;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 280px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  .option .image {
    width: 280px;
    height: 235px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
  }
  
  .option img {
    width: 100%;
    height: 100%;
    border-radius: 10px 10px 0 0;
  }
  
  .option p {
    margin: 0;
    line-height: 1.4;
    font-size: 16px;
    font-weight: 700;

  }
  
  .option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  

  
  .option.selected {
    border-color: #ffcc66;
    background-color: #ffcc662e;
    box-shadow: 0 5px 15px rgb(255 247 0 / 15%);
  }
  
  /* Checkbox group in second step */
  .checkbox-group {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 600px;
    margin: 0 auto 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  }
  
  .group-label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
  }
  
  .checkbox-list {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    list-style: none;
    padding: 0;
  }
  
  .checkbox-item {
    background-color: #f9f9f9;
    border: 2px solid #eaeaea;
    border-radius: 8px;
    padding: 15px 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    min-width: 100px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .checkbox-item:hover {
    border-color: #ffcc66;
    background-color: #ffcc662e;
    box-shadow: 0 5px 15px rgb(255 247 0 / 15%);
    transform: translateY(-3px);
  }
  
  .checkbox-item.selected {
    border-color: #ffcc66;
    background-color: #ffcc662e;
    box-shadow: 0 5px 15px rgb(255 247 0 / 15%);
  }
  
  .checkbox-item label {
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin: 0;
    color: #333;
  }
  
  .devis_content label {
    color: black;
    font-size: 15px;
      line-height: 34px;
      position: relative;
      bottom: 4px;
  
  }
  
  .label-source {
    color: #ffcc66 !important;
  }
  
  .gsection_description {
    color: #ffcc66 !important;
  }
  
  .checkbox-item.selected label {
    color: black;
  }
  
  /* Textarea styles */
  .textarea-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 600px;
    margin: 0 auto;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  }
  
  .textarea-container label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
  }
  
  .textarea-container textarea {
    width: 92%;
    border: 2px solid #eaeaea;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s ease;
    padding: 12px;
  }
  
  .textarea-container textarea:focus {
    outline: none;
    border-color: #ffcc66;
    box-shadow: 0 5px 15px rgb(255 247 0 / 15%);
  }
  
  /* Contact form styling */
  .contact-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    margin-bottom: 20px;
    display: block;
    font-weight: 600;
    color: #333;
  }
  
  .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s ease;
  }
  
  .form-group input:focus {
    outline: none;
    border-color: #ffcc66;
    box-shadow: 0 0 0 1px rgb(216 255 0 / 23%);
  }
  
  /* Style pour la grille de formulaire */
  .form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
  }
  
  @media (max-width: 992px) {
    .form-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 576px) {
    .form-grid {
      grid-template-columns: 1fr;
    }
  }
  
  /* Ajuster la taille du formulaire pour accommoder tous les champs */
  .contact-form {
    width: 100%;
    max-width: 1000px;
  }
  
  /* Summary styling */
  .summary {
    background: white;
    padding: 35px;
    border-radius: 8px;
    max-width: 600px;
    width: 600px;
    margin: 0 auto;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  }
  
  .summary-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  .summary-item strong {
    color: #333;
    font-size: 14px;
  }
  
  .summary-item:last-child {
    border-bottom: none;
  }
  
  /* Button styles */
  .next-button {
    display: flex;
    justify-content: center;
    margin-top: 50px;
  }
  
  button {
    padding: 14px 30px;
    font-size: 16px;
    background-color: #ddd;
    color: #777;
    border: none;
    border-radius: 8px;
    cursor: not-allowed;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  button.active {
    background-color: #22219b;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.25);
  }
  
  button.active:hover {
    transform: scale(1.1);
  }
  
  #back-btn {
    background-color: #dddddd;
    color: #777777;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 14px;
  }
  
  #back-btn:hover {
    background-color: #e0352b;
  }
  
  .required {
    color: #ff3b30;
    margin-left: 5px;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {  
    .options {
      gap: 15px;
    }
    
    .option {
      width: 280px;
    }
    
    .contact-form,
    .checkbox-group,
    .textarea-container,
    .summary {
      max-width: 100%;
      padding: 20px;
    }
    
    .checkbox-item {
      width: 100%;
    }
  }
  
  /* Styles pour les sections de confirmation */
  .source-section, .consent-section {
    margin-bottom: 30px;
  }
  
  .gsection_title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffcc66;
  }
  
  .gsection_description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
  }
  
  .source-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .source-list li {
    flex: 0 0 auto;
    min-width: 150px;
    margin-bottom: 10px;
  }
  
  .checkbox-list input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
  }
  
  .checkbox-list label {
    font-weight: normal;
    cursor: pointer;
  }
  
  .consent-section .checkbox-list li {
    margin-bottom: 0;
  }
  
  .confirmation-container .summary {
    margin-top: 40px;
  }
  
  /* Réorganisation de la disposition verticale */
  .confirmation-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  /* Modal styles */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    overflow: auto;
    animation: fadeIn 0.3s;
  }
  
  .modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 0;
    width: 80%;
    max-width: 700px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-radius: 8px;
    animation: slideIn 0.3s;
  }
  
  .modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
  }
  
  .modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
  }
  
  .modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }
  
  .modal-close {
    position: absolute;
    right: 20px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .modal-close:hover {
    color: #333;
  }
  
  .modal-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .modal-button.submit {
    background-color: #22219b;
    color: white;
  }
  
  .modal-button.submit:hover {
    transform: scale(1.05);
  }
  
  /* Summary styling specific for modal */
  .modal .summary-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }
  
  .modal .summary-title {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    font-weight: 600;
  }
  
  /* Animations */
  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }
  
  @keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
  }
  
  /* Container adjustments for the main content */
  .container {
    width: 100%;
  }
  
  
  
  @media screen and (max-width: 450px) {
    .progress-container {
      max-width: 335px;
  }
  .checkbox-list {
  
      flex-wrap: wrap;
  }
  .contact-form, .checkbox-group, .textarea-container, .summary {
          max-width: 350px;
          padding: 20px;
      }
    
  }
  @media screen and (max-width: 400px) {
    .contact-form, .checkbox-group, .textarea-container, .summary {
        max-width: 300px;
        padding: 20px;
    }
    .progress-container {
      margin: 0 13px 30px;
  }
}


  /* Add this to your CSS file */
.form-group input.error {
  border-color: #e74c3c !important;
  background-color: #fff8f8;
}

.error-message {
  margin-top: 4px;
  color: #e74c3c;
  font-size: 12px;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.form-group input:focus {
  border-color: #ffcc66;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 204, 102, 0.25);
}

.form-group input.error:focus {
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.25);
}

