.agm-fg-backdrop[hidden], #agm-fg-fields[hidden], #agm-fg-install-fields[hidden], #agm-fg-resale-fields[hidden], #agm-fg-error[hidden] { display:none !important; }
.agm-fg-modal-open { overflow: hidden; }
.agm-fg-backdrop { position:fixed; inset:0; z-index:999999; background:rgba(12,25,43,.67); display:flex; align-items:center; justify-content:center; padding:16px; }
.agm-fg-dialog { box-sizing:border-box; width:min(100%, 510px); max-height:90vh; overflow-y:auto; background:#fff; color:#182638; padding:24px; border-radius:12px; box-shadow:0 16px 50px #0006; position:relative; font-family:inherit; }
.agm-fg-dialog h2 { font-size:24px; margin:0 28px 10px 0; color:#162b48; }
.agm-fg-dialog p { margin:0 0 14px; }
.agm-fg-dialog fieldset { border:0; padding:0; margin:0 0 12px; }
.agm-fg-dialog legend { font-weight:700; margin-bottom:9px; }
.agm-fg-dialog label { display:block; font-weight:600; margin:12px 0 5px; }
.agm-fg-dialog .agm-fg-choice { display:flex; gap:10px; align-items:flex-start; cursor:pointer; font-weight:400; background:#f3f7fc; border:1px solid #dee6ef; border-radius:8px; padding:10px; margin:6px 0; }
.agm-fg-dialog .agm-fg-choice input { margin-top:4px; flex:0 0 auto; accent-color:#165d9c; }
.agm-fg-dialog input[type=text] { width:100%; box-sizing:border-box; display:block; min-height:40px; border:1px solid #aebed0; border-radius:6px; padding:8px 10px; font:inherit; color:#152d48; background:#fff; }
.agm-fg-dialog .agm-fg-submit { width:100%; margin:8px 0 12px; border:0; border-radius:7px; min-height:43px; background:#075da6; color:#fff; font-weight:700; cursor:pointer; }
.agm-fg-dialog .agm-fg-submit:hover { background:#084d88; }
.agm-fg-dialog .agm-fg-submit:disabled { opacity:.65; cursor:wait; }
.agm-fg-dialog .agm-fg-hint { font-size:13px; color:#536373; line-height:1.5; margin:8px 0; }
.agm-fg-dialog .agm-fg-error { background:#fff1ee; color:#9a2919; padding:10px; margin:12px 0; border-radius:6px; }
.agm-fg-dialog .agm-fg-close { position:absolute; right:16px; top:10px; background:transparent; border:0; font-size:30px; line-height:1; padding:2px 8px; cursor:pointer; color:#24364c; }
