/* ============================================= */
/* МОДАЛЬНОЕ ОКНО                                */
/* ============================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 46, 90, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 12px;
  padding: 36px;
  max-width: 460px;
  width: 100%;
  position: relative;
  animation: slideIn 0.25s ease;
}

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

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #7a8a9e;
}

.modal-close:hover {
  color: #e63946;
}

.modal h3 {
  color: #0d2e5a;
  margin-bottom: 8px;
  font-size: 24px;
}

.modal p {
  color: #7a8a9e;
  margin-bottom: 24px;
  font-size: 14px;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d5dde8;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f77f00;
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.btn-submit {
  width: 100%;
  background: #e63946;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #c1121f;
}

.form-note {
  font-size: 12px;
  color: #7a8a9e;
  text-align: center;
  margin-top: 12px;
}

.form-message {
  margin-top: 12px;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  display: none;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  display: block;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  display: block;
}