/* v1.0.8 Premium modal styles (scoped) */
.fbm-overlay, .fbm-overlay * { box-sizing: border-box; }
.fbm-overlay { z-index: 999999; }
.fbm-overlay { display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:.2s; background: rgba(0,0,0,.55); }
.fbm-overlay.active { opacity:1; pointer-events:auto; }
.fbm-modal { width:100%; max-width:560px; padding:16px; }
.fbm-box { background:#fff; border-radius:22px; padding:22px; position:relative; }
.fbm-head h3 { margin:0 0 8px 0; }
.fbm-submit { width:100%; border-radius:999px; padding:14px 18px; border:0; cursor:pointer; }
.fbm-overlay{
  position: fixed;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(1000px 650px at 50% 22%, rgba(47,124,246,.22), rgba(0,0,0,.72)),
    rgba(0,0,0,.55);
  opacity:0;
  pointer-events:none;
  transition:.22s ease;
  z-index: 999999;
}
.fbm-overlay.active{ opacity:1; pointer-events:auto; }

.fbm-modal{
  width:100%;
  max-width: 560px;
  padding: 18px;
  box-sizing:border-box;
  transform: translateY(28px);
  transition: .22s ease;
}
.fbm-overlay.active .fbm-modal{ transform: translateY(0); }

.fbm-box{
  position: relative;
  border-radius: 22px;
  padding: 24px 24px 18px;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(47,124,246,.14), transparent 55%),
    linear-gradient(180deg, rgba(27,31,40,.92), rgba(16,19,27,.92));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color: rgba(255,255,255,.92);
}

.fbm-box:before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(47,124,246,.55), rgba(255,255,255,.12), rgba(0,0,0,0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events:none;
  opacity:.55;
}

.fbm-overlay .feedback-close{
  position:absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  display:grid;
  place-items:center;
  border-radius: 14px;
  cursor:pointer;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  user-select:none;
  line-height:1;
  font-size: 22px;
}
.fbm-overlay .feedback-close:hover{ background: rgba(255,255,255,.10); }

.fbm-head h3{
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: #fff;
}
.fbm-head div{
  color: rgba(255,255,255,.70);
  font-size: 14px;
  line-height: 1.55;
}

.fbm-form input,
.fbm-form textarea{
  width:100%;
  box-sizing:border-box;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.92);
  outline:none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.fbm-form input::placeholder,
.fbm-form textarea::placeholder{ color: rgba(255,255,255,.55); }

.fbm-form input:focus,
.fbm-form textarea:focus{
  border-color: rgba(47,124,246,.62);
  background: rgba(255,255,255,.07);
  box-shadow: 0 0 0 4px rgba(47,124,246,.16), inset 0 1px 0 rgba(255,255,255,.10);
}

.fbm-form textarea{ resize:none; min-height: 120px; line-height:1.5; }

.fbm-consent{
  display:flex;
  gap:10px;
  align-items:center;
  font-size:13px;
  margin: 10px 0 12px 0;
  color: rgba(255,255,255,.78);
}
.fbm-consent input{
  width:18px;
  height:18px;
  accent-color:#2f6dff;
  margin:0;
}
.fbm-consent a{
  color: rgba(79,139,255,1);
  text-decoration:none;
  border-bottom: 1px solid rgba(79,139,255,.28);
}
.fbm-consent a:hover{ border-bottom-color: rgba(79,139,255,.58); }

/* one-line on desktop; allow wrap on small screens to avoid overflow */
.fbm-consent--one-line{ white-space: nowrap; }
@media (max-width: 560px){
  .fbm-consent--one-line{ white-space: normal; align-items:flex-start; }
}

.fbm-form button[type="submit"],
.fbm-form button{
  width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:12px 22px;
  border-radius: 999px;
  cursor:pointer;
  border:1px solid rgba(47,109,255,.45);
  background: linear-gradient(180deg,#4f8bff 0%,#2f6dff 100%);
  color:#fff;
  font-size:15px;
  font-weight:600;
  line-height:1;
  box-shadow: 0 18px 40px rgba(47,109,255,0.30), 0 10px 20px rgba(0,0,0,0.22);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.fbm-form button:hover{ filter: brightness(1.04); transform: translateY(-2px); }
.fbm-form button:active{ transform: translateY(0); filter: brightness(0.98); }
.fbm-form button:disabled{ opacity:.7; cursor: default; transform:none; }

.fbm-overlay .feedback-error{
  text-align:center;
  color:#ff6b6b;
  font-size:14px;
}

.fbm-success-screen{
  display:none;
  margin-top: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 16px;
  text-align:center;
  color:#fff;
}
.fbm-success-screen .feedback-success{
  display:block;
  color:#fff;
  font-size: 18px;
  font-weight: 800;
}


/* --- layout safety (prevent overflow) --- */
.fbm-box, .fbm-box *{ box-sizing: border-box; }
.fbm-modal{ max-width: min(560px, calc(100vw - 24px)); }
.fbm-form input, .fbm-form textarea{ min-width: 0; }
.fbm-consent{ min-width:0; }
.fbm-consent span{ min-width:0; overflow:hidden; text-overflow:ellipsis; }
