/* ================================================================
   Блок брони (модалка + форма) и баннер cookie.
   Стили перенесены из style.css сайта поштучно: подключать style.css
   целиком нельзя — его глобальные правила (h1, section, navbar)
   ломают вёрстку лендинга.
   ================================================================ */

.contact_modal .uk-modal-body {
  padding: 50px 75px;
  background-color: #E5E3D1;
}

.form_error {
  padding: 10px 30px;
  color: #741e1e;
  border: 1px solid #741e1e;
  background-color: #f4ebeb;
  margin-bottom: 15px;
  display: none;
}

.form_success {
  padding: 10px 30px;
  color: #194e19;
  border: 1px solid #194e19;
  background-color: #ebf7eb;
  margin-bottom: 15px;
  display: none;
}

.uk-modal-title {
  margin-top: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.15;
}

/* Кнопка формы — в палитре лендинга, а не дефолтная синяя UIkit */
.contact_modal .uk-button-primary {
  min-width: 0;
  padding: 14px 20px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: #fffdf8;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
  box-shadow: none;
}

.contact_modal .uk-button-primary:hover,
.contact_modal .uk-button-primary:focus {
  background: var(--accent-hover);
  color: #fffdf8;
}

.contact_modal .uk-button-primary:disabled {
  opacity: .5;
}

.contact_modal .uk-input {
  background-color: #f2efe2;
}

.uk-checkbox:checked,
.uk-checkbox:indeterminate,
.uk-radio:checked {
  background-color: #12352b;
}

.agree {
  font-size: 15px;
}

.form_success__pop {
  font-size: 16px;
  font-weight: 400;
  border: none;
  background-color: transparent;
  color: #11352B;
  text-align: left;
}

.checkbox_agree {
  width: 24px;
  height: 24px;
}

.agree a {
  text-decoration: underline;
}

/* --- cookie --- */

#cookie_consent_popup.uk-alert-primary {
  background-color: #ffffff;
}

#cookie_consent_popup {
  max-width: 100%;
  width: 100%;
}

.cookie_block {
  flex-direction: row;
}

.cookie_content {
  flex-direction: row;
  column-gap: 30px;
}

.cookie_title {
  color: #352924;
  text-align: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
}

#cookie_consent_popup .cookie_title .cookie_link {
  color: #352924;
  text-decoration: underline;
  font-weight: 400;
}

#cookie_consent_popup .cookie_title .cookie_link:hover {
  color: #999;
}

#cookie_consent_popup .btn_wrapper {
  max-width: 160px;
}

#cookie_consent_popup button {
  color: #fff;
  text-align: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 15px;
  border: 1px solid #fff;
  background: #12352B;
  box-shadow: none;
  line-height: 1.2;
}

#cookie_consent_popup button:hover {
  background-color: #1A5645;
}

#cookie_total_close {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0px;
  top: 0px;
  cursor: pointer;
  border-left: 1px solid #352924;
  border-bottom: 1px solid #352924;
  color: #352924;
}

#cookie_total_close:hover {
  background-color: #f8f8f8;
}

#cookie_total_close svg {
  width: 16px;
}

#cookie_total_close path {
  fill: #352924;
}

/* cookie на узких экранах */
@media (max-width: 480px) {
  .cookie_block {
    flex-direction: column;
  }

  .cookie_content {
    flex-direction: column;
    row-gap: 10px;
  }

  .cookie_title {
    text-align: left;
    padding-right: 40px;
  }

  #cookie_consent_popup .btn_wrapper {
    max-width: 100%;
  }
}
