.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}

.overlay.is-hidden {
  display: none;
}

.modal {
  position: relative;
  background: var(--card-bg);
  border-radius: 18px;
  padding: 40px 40px 36px;
  width: 500px;
  max-width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  color: var(--text-dark);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  width: 34px;
  height: 34px;
  color: #444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__close svg {
  width: 22px;
  height: 22px;
}

.modal__title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal__subtitle {
  font-size: 19px;
  font-weight: 400;
  color: #4a4a4a;
  margin-bottom: 26px;
}

.modal__subtitle strong {
  font-weight: 800;
  color: var(--text-dark);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form__input {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #fff;
  padding: 22px 24px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  outline: none;
}

.form__input::placeholder {
  color: #b0b0b0;
  letter-spacing: 0.5px;
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
}

.form__check input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: var(--dark);
  margin-top: 1px;
}

.form__check a {
  font-style: italic;
  text-decoration: underline;
  color: var(--text-dark);
}

.form__captcha {
  background: #fff;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 300px;
  max-width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.form__captcha-check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  cursor: pointer;
}

.form__captcha-check input {
  width: 26px;
  height: 26px;
  accent-color: #fff;
}

.form__captcha-brand {
  text-align: center;
  color: #555;
}

.form__captcha-logo {
  font-size: 26px;
  line-height: 1;
}

.form__captcha-label {
  font-size: 10px;
  margin-top: 2px;
}

.form__submit {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #cfcfcf;
  color: #fff;
  padding: 20px;
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.form__submit.is-active {
  background: var(--dark);
}

.form__submit--link {
  display: block;
  text-align: center;
  background: var(--dark);
  text-decoration: none;
}

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .modal {
    padding: 34px 24px 28px;
  }
  .modal__title { font-size: 24px; }
  .modal__subtitle { font-size: 17px; }
}
