/* Стили модального окна с формой демо.
   Назначение: показывает уже подключённую Яндекс Форму поверх страницы.
   Подключается рядом с blocks/feedback/feedback.html. */

.demo-modal {
  max-width: 640px;
  width: 90%;
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 48px;
  border: none;
  border-radius: 24px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 24px 64px rgba(8, 26, 51, 0.28);
}

.demo-modal::backdrop {
  background: rgba(8, 26, 51, 0.45);
}

.demo-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.demo-modal__title {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.demo-modal__close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  flex: none;
  margin-top: 2px;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--navy) 6%, #fff);
  color: var(--navy);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.demo-modal__close:hover {
  background: color-mix(in srgb, var(--navy) 12%, #fff);
}

.demo-modal__text {
  margin: 0 48px 18px 0;
  color: color-mix(in srgb, var(--navy) 55%, #9aafc6);
  font-size: 16px;
  line-height: 1.45;
}

.feedback,
.feedback-form {
  max-width: none;
  margin: 0;
  padding: 0;
}

.feedback-form__iframe {
  display: block;
  width: 100%;
  min-height: 560px;
  border: 0;
  color-scheme: light;
}

.demo-modal__note {
  margin: 8px 0 0;
  color: color-mix(in srgb, var(--navy) 45%, #9aafc6);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.policy-text {
  font-size: 14px;
  text-align: center;
  margin: 20px auto;
}

.policy-text a {
  color: hsl(var(--primary));
}

@media (max-width: 640px) {
  .demo-modal {
    padding: 36px;
  }

  .demo-modal__title {
    font-size: 24px;
  }
}
