body {
  font-family: "Roboto", Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f0f4f8;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header img {
  max-width: 300px;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.2em;
  color: #1a3c6c;
  margin: 0;
}

h2 {
  font-size: 1.5em;
  color: #2a5a9a;
  margin-bottom: 15px;
}

h3 {
  font-size: 1.2em;
  color: #333;
  margin-bottom: 10px;
}

h4 {
  font-size: 1.1em;
  color: #1a3c6c;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.intro,
.step-intro {
  background-color: #e8f0fe;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  line-height: 1.6;
  font-size: 0.95em;
}

.progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 10px;
}

.progress-step {
  flex: 1;
  text-align: center;
  padding: 12px;
  background-color: #e0e0e0;
  color: #666;
  font-size: 0.9em;
  border-radius: 6px;
  transition: all 0.3s;
}

.progress-step.active {
  background-color: #1a3c6c;
  color: white;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.form-col {
  flex: 1;
}

.tutor-header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.tutor-title {
  margin: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #1a3c6c;
  outline: none;
}

.error {
  color: #dc3545;
  font-size: 0.85em;
  margin-top: 5px;
  display: none;
}

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

button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s;
}

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

.btn-next,
.btn-submit {
  background-color: #28a745;
  color: white;
}

.btn-prev:hover,
.btn-next:hover,
.btn-submit:hover {
  opacity: 0.9;
}

.add-btn {
  background-color: #007bff;
  color: white;
  padding: 8px 16px;
  margin-top: 10px;
  display: inline-block;
  border-radius: 6px;
  cursor: pointer;
}

.add-btn:hover {
  background-color: #0056b3;
}

.checkbox-group {
  margin-bottom: 20px;
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: normal;
  line-height: 1.5;
}

.checkbox-group input {
  width: auto;
  margin-top: 4px;
}

.student-section {
  border: 1px solid #e0e0e0;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.remove-student {
  background-color: #dc3545;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  display: inline-block;
}

.remove-student:hover {
  background-color: #c82333;
}

.thank-you {
  display: none;
  text-align: center;
  padding: 30px;
  background-color: #e8f0fe;
  border-radius: 8px;
  margin-top: 20px;
}

.thank-you h2 {
  color: #1a3c6c;
}

.phone-group {
  display: flex;
  gap: 10px;
}

.phone-prefix {
  width: 120px;
}

.phone-number {
  flex: 1;
}

.phone-verif button {
  width: auto;
  padding: 10px 15px;
  font-size: 0.9em;
}

.code-sent {
  color: #28a745;
  font-weight: 500;
  margin-top: 8px;
}

.email-confirm {
  position: relative;
}

.match-indicator {
  position: absolute;
  right: 12px;
  top: 38px;
  font-size: 1.4em;
  pointer-events: none;
}

.match-indicator.ok {
  color: #28a745;
}

.match-indicator.ko {
  color: #dc3545;
}

.radio-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.radio-card {
  flex: 1;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.radio-card.active {
  border-color: #1a3c6c;
  background-color: #e8f0fe;
}

.radio-card h4 {
  margin: 0 0 10px 0;
  color: #1a3c6c;
}

.radio-card input[type="radio"] {
  display: none;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 30px;
  border-radius: 12px;
  width: 80%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
}

.close-modal {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.recap-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.recap-table th,
.recap-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.recap-table th {
  background-color: #e8f0fe;
}

.student-verified {
  color: #28a745;
  font-weight: 500;
}

.conditions-section {
  margin-top: 20px;
}

.condition-item {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 15px;
}

.condition-header {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dee2e6;
}

.condition-item:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .radio-cards {
    flex-direction: column;
  }

  .phone-group {
    flex-direction: column;
  }

  .phone-prefix {
    width: 100%;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-col {
    margin-bottom: 15px;
  }

  .tutor-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .tutor-title {
    white-space: normal;
  }

  #add-another-modal .success-icon {
    font-size: 3em;
  }

  #add-another-modal .buttons {
    flex-direction: column;
    gap: 15px;
  }

  #add-another-modal .btn-primary,
  #add-another-modal .btn-secondary {
    width: 100%;
  }

  .condition-item {
    padding: 12px;
  }
}

/* Améliorations spécifiques à la modale finale (#add-another-modal) */
#add-another-modal .modal-content {
  text-align: center;
  position: relative;
}

#add-another-modal .success-icon {
  display: inline-block;
  font-size: 4em;
  color: #28a745;
  margin: 10px 0 20px 0;
  animation: bounce 0.6s ease-out;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

#add-another-modal .modal-title {
  color: #1a3c6c;
  font-size: 1.8em;
  margin: 0 0 15px 0;
  font-weight: 700;
}

#add-another-modal .modal-description {
  font-size: 1.1em;
  color: #666;
  margin: 0 0 30px 0;
  line-height: 1.5;
}

#add-another-modal .btn-primary {
  background-color: #28a745;
  min-width: 100px;
  font-weight: 500;
}

#add-another-modal .btn-secondary {
  background-color: #6c757d;
  min-width: 100px;
  font-weight: 500;
}

#add-another-modal .btn-primary:hover,
#add-another-modal .btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
