/**
 * Figma: «Форма обратной связи» 13189:54802 (1440) / 13189:56007 (375)
 */

.feedback-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(2, 2, 3, 0.72);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.feedback-modal-backdrop.is-open {
  opacity: 1;
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 1201;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.feedback-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.feedback-modal__panel {
  position: relative;
  box-sizing: border-box;
  width: min(600px, 100%);
  max-height: min(90vh, 764px);
  overflow: auto;
  background: #fff;
  padding: 90px 40px 40px;
  box-shadow: 0 0 12.5px rgba(57, 59, 65, 0.1);
}

.feedback-modal__close {
  position: absolute;
  top: 90px;
  right: 40px;
  width: 15px;
  height: 15px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.feedback-modal__close-icon {
  display: block;
  position: relative;
  width: 15px;
  height: 15px;
}

.feedback-modal__close-icon::before,
.feedback-modal__close-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.768px;
  height: 19.445px;
  background: #020203;
  transform-origin: center;
}

.feedback-modal__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.feedback-modal__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.feedback-modal__title {
  margin: 0 0 28px;
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  color: #020203;
}

.feedback-form--figma .feedback-form__fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedback-form--figma .field--float {
  position: relative;
  display: block;
  margin: 0;
}

.feedback-form--figma .field--float .field__label {
  position: absolute;
  left: 35px;
  top: 20px;
  z-index: 1;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  color: #020203;
  pointer-events: none;
  transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease;
}

.feedback-form--figma .field--float .field__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  border: 0;
  background: #f5f5f5;
  border-radius: 50px;
  padding: 20px 35px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  color: #020203;
  transition: background 0.15s ease, box-shadow 0.15s ease, padding 0.15s ease;
}

.feedback-form--figma .field--float .field__input:focus {
  outline: none;
}

.feedback-form--figma .field--float.field--filled .field__input,
.feedback-form--figma .field--float:focus-within .field__input {
  background: #fff;
  box-shadow: 0 0 12.5px rgba(57, 59, 65, 0.1);
  padding-top: 30px;
  padding-bottom: 10px;
}

.feedback-form--figma .field--float.field--filled .field__label,
.feedback-form--figma .field--float:focus-within .field__label {
  top: 12px;
  font-size: 10px;
  color: #686a73;
}

.feedback-form--figma .field--float-area {
  margin-top: 10px;
}

.feedback-form--figma .field--float-area .field__input--area {
  min-height: 150px;
  height: 150px;
  resize: vertical;
  border-radius: 25px;
  padding-top: 20px;
}

.feedback-form--figma .field--float-area.field--filled .field__input--area,
.feedback-form--figma .field--float-area:focus-within .field__input--area {
  padding-top: 30px;
}

.feedback-form--figma .feedback-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 24px;
  margin-top: 37px;
}

.feedback-form--figma .form-consent--figma {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin: 0;
  max-width: 330px;
  flex: 1 1 220px;
}

.feedback-form--figma .form-consent--figma input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--c-action);
}

.feedback-form--figma .form-consent__text {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.18px;
  color: #686a73;
}

.feedback-form--figma .form-consent__text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.feedback-form--figma .feedback-form__actions {
  margin: 0;
  flex-shrink: 0;
}

.feedback-form--figma .feedback-form__submit {
  min-width: 140px;
  height: 47px;
  padding: 15px 40px;
  border-radius: 50px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  background: var(--c-action);
  border-color: var(--c-action);
}

.feedback-form--figma .feedback-form__submit:disabled {
  background: #d2d3d9;
  border-color: #d2d3d9;
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.feedback-form--figma .feedback-form__message {
  margin: 16px 0 0;
  font-size: 14px;
}

.feedback-form--figma .form-message--success {
  color: #0a6b3a;
}

.feedback-form--figma .form-message--error {
  color: #b42318;
}

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

@media (max-width: 880px) {
  .feedback-modal {
    align-items: flex-start;
    padding: 0;
  }

  .feedback-modal__panel {
    width: 100%;
    max-width: none;
    max-height: none;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 73px 15px 24px;
    box-shadow: 0 5px 15px rgba(57, 59, 65, 0.1);
  }

  .feedback-modal__close {
    top: 29px;
    right: 15px;
  }

  .feedback-modal__title {
    margin: 0 0 28px;
    font-size: 20px;
    font-weight: 600;
    line-height: normal;
  }

  .feedback-form--figma .feedback-form__fields {
    gap: 10px;
  }

  .feedback-form--figma .field--float .field__input {
    border-radius: 50px;
  }

  .feedback-form--figma .feedback-form__footer {
    flex-direction: column;
    align-items: stretch;
    margin-top: 20px;
  }

  .feedback-form--figma .form-consent--figma {
    max-width: none;
  }

  .feedback-form--figma .feedback-form__submit {
    width: 100%;
    max-width: 344px;
    margin-inline: auto;
  }
}
