/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  overflow-y: auto;
}

.modal-content {
  position: relative;
  background: transparent;
  margin: 50px auto;
  max-width: 1200px;
  width: 90%;
  border-radius: 20px;
  animation: modalFadeIn 0.3s ease;
}

/* Стили для списка курсов */
.courses-modal-container {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid white;
}

/* Форма - отдельный блок с подложкой */
.form-wrapper {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  border-radius: 20px;
  padding: 40px;
  max-width: 550px;
  margin: 0 auto;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid white;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 40px;
  font-weight: bold;
  color: #2e5065;
  cursor: pointer;
  z-index: 10;
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #fd6d00;
  color: white;
  transform: rotate(90deg);
}

.modal-step {
  display: none;
}

.modal-step.active {
  display: block;
}

.courses-column {
  flex: 1;
  min-width: 280px;
}

.courses-header {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 30px;
}

.courses-header.orange {
  color: #ff8e00;
}

.courses-header.blue {
  color: #0090d2;
}

.courses-list-modal {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.course-item-modal {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.course-item-modal:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateX(5px);
}

.course-item-modal span {
  color: #2e5065;
  font-size: 20px;
  font-family: Montserrat;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}

/* Кнопка назад */
.back-to-courses {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #2e5065;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 20px;
  padding: 8px 12px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.back-to-courses:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #fd6d00;
}

.back-to-courses:hover svg path {
  stroke: #fd6d00;
}

/* Форма */
.form-title {
  color: #2e5065;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

.selected-course-info {
  background: #eaf8ff;
  border-radius: 10px;
  padding: 12px 20px;
  text-align: center;
  margin-bottom: 25px;
  color: #0090d2;
  font-size: 16px;
  font-weight: 600;
}

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

.form-group input {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 16px;
  font-family: Montserrat;
  transition: all 0.3s ease;
  background: white;
}

.form-group input:focus {
  outline: none;
  border-color: #fd6d00;
  box-shadow: 0 0 0 3px rgba(253, 109, 0, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  color: #2e5065;
  line-height: 1.4;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.policy-link {
  color: #0090d2;
  text-decoration: underline;
}

.policy-link:hover {
  color: #fd6d00;
}

.modal-btn-submit {
  width: 100%;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: linear-gradient(
    90deg,
    #ff8e00 0%,
    #f4503b 20%,
    #e60087 50%,
    #7b43da 70%,
    #0090d2 100%
  );
  color: white;
  margin-top: 10px;
}

.modal-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Honeypot поля - скрыты от пользователей */
.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

/* Уведомление об успехе */
.success-notification {
  display: none;
  position: fixed;
  z-index: 11000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.success-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  animation: modalFadeIn 0.3s ease;
}

.success-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(90deg, #ff8e00, #0090d2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 40px;
  color: white;
}

.success-content h3 {
  color: #2e5065;
  font-size: 24px;
  margin-bottom: 15px;
}

.success-content p {
  color: #666;
  margin-bottom: 25px;
}

.success-close {
  background: #fd6d00;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.success-close:hover {
  background: #e05e00;
}

/* Адаптивность модального окна */
@media (max-width: 1024px) {
  .courses-modal-container {
    flex-direction: column;
  }

  .courses-column {
    width: 100%;
  }

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

  .course-item-modal span {
    font-size: 16px;
  }

  .courses-header {
    font-size: 24px;
  }

  .form-wrapper {
    padding: 30px 20px;
    max-width: 500px;
  }

  .form-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .form-wrapper {
    padding: 25px 20px;
    max-width: 100%;
  }

  .checkbox-label {
    font-size: 11px;
  }

  .back-to-courses {
    font-size: 13px;
    margin-bottom: 15px;
  }

  .selected-course-info {
    font-size: 14px;
  }

  .form-group input {
    padding: 12px 16px;
    font-size: 14px;
  }

  .modal-btn-submit {
    padding: 12px 24px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 98%;
    margin: 20px auto;
  }

  .courses-modal-container {
    padding: 20px;
  }

  .form-wrapper {
    padding: 20px 15px;
  }

  .form-title {
    font-size: 20px;
  }

  .modal-close {
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    font-size: 30px;
  }
}
/* В modal.css должны быть эти стили */
.course-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.course-dot.orange-dot {
  background: #ff8e00;
}

.course-dot.blue-dot {
  background: #0090d2;
}

.courses-header.orange {
  color: #ff8e00;
}

.courses-header.blue {
  color: #0090d2;
}
