.agent-referral-button,.agent-footer-referral{border:0;cursor:pointer;font:800 1rem Arial,sans-serif}
.agent-footer-referral{padding:0;background:transparent;color:#fff;text-decoration:underline}
.agent-referral-modal{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;padding:22px}
.agent-referral-modal.open{display:flex}
.agent-referral-backdrop{position:absolute;inset:0;border:0;background:rgba(6,19,34,.84);backdrop-filter:blur(4px);cursor:pointer}
.agent-referral-dialog{position:relative;z-index:1;width:min(860px,100%);max-height:calc(100dvh - 44px);overflow:auto;padding:42px;background:#fff;border-top:5px solid #c4a963;box-shadow:0 28px 80px rgba(0,0,0,.35)}
.agent-referral-close{position:absolute;top:12px;right:16px;width:40px;height:40px;border:0;background:transparent;color:#526174;font-size:2rem;line-height:1;cursor:pointer}
.agent-referral-dialog>h2{max-width:710px;margin:0;color:#10263f;font:700 clamp(2.2rem,5vw,3.5rem)/1.05 Georgia,serif}
.agent-referral-intro{max-width:680px;margin:14px 0 28px;color:#5b697a;font-size:1rem;line-height:1.65}
.agent-referral-form fieldset{margin:0 0 25px;padding:25px;border:1px solid #d9e0e7;background:#f7f8fa}
.agent-referral-form legend{padding:0 10px;color:#10263f;font-weight:800}
.agent-referral-form legend span{display:inline-grid;place-items:center;width:34px;height:34px;margin-right:8px;background:#10263f;color:#fff;font-size:.78rem}
.agent-referral-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.agent-referral-grid label{display:block;color:#34445a;font-size:.8rem;font-weight:800}
.agent-referral-grid label>span{display:block;margin-bottom:7px}
.agent-referral-grid input{display:block;width:100%;min-height:49px;padding:11px 13px;border:1px solid #c9d0da;background:#fff;color:#152237;font:500 .95rem Arial,sans-serif;outline:none}
.agent-referral-grid input:focus{border-color:#1d467d;box-shadow:0 0 0 3px rgba(29,70,125,.1)}
.agent-referral-grid em{color:#788494;font-size:.72rem;font-style:normal;font-weight:600}
.agent-referral-wide{grid-column:1/-1}
.agent-referral-consent{display:flex;align-items:flex-start;gap:10px;margin:0 0 20px;color:#526174;font-size:.78rem;line-height:1.5}
.agent-referral-consent input{margin-top:3px}
.agent-referral-trap{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.agent-referral-submit{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:54px;padding:14px 18px;border:0;background:#1d467d;color:#fff;font:800 1rem Arial,sans-serif;cursor:pointer}
.agent-referral-submit:disabled{cursor:wait;opacity:.75}
.agent-referral-submit b{font-size:1.35rem}
.agent-referral-status{margin:12px 0 0;color:#a12626;font-size:.85rem;font-weight:700}
.agent-referral-mask{position:absolute;inset:0;z-index:3;display:none;align-items:center;justify-content:center;flex-direction:column;padding:42px;text-align:center;background:rgba(16,38,63,.97);color:#fff}
.agent-referral-mask.show{display:flex}
.agent-referral-mask .info-eyebrow{margin-top:2px}
.agent-referral-mask h3{max-width:600px;margin:0;color:#fff;font:700 clamp(2rem,5vw,3rem)/1.08 Georgia,serif}
.agent-referral-mask>p:last-of-type{max-width:570px;color:#dce5ee;line-height:1.6}
.agent-referral-mask button{display:none;margin-top:18px;padding:12px 22px;border:1px solid #c4a963;background:#c4a963;color:#10263f;font-weight:800;cursor:pointer}
.agent-referral-mask.complete button{display:inline-block}
.agent-referral-loader{position:relative;display:grid;place-items:center;width:108px;height:108px;margin-bottom:24px;border-radius:50%;background:#fff}
.agent-referral-loader:after{content:"";position:absolute;inset:-6px;border:3px solid transparent;border-top-color:#c4a963;border-right-color:#fff;border-radius:50%;animation:agent-referral-spin 1.15s linear infinite}
.agent-referral-loader img{width:72px;height:72px;object-fit:contain;animation:agent-logo-spin 1.9s linear infinite}
.agent-referral-mask.complete .agent-referral-loader:after,.agent-referral-mask.complete .agent-referral-loader img{animation:none}
.agent-referral-mask.complete .agent-referral-loader:after{border-color:#c4a963}
body.agent-referral-open{overflow:hidden}
@keyframes agent-referral-spin{to{transform:rotate(360deg)}}
@keyframes agent-logo-spin{to{transform:rotate(-360deg)}}
@media(max-width:650px){.agent-referral-modal{padding:10px}.agent-referral-dialog{max-height:calc(100dvh - 20px);padding:34px 18px}.agent-referral-form fieldset{padding:20px 15px}.agent-referral-grid{grid-template-columns:1fr}.agent-referral-wide{grid-column:auto}}
@media(prefers-reduced-motion:reduce){.agent-referral-loader:after,.agent-referral-loader img{animation-duration:3s}}
