.consent-form {
  max-width: 820px;
  margin: 40px auto;
  padding: 32px 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff8c5, #eafff4);
  font-family: system-ui, sans-serif;
  box-sizing: border-box;
}

.consent-form h1 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
  margin-bottom: 16px;
  color: #0d2b45;
}

.consent-subtitle {
  font-size: 15px;
  color: #0d2b45;
  margin-bottom: 24px;
}

.consent-form input[type="text"],
.consent-form input[type="email"] {
  width: 100%;
  padding: 18px 20px;
  border-radius: 16px;
  border: none;
  margin-bottom: 16px;
  font-size: 16px;
  box-sizing: border-box;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 12px;
  align-items: start;
  margin-bottom: 14px;
  cursor: pointer;
}

.checkbox-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* кастомный чекбокс */
.custom-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #8ecf63;
}

.checkbox-row input:checked + .custom-checkbox {
  background: #8ecf63;
}

.checkbox-row input:focus + .custom-checkbox {
  outline: 2px solid #5da92f;
  outline-offset: 2px;
}

/* ТЕКСТ */
.checkbox-text {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: #0d2b45;
}

/* ССЫЛКИ */
.checkbox-text a {
display: inline;
  color: #7fbf4d;
  text-decoration: underline;
}

.checkbox-text a:hover {
  text-decoration: none;
}

/* BUTTON */
.consent-form button {
  margin-top: 20px;
  width: 100%;
  padding: 20px;
  border-radius: 18px;
  background: #7fbf4d;
  color: #fff;
  font-size: 18px;
  border: none;
  cursor: pointer;
}

.consent-form button:disabled {
  opacity: 0.6;
}

/* MESSAGE */
.form-message {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
}

/* MOBILE */
@media (max-width: 480px) {
  .consent-form {
    padding: 24px 16px;
  }
}

/* ================= POPUP ================= */

.consent-popup {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 99999;
}

.consent-popup.active {
  opacity: 1;
  pointer-events: auto;
}

/* MODAL */
.popup-inner {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 24px;
  width: min(420px, calc(100vw - 32px));
  text-align: center;
  animation: popupScale 0.25s ease;
  max-height: 90dvh;
  overflow-y: auto;
  box-sizing: border-box;
}

.popup-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.popup-inner h2 {
  font-size: clamp(18px, 4vw, 22px);
  margin-bottom: 8px;
}

.popup-inner p {
  font-size: 14px;
  line-height: 1.45;
  color: #333;
}

.popup-inner button {
  margin-top: 18px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: #7fbf4d;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

/* ANIMATION */
@keyframes popupScale {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}