/* Feedback modal: glass redesign */

.fm2-shell {
  width: min(920px, calc(100vw - 24px));
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(155deg, rgba(10, 22, 36, 0.52), rgba(16, 30, 47, 0.50));
  box-shadow: 0 28px 64px rgba(7, 16, 27, 0.45);
  border: 1px solid rgba(208, 231, 251, 0.30);
  font-family: Montserrat, Arial, sans-serif;
  animation: fm2ShellIn 0.38s ease-out both;
}

@keyframes fm2ShellIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fm2-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(160deg, rgba(15, 28, 44, 0.48), rgba(26, 42, 61, 0.38)),
    url('/images/bg-rails-freepik.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(0.92) contrast(1.02);
}

.fm2-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(85% 100% at 8% 0%, rgba(255, 255, 255, 0.22), transparent 58%);
}

.fm2-layer {
  position: relative;
  z-index: 1;
  padding: 56px 18px 18px;
}

.fm2-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(212, 233, 252, 0.46);
  background: rgba(243, 251, 255, 0.22);
  color: #ecf7ff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.fm2-close:hover {
  background: rgba(243, 251, 255, 0.36);
  transform: scale(1.04);
}

.fm2-card {
  background: linear-gradient(165deg, rgba(240, 249, 255, 0.26), rgba(220, 236, 250, 0.16));
  border: 1px solid rgba(213, 233, 250, 0.34);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(14px) saturate(132%);
  -webkit-backdrop-filter: blur(14px) saturate(132%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.fm2-head {
  margin-bottom: 16px;
  padding: 0 !important;
  padding-right: 72px !important;
  display: block !important;
  position: static !important;
  top: auto !important;
  right: auto !important;
  z-index: auto !important;
  border: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.fm2-tag {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(236, 247, 255, 0.28);
  border: 1px solid rgba(216, 235, 252, 0.36);
  color: #eef9ff;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.fm2-title {
  margin: 10px 0 8px;
  color: #f7fcff;
  text-shadow: 0 4px 14px rgba(8, 24, 40, 0.40);
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.07;
  font-weight: 700;
}

.fm2-sub {
  margin: 0;
  color: rgba(236, 246, 255, 0.96);
  text-shadow: 0 3px 10px rgba(10, 26, 42, 0.36);
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.4;
}

.form-modal.fm2-form {
  width: min(720px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fm2-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fm2-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fm2-label {
  color: rgba(233, 246, 255, 0.97);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding-left: 2px;
}

.fm2-input,
.fm2-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(203, 229, 251, 0.40);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(235, 247, 255, 0.24), rgba(221, 239, 255, 0.16));
  color: #f4fbff;
  text-shadow: 0 2px 8px rgba(8, 24, 40, 0.34);
  box-shadow: 0 8px 20px rgba(8, 24, 40, 0.20);
  font-size: 17px;
  font-weight: 500;
  padding: 0 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.fm2-input { height: 50px; }

.fm2-textarea {
  min-height: 116px;
  padding: 12px 14px;
  resize: vertical;
}

.fm2-input::placeholder,
.fm2-textarea::placeholder {
  color: rgba(228, 243, 255, 0.78);
}

.fm2-input:focus,
.fm2-textarea:focus {
  outline: none;
  border-color: rgba(177, 219, 252, 0.76);
  box-shadow: 0 0 0 3px rgba(145, 199, 241, 0.28), 0 10px 24px rgba(8, 24, 40, 0.24);
  background: linear-gradient(180deg, rgba(243, 251, 255, 0.34), rgba(224, 242, 255, 0.24));
}

.form-modal.fm2-form .form-modal__file-btn {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(199, 226, 248, 0.40);
  background: linear-gradient(180deg, rgba(236, 248, 255, 0.24), rgba(220, 239, 255, 0.18));
  color: #edf8ff;
  text-shadow: 0 2px 8px rgba(8, 24, 40, 0.30);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(8, 24, 40, 0.16);
}

.fm2-file-hint {
  margin: -1px 0 0;
  color: rgba(223, 241, 255, 0.92);
  font-size: 12px;
  line-height: 1.35;
}

.fm2-consent {
  justify-content: center;
  margin-top: 3px;
}

.fm2-consent .checkbox-custom {
  border-color: rgba(189, 220, 246, 0.74);
  background: rgba(220, 240, 255, 0.16);
}

.fm2-consent .checkbox-label {
  color: rgba(233, 245, 255, 0.95);
  font-size: 14px;
  text-align: center;
}

.fm2-consent .checkbox-label a {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.76);
}

.form-modal.fm2-form .form-modal__btn {
  width: 100%;
  height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(206, 230, 249, 0.48);
  background: linear-gradient(180deg, rgba(236, 248, 255, 0.30), rgba(218, 236, 252, 0.22));
  color: #ffffff;
  text-shadow: 0 3px 10px rgba(8, 24, 40, 0.34);
  box-shadow: 0 10px 22px rgba(8, 24, 40, 0.22);
  font-size: clamp(23px, 3.6vw, 30px);
  font-weight: 700;
  text-transform: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.form-modal.fm2-form .form-modal__btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(242, 251, 255, 0.36), rgba(221, 239, 255, 0.27));
}

@media (max-width: 768px) {
  .fm2-shell {
    width: calc(100vw - 12px);
    border-radius: 16px;
  }

  .fm2-layer { padding: 48px 10px 10px; }
  .fm2-card { padding: 12px; }
  .fm2-head { padding-right: 56px !important; margin-bottom: 12px; }
  .fm2-label { font-size: 13px; }

  .fm2-row { grid-template-columns: 1fr; gap: 8px; }

  .fm2-title { font-size: clamp(23px, 6.8vw, 32px); }

  .fm2-input { height: 48px; font-size: 16px; }
  .fm2-textarea { min-height: 102px; font-size: 16px; }

  .form-modal.fm2-form .form-modal__btn { height: 50px; font-size: 24px; }
}
