
a {
  text-decoration: none;
}
.footer-link{
  text-decoration: underline;
  text-underline-offset: 3px;
}
.agreement {
  min-height: 100vh; /* Минимальная высота = высота экрана */
  display: flex;
  flex-direction: column;
  font-family: "Inter", sans-serif;
  max-width: 930px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.6;
  color: #333;
  background-color: #f8f8fa;
}

main {
  flex: 1;
}

.agreement__title {
  font-size: 18px;
  font-weight: 400;
  margin: 100px 0 32px 0;
}

.agreement-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-group {
  margin-bottom: 20px;
  width: 100%;
  position: relative;
}

.form-input,
.form-checkbox {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.divider {
  border-top: 1px solid #ddd;
  margin: 30px 0;
}

/* Элементы */
.form-group__label {
  font-size: 12px;
  position: relative;
  display: block;
  font-weight: 400;
  margin-bottom: 6px;
  padding: 0px 5px;
}

.input-with-icon {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none; /* Чтобы клики проходили сквозь иконку к инпуту */
}

/* Обновляем стиль инпута с учетом иконки */
.form-group__input {
  position: relative;
  width: 100%;
  padding: 22px;
  padding-right: 60px; /* Добавляем отступ справа для иконки */
  height: 56px;
  background-color: #f8f8fa;
  border-radius: 12px;
  border: 1px solid var(--Icon-Grey, #d6d6d6);
  font-size: 16px;
  box-sizing: border-box;
  color: var(--Icon-Grey, black);
  transition: all 0.3s ease;
  caret-color: #007aff;
}

.form-group__input:focus {
  border: 1px solid #007aff;
  outline: none;
  box-shadow: 0 0 0 1px rgba(0, 122, 255, 0.2);
}

.form-group__input::placeholder {
  color: var(--Icon-Grey, #d6d6d6);
}

.checkbox-item {
  margin-bottom: 12px;
  padding-left: 0; /* Убираем padding-left, так как позиционируем через margin */
  position: relative;
  min-height: 32px; /* Увеличиваем под высоту чекбокса */
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Выравниваем по верху */
}

.checkbox-item__input {
  position: absolute;
  opacity: 0;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  margin: 0;
  cursor: pointer;
}

.checkbox-item__label {
  position: relative;
  cursor: pointer;
  display: inline-block;
  color: #646b74;
  font-weight: 400;
  font-size: 12px;
  line-height: 17px;
  margin-left: 44px; /* Отступ от чекбокса */
  margin-top: 7px; /* Выравнивание по вертикали */
}

.checkbox-item__link {
  color: black;
  font-size: 12px;
  text-decoration: underline;
}

.checkbox-item__label::before {
  content: "";
  position: absolute;
  left: -44px; /* Смещаем назад на величину margin-left */
  width: 32px;
  height: 32px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.25) inset;
  transition: all 0.2s ease;
}

.checkbox-item__label::after {
  content: "";
  position: absolute;
  left: -43px; /* Смещаем назад на величину margin-left -1px */
  top: 2px; /* Компенсируем margin-top +2px */
  width: 30px;
  height: 29px;
  border-radius: 13px;
  background: #007aff;
  transform: scale(0.5);
  opacity: 0;
  transition: all 0.2s ease;
}

.checkbox-item__input:checked + .checkbox-item__label::before {
  border-color: #007aff;
}

.checkbox-item__input:checked + .checkbox-item__label::after {
  opacity: 1;
  transform: scale(0.6);
}

.checkbox-item__list {
  padding-left: 50px;
  margin-top: 5px;
  color: #646b74;
  font-weight: 400;
  font-size: 12px;
  line-height: 17px;
  list-style-type: none;
}

.checkbox-item__list-item {
  margin-bottom: 5px;
  position: relative;
  padding-left: 15px;
}

.checkbox-item__list-item::before {
  content: "•";
  position: absolute;
  left: 0;
}

.checkbox-group__error {
  display: flex;
  margin-top: 10px;
  padding: 4px 12px;
  justify-content: center;
  text-align: center;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  background: rgba(0, 122, 255, 0.1);
  color: #007aff;
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  width: 280px;
  line-height: 17px; /* 141.667% */
}

.submit {
  margin-top: 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.submit-btn {
  transition: background-color, color 0.3s;
  display: inline-flex;
  cursor: pointer;
  border: none;
  height: 64px;
  padding: 20px 32px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-radius: 15px;
  color: #fff;
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 19px; /* 135.714% */
  background-color: white;
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.04);
  color: #007aff;
}

.submit-btn:hover{
  transition: background-color, color 0.3s;
  background-color: #007aff;
  color: #f1f1f1;
  border: none;
}

.submit-btn__blue {
  transition: background-color 0.3s;
  background-color: #007aff;
  color: white;
}

.submit-btn__blue:hover {
  transition: background-color 0.3s;
  background-color: black;
}
/* Модификаторы */
.submit-btn__disabled {
  background-color: #f1f1f1;
  color: #d6d6d6;
  cursor: not-allowed;
  pointer-events: none;
}

.error-message{
  font-size: 11px;
  margin-left: 10px;
  color: red;
}

footer {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-links-main {
  display: flex;
  justify-content: space-between;
}

.footer-links-main__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #007aff;
}

.footer-links-other {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;

  font-weight: 400;
}
.footer-links-other a {
  color: #646b74;
}

.footer-desc {
  font-size: 10px;
  color: rgba(100, 107, 116, 0.5);
  font-weight: 400;
  line-height: 14px; /* 140% */
}

.footer-copyright {
  padding: 20px 0px;
  display: flex;
  justify-content: space-between;
  color: rgba(100, 107, 116, 0.5);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 17px; /* 141.667% */
}

.footer-copyright__age {
  font-size: 18px;
}

.cookie-banner {
  position: fixed;
  transition: opacity 0.5s;
  max-width: 370px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  bottom: 10px;
  display: flex;
  padding: 40px 30px 30px 30px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border-radius: 40px;
  background: #fff;
  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
  box-sizing: border-box; /* Чтобы padding не влиял на общую ширину */
}

.cookie-banner__title {
  color: var(--Bluish-Grey, #646b74);
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.39px;
  text-transform: uppercase;
}

.cookie-banner__desc {
  color: #646b74;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 17px; /* 141.667% */
}

.cookie-banner__button {
  display: flex;
  padding: 14px 20px;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background-color: transparent;
  border-radius: 15px;
  border: 1px solid #000;
  color: #000;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 19px; /* 146.154% */
}

.cookie-banner__action {
  display: flex;
  width: 100%;
  justify-content: flex-end;
}

.date-input{
  cursor: pointer;
}

.calendar {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 70%;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  margin-top: 5px;
}

.calendar.active {
  display: block;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  height: 40px;
  border-radius: 15px 15px 0px 0px;
  color: black;
}

.nav-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  margin: 5px 2px;
  border-radius: 50px;
  color: #007AFF;
  transition: 0.5s background-color;
}


.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.day-header {
  text-align: center;
  font-weight: bold;
  font-size: 12px;
  padding: 5px 0;
  color:rgba(60, 60, 67, 0.30);
}

.day {
  text-align: center;
  padding: 8px 0;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}

.day:hover {
  background-color: #f0f0f0;
}

.day.other-month {
  color: #ccc;
}

.day.today {
  color: #007AFF;

}

.day.selected {
  background-color: #e0ecff;
  border-radius: 50px;
  font-weight: bold;
  color: #007AFF;
  width: 42px;
  height: 23px;
}






.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

/* Активный класс для показа с fade */
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Само модальное окно */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 90%;
  width: 70%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  padding: 24px;
}

.modal h2{
  margin: 0;
}

/* Активный класс для показа с fade */
.modal.active {
  opacity: 1;
  visibility: visible;
}

/* Кнопка закрытия */
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
}

/* Контент модального окна */
.modal-content {
  margin-top: 20px;
}



@media (min-width: 1024px) {
  .agreement-form {
    flex-direction: row;
  }
  .footer-links-other {
    flex-direction: row;
    gap: 0;
    justify-content: space-between;
  }
  .cookie-banner {
    right: 10px;
    left: auto;
    transform: none;
  }
  .form-group__input{
    font-size: 14px;
  }
}


@media (min-width: 720px){
  .nav-btn{
    margin: 5px 10px;
  }
}
.payment-success {
  display: flex;
  align-items: center;
  justify-content: center;
}
.payment-success__block {
  max-width: 353px;
  text-align: center;
  color: var(--Bluish-Grey, #646b74);
  font-weight: 400;
  font-style: normal;
}
.payment-success__title {
  font-size: 16px;
  line-height: 175%;
  font-weight: 400;
}
.payment-success__text {
  font-size: 14px;
  line-height: 157.143%;
}

.date-input:focus {
  outline: none;
  box-shadow: none;
}