.modal {
  display: none;
  position: fixed;
  z-index: 1050; /* Убедитесь, что z-index больше, чем у header */
  right: -100%;
  top: 0; /* Начинается с самого верха */
  width: 80%;
  height: 100%; /* Занимает всю высоту */
  overflow: auto;
  background-color: #fefefe;
  box-shadow: -3px 0 5px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  border-left: 1px solid #e0e0e0;
  border: 0px solid #0056b3; /* Темно-синяя обводка */
  border-right: 0px;
}

.modal-content {
  padding: 20px;
}

input,
textarea {
  outline: none;
}

.form-group {
  margin-bottom: 200px; /* Increased spacing */
}

.close,
.close2 {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus,
.close2:hover,
.close2:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.form-group {
  margin-bottom: 25px; /* Increased spacing */
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group textarea {
  margin-top: 0px;
  margin-bottom: 50px;
  width: 100%;
  padding: 8px 0; /* Padding adjusted to only apply vertically */
  box-sizing: border-box;
  border: none; /* Remove all borders */
  border-bottom: 1px solid #e0e0e0; /* Add bottom border */
  font-family: Arial, sans-serif;
}

.form-group-big label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.form-group-big input {
  margin-top: 80px;
  margin-bottom: 30px;
  width: 100%;
  padding: 8px 0; /* Padding adjusted to only apply vertically */
  box-sizing: border-box;
  border: none; /* Remove all borders */
  border-bottom: 1px solid #e0e0e0; /* Add bottom border */
  font-family: Arial, sans-serif;
}

.form-group button {
  font-family: "Montserrat", sans-serif;
  color: black;
  background-color: transparent;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border: 1px solid black;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 0px;
}

.form-group button:hover {
  background-color: #3464ad;
  border: 1px solid transparent;
  color: white;
}

.checkbox-container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: #2196f3;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.consent-text {
  font-size: 14px;
  color: #333;
}

.consent-text a {
  color: #007bff;
  text-decoration: none;
}

.consent-text a:hover {
  text-decoration: underline;
}

.modal.show {
  right: 0;
}

.button-submit {
  color: white; /* Цвет текста */
  border: 1px solid white; /* Белая граница без скругления */
  background-color: #3464ad; /* Прозрачный фон */
  padding: 10px 20px; /* Отступы внутри кнопки */
  text-decoration: none; /* Убираем подчеркивание */
  transition: background-color 0.3s ease; /* Плавное изменение цвета при наведении */
  margin-top: 5px; /* Отступ сверху кнопки */
  width: 150px; /* Ширина кнопки */
  height: 60px; /* Высота кнопки */
  margin-left: 0px; /* Отступ слева, чтобы сместить кнопку правее */
}

@media (min-width: 768px) {
  .modal {
    width: 30%;
    right: -30%;
    top: 96px;
    height: calc(100% - 96px);
  }

  .modal.show {
    right: 0;
  }
}
