.question-modal[hidden],
.question-modal__extra[hidden],
.question-modal__status[hidden] {
  display: none;
}

.question-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.question-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(7.5px);
  backdrop-filter: blur(7.5px);
}

.question-modal__panel {
  position: relative;
  width: min(820px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 40px 56px;
  background: #fff;
}

.question-modal__panel:focus {
  outline: none;
}

.question-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 21px;
  margin-bottom: 36px;
}

.question-modal--long-title .question-modal__header {
  height: auto;
  min-height: 21px;
  padding-right: 64px;
}

.question-modal__title {
  font-family: 'DINPro Cond Regular', 'Inter', Arial, sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.question-modal__close {
  position: absolute;
  top: 0;
  right: 8px;
  width: 64px;
  height: 63px;
}

.question-modal__close img {
  max-width: none;
}

.question-modal__form,
.question-modal__fields {
  display: flex;
  flex-direction: column;
}

.question-modal__form {
  gap: 24px;
}

.question-modal__fields {
  gap: 18px;
}

.question-modal__name-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.question-modal__input {
  display: block;
  width: 100%;
  height: 50px;
  min-width: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0;
  padding: 0 20px;
  background: #fff;
  color: #1e1e1e;
  font-family: 'DINPro Regular', 'Inter', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
}

.question-modal__variant-field[hidden] {
  display: none;
}

.question-modal__question[hidden] {
  display: none;
}

.question-modal__input::placeholder {
  color: #b7b7b7;
  opacity: 1;
}

.question-modal__input:focus,
.question-modal__input.is-invalid {
  border-color: #e2480a;
  outline: none;
}

.question-modal__question {
  min-height: 50px;
  max-height: 110px;
  resize: none;
  overflow-y: auto;
  padding: 9px 20px;
}

.question-modal__contact {
  min-width: 0;
  height: 90px;
  border: 0;
}

.question-modal__contact-title {
  width: 100%;
  color: rgba(30, 30, 30, 0.6);
  font-family: 'DINPro Regular', 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 30px;
}

.question-modal__contact-options {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 50px;
  height: 50px;
  margin-top: 10px;
}

.question-modal__option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  cursor: pointer;
  color: rgba(30, 30, 30, 0.6);
  font-family: 'DINPro Regular', 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 30px;
}

.question-modal__option input {
  appearance: none;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0;
  background: #fff;
  cursor: pointer;
}

.question-modal__option input:checked {
  border-color: rgba(0, 0, 0, 0.6);
  background: #516b43;
  box-shadow: inset 0 0 0 4px #fff;
}

.question-modal__option input:focus-visible,
.question-modal__consent input:focus-visible,
.question-modal__close:focus-visible,
.question-modal__submit:focus-visible {
  outline: 2px solid #e2480a;
  outline-offset: 2px;
}

.question-modal__bottom {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 50px;
}

.question-modal__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 373px;
  cursor: pointer;
}

.question-modal__consent input {
  appearance: none;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.6);
  border-radius: 0;
  background: #fff;
  cursor: pointer;
}

.question-modal__consent input:checked {
  background: #516b43;
  box-shadow: inset 0 0 0 4px #fff;
}

.question-modal__consent span {
  color: rgba(30, 30, 30, 0.6);
  font-family: 'DINPro Regular', 'Inter', Arial, sans-serif;
  font-size: 12px;
  line-height: 14px;
}

.question-modal__consent a {
  text-decoration: underline;
}

.question-modal__submit {
  flex: 0 0 310px;
  height: 50px;
  background: #e2480a;
  color: #fff;
  font-family: 'DINPro Cond Medium', 'Inter', Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.question-modal__submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.question-modal__status {
  margin-top: -8px;
}

.question-modal__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

body.question-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .question-modal__panel {
    padding: 32px 24px;
  }

  .question-modal__close {
    right: 0;
  }

  .question-modal__name-row {
    grid-template-columns: 1fr;
  }

  .question-modal__contact {
    height: auto;
  }

  .question-modal__contact-options {
    flex-wrap: wrap;
    justify-content: flex-start;
    height: auto;
    gap: 12px 20px;
  }

  .question-modal__bottom {
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }

  .question-modal__consent {
    width: 100%;
  }

  .question-modal__submit {
    flex-basis: 50px;
    width: 100%;
  }
}
