.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.4s ease forwards;
}

.modal-content {
  background-color: #0a0a23; /* тёмно-синий фон */
  padding: 40px;
  border-radius: 10px;
  max-width: 700px;
  width: 90%;
  transform: scale(0.8);
  opacity: 0;
  color: white;
}

.modal-content.animate {
  animation: modalOpen 0.4s ease forwards;
}

@keyframes fadeIn {
  from {
    background-color: rgba(0, 0, 0, 0);
  }
  to {
    background-color: rgba(0, 0, 0, 0.5);
  }
}

@keyframes modalOpen {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-content h2 {
  margin-top: 0;
  font-size: 28px;
  font-family: 'Manrope', sans-serif;
  margin-bottom: 20px;
  font-weight: 800;
  color: #FFD600;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: 'Manrope', sans-serif;
  color: white;
}

.modal-content label {
  font-weight: bold;
  font-size: 14px;
}

.modal-content input[type="text"],
.modal-content textarea {
  padding: 12px;
  border: 1px solid #444b66;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background-color: #12142c;
  color: white;
}

.modal-content select {
  padding: 12px;
  border: 1px solid #444b66;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background-color: #12142c;
  color: white;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 32px 32px;
}

.modal-content input[type="text"]:focus,
.modal-content select:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: #f8b500;
  box-shadow: 0 0 6px rgba(248, 181, 0, 0.5);
}

.modal-content textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-content .submit-btn {
  background: linear-gradient(
    90deg,
    #fceabb 0%,
    #f8b500 25%,
    #fceabb 50%,
    #f8b500 75%,
    #fceabb 100%
  );
  background-size: 400%;
  animation: goldPulse 5s ease-in-out infinite alternate;
  color: black;
  font-weight: bold;
  border: none;
  padding: 14px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.modal-content .submit-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 10px #f8b500;
}

.modal-content input[type="checkbox"] {
  transform: scale(1.2);
}

.modal-content h2 {
  margin-top: 0;
  font-size: 28px;
  font-family: 'Manrope', sans-serif;
  margin-bottom: 20px;
  font-weight: 800;
  background: linear-gradient(90deg, #fceabb, #f8b500, #fceabb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(90deg, #fceabb, #f8b500, #fceabb);
  border: none;
  border-radius: 50%;
  color: black;
  font-weight: bold;
  font-size: 18px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.close-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 10px #f8b500;
}

@media (max-width: 768px) {
  .modal-content label {
    font-size: 13px;
    line-height: 1.4;
    flex-wrap: wrap;
    display: flex;
    align-items: flex-start;
  }

  .modal-content input[type="checkbox"] {
    transform: scale(1.1);
    margin-top: 2px;
    margin-right: 8px;
    flex-shrink: 0;
  }
}