.rda-sg-overlay[hidden], .rda-sg-dialog [hidden] { display: none !important; }
.rda-sg-modal-open { overflow: hidden !important; }
.rda-sg-overlay {
  position: fixed; inset: 0; z-index: 999999;
  display: flex; align-items: center; justify-content: center;
  overflow: auto; padding: 20px;
  background: rgba(14, 33, 61, .30);
  -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
  box-sizing: border-box;
}
.rda-sg-overlay *, .rda-sg-overlay *::before, .rda-sg-overlay *::after { box-sizing: border-box; }
.rda-sg-dialog {
  position: relative; width: min(100%, 450px); max-height: calc(100dvh - 40px); overflow-y: auto;
  padding: 31px 34px 27px; border-radius: 20px; background: #fff;
  box-shadow: 0 24px 80px rgba(8, 28, 57, .28), 0 0 0 1px rgba(20, 54, 97, .08);
  color: #213650; font: 16px/1.5 Arial, Helvetica, sans-serif;
  animation: rda-sg-enter .3s ease-out both;
}
.rda-sg-dialog:focus { outline: none; }
.rda-sg-close {
  position: absolute; top: 13px; right: 15px; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: #f0f4f9; color: #536a85;
  font: 27px/32px Arial, sans-serif; cursor: pointer; padding: 0; text-transform: none;
}
.rda-sg-close:hover { background: #e2ebf6; color: #173b67; }
.rda-sg-icon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px;
  background: linear-gradient(135deg, #ff9c34, #f36f21); color: #fff;
  box-shadow: 0 8px 20px rgba(242, 115, 34, .22); font-size: 29px;
}
.rda-sg-kicker { margin: 18px 0 7px; color: #e66c21; font: 700 11px/1.4 Arial, sans-serif; letter-spacing: .13em; }
.rda-sg-dialog h2 { margin: 0 0 8px; color: #143456; font: 700 27px/1.15 Arial, sans-serif; letter-spacing: -.03em; }
.rda-sg-description { margin: 0 0 20px; color: #53677e; font-size: 14px; line-height: 1.55; }
.rda-sg-dialog form > label:not(.rda-sg-consent) { display: block; margin: 12px 0 5px; color: #284561; font-size: 13px; font-weight: 700; }
.rda-sg-dialog input[type="email"], .rda-sg-dialog input[type="tel"] {
  display: block; width: 100%; min-height: 44px; margin: 0; padding: 10px 12px;
  border: 1px solid #c9d5e2; border-radius: 9px; background: #fbfdff;
  color: #17334f; font: 15px Arial, sans-serif; box-shadow: none;
}
.rda-sg-dialog input:focus { outline: 2px solid #f7a065; outline-offset: 1px; border-color: #f38337; }
.rda-sg-consent { display: flex; align-items: flex-start; gap: 9px; margin: 17px 0 0; color: #344c64; font-size: 12.5px; line-height: 1.45; cursor: pointer; }
.rda-sg-consent input { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: #f47d2c; }
.rda-sg-privacy { margin: 9px 0 17px; color: #6f8091; font-size: 11.5px; line-height: 1.5; }
.rda-sg-privacy a { color: #295e91; text-decoration: underline; }
.rda-sg-feedback { margin: 0 0 12px; padding: 9px 10px; border-radius: 7px; background: #fff1eb; color: #9c3d14; font-size: 13px; }
.rda-sg-submit {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; min-height: 46px; margin: 0; padding: 10px 18px;
  border: 0; border-radius: 9px; background: linear-gradient(95deg, #ef7925, #ff9c34);
  color: #fff; font: 700 14px Arial, sans-serif; cursor: pointer; text-transform: none;
  box-shadow: 0 9px 18px rgba(243, 120, 39, .22);
}
.rda-sg-submit:hover { filter: brightness(.97); color: #fff; }
.rda-sg-submit:disabled { opacity: .65; cursor: wait; }
.rda-sg-skip {
  display: block; width: 100%; margin: 7px 0 0; padding: 8px;
  border: 0; background: transparent; color: #53718d;
  font: 600 12.5px Arial, sans-serif; text-decoration: underline; cursor: pointer; text-transform: none;
}
.rda-sg-skip:hover { color: #173b67; }
.rda-sg-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.rda-sg-success p { margin: 18px 0; color: #1d6c49; font-weight: 700; text-align: center; }
@keyframes rda-sg-enter { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 520px) {
  .rda-sg-overlay { align-items: flex-end; padding: 12px 0 0; }
  .rda-sg-dialog { width: 100%; max-height: min(90dvh, 720px); padding: 25px 22px 20px; border-radius: 20px 20px 0 0; }
  .rda-sg-dialog h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .rda-sg-dialog { animation: none; } }
