/* Модалка заявки — premium feedback form */

.modal-overlay--feedback.is-open {
  background: rgba(10, 18, 28, 0.72);
  backdrop-filter: blur(10px);
}

.modal.modal--feedback {
  width: min(560px, calc(100% - 24px));
  padding: 0;
  border: 1px solid rgba(45, 128, 194, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(165deg, #fff 0%, #f5fafd 48%, #fff 100%);
  box-shadow:
    0 40px 100px rgba(10, 24, 40, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
  overflow: hidden;
  transform: translate(-50%, -48%) scale(0.94);
}

.modal.modal--feedback.is-open {
  transform: translate(-50%, -50%) scale(1);
  animation: modal-feedback-in 0.42s cubic-bezier(0.22, 1.1, 0.36, 1);
}

@keyframes modal-feedback-in {
  0% {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.modal--feedback__glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 80%;
  background: radial-gradient(circle, rgba(45, 128, 194, 0.22) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.modal--feedback .modal__close--feedback {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(45, 128, 194, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-muted);
  cursor: pointer;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.modal--feedback .modal__close--feedback:hover {
  color: var(--primary-color);
  border-color: rgba(45, 128, 194, 0.35);
  background: #fff;
  transform: scale(1.05);
}

/* Шапка */
.modal--feedback .modal__head {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 28px 56px 16px 28px;
  border-bottom: 1px solid rgba(45, 128, 194, 0.1);
  background: linear-gradient(180deg, rgba(45, 128, 194, 0.06) 0%, transparent 100%);
}

.modal--feedback .modal__head-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color), var(--info-color));
  box-shadow: 0 10px 28px rgba(45, 128, 194, 0.35);
}

.modal--feedback .modal__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--info-color);
}

.modal--feedback .modal__head h3 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 4vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.modal--feedback .modal__product {
  background: linear-gradient(120deg, var(--primary-color), var(--info-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modal--feedback .modal__sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Перки */
.modal--feedback .modal__perks {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 14px 28px 0;
}

.modal--feedback .modal__perks li span {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(45, 128, 194, 0.09);
  border: 1px solid rgba(45, 128, 194, 0.16);
}

/* Форма */
.modal--feedback .modal-form {
  position: relative;
  z-index: 1;
  padding: 18px 28px 26px;
}

.modal--feedback .modal-form__grid {
  display: grid;
  gap: 14px 16px;
}

@media (min-width: 520px) {
  .modal--feedback .modal-form__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.modal--feedback .form-group {
  margin: 0;
}

.modal--feedback .form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-color);
}

.modal--feedback .form-required {
  color: var(--info-color);
}

.modal--feedback .form-field {
  position: relative;
}

.modal--feedback .form-field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(90deg, var(--primary-color), var(--info-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.modal--feedback .form-field:focus-within::after {
  transform: scaleX(1);
}

.modal--feedback .form-group input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(45, 128, 194, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  color: var(--text-color);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.modal--feedback .form-group input::placeholder {
  color: rgba(100, 116, 139, 0.75);
}

.modal--feedback .form-group input:hover {
  border-color: rgba(45, 128, 194, 0.35);
}

.modal--feedback .form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(45, 128, 194, 0.12);
  background: #fff;
}

.modal--feedback .form-group input[aria-invalid="true"] {
  border-color: #ce5130;
  box-shadow: 0 0 0 3px rgba(206, 81, 48, 0.12);
}

.modal--feedback .form-error {
  min-height: 18px;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
}

.modal--feedback .modal-form__footer {
  margin-top: 18px;
}

.modal--feedback .modal-form__submit {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 14px 36px rgba(45, 128, 194, 0.32);
}

.modal--feedback .modal-form__submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: modal-submit-shine 5s ease-in-out infinite;
}

@keyframes modal-submit-shine {
  0%,
  72%,
  100% {
    transform: translateX(-120%);
  }
  88% {
    transform: translateX(120%);
  }
}

.modal--feedback .modal-form__submit-icon {
  display: flex;
  transition: transform 0.25s ease;
}

.modal--feedback .modal-form__submit:hover .modal-form__submit-icon {
  transform: translateX(3px);
}

.modal--feedback .form-politics {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.modal--feedback .form-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 22px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.modal--feedback .form-status:empty {
  display: none;
  padding: 0;
  margin: 0;
}

.modal--feedback .form-status--ok {
  color: #0d6b4d;
  background: rgba(13, 107, 77, 0.1);
  border: 1px solid rgba(13, 107, 77, 0.2);
}

.modal--feedback .form-status--ok::before {
  content: "✓";
  font-weight: 800;
}

.modal--feedback .form-status--err {
  color: #b8432a;
  background: rgba(206, 81, 48, 0.08);
  border: 1px solid rgba(206, 81, 48, 0.2);
}

.modal--feedback .feedback-form--success .modal-form__grid {
  opacity: 0.45;
  pointer-events: none;
}

.modal--feedback .feedback-form--success .modal-form__submit {
  background: linear-gradient(135deg, #0d8a5f, #12a06f);
}

@media (prefers-reduced-motion: reduce) {
  .modal.modal--feedback.is-open {
    animation: none;
  }

  .modal--feedback .modal-form__submit::before {
    animation: none;
  }
}
