/* SL Appraisal Group - site styles (home, quote, thank-you, login, reset password, 404). */

/* Self-hosted fonts (SIL Open Font License; see assets/fonts/LICENSE-*.txt).
   Inter is a variable font, so every weight from 100 to 900 comes from one file. */
@font-face { font-family:'Inter'; font-style:normal; font-weight:100 900; font-display:swap; src:url('../fonts/inter-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family:'Gelasio'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/gelasio-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family:'Gelasio'; font-style:italic; font-weight:400; font-display:swap; src:url('../fonts/gelasio-latin-400-italic.woff2') format('woff2'); }

:root { --serif:'Gelasio',Georgia,'Times New Roman',serif; --sans:'Inter','Segoe UI',system-ui,-apple-system,Arial,sans-serif; --ink:#152d3d; --navy:#102a3d; --navy-2:#1d3b52; --slate:#567185; --gold:#ad9168; --ivory:#f7f6f2; --paper:#fffefd; --pale:#eaf0f3; --stroke:#dce4e8; --body:#4b5d67; --max:1220px; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior:smooth; scroll-padding-top:94px; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:var(--sans); font-size:16px; line-height:1.62; -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
button { font:inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline:3px solid #98bed6; outline-offset:4px; }
.shell { width:min(calc(100% - 68px),var(--max)); margin-inline:auto; }
.eyebrow { text-transform:uppercase; letter-spacing:.185em; color:#55707f; font-weight:750; font-size:12px; line-height:1.3; }
.eyebrow.light { color:#b2c8d5; }
h1,h2,h3,p { margin-top:0; }
h1,h2,.display { font-family:var(--serif); font-weight:400; letter-spacing:-.045em; }
h1 { font-size:clamp(54px,5.2vw,84px); line-height:1.035; margin-bottom:24px; }
h2 { font-size:clamp(36px,3.5vw,55px); line-height:1.11; margin-bottom:18px; }
h3 { line-height:1.28; }
p { color:var(--body); }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:53px; padding:13px 22px; border-radius:3px; border:1px solid transparent; font-size:14px; font-weight:760; letter-spacing:.01em; transition:transform .18s,background .18s,border-color .18s; white-space:nowrap; cursor:pointer; }
.btn:hover { transform:translateY(-2px); }
.btn.primary { color:white; background:var(--navy); }
.btn.primary:hover { background:#27475f; }
.btn.inverse { background:white; color:var(--navy); }
.btn.outline { background:transparent; border-color:#b6c6ce; color:var(--ink); }
.arrow { width:16px; height:16px; flex-shrink:0; }
.topline { background:#0c2536; color:#bdcfda; font-size:11px; font-weight:650; letter-spacing:.16em; text-transform:uppercase; }
.topline .shell { display:flex; align-items:center; justify-content:space-between; padding:10px 0; gap:20px; }
.topline a { color:#e5eff4; letter-spacing:.07em; }
.topline .util { display:flex; align-items:center; gap:24px; }
.topline .util-link { color:#bdcfda; }
.topline a:hover { color:#fff; }
header.site-header { background:rgba(255,254,253,.96); border-bottom:1px solid #edf0f1; position:sticky; top:0; z-index:100; backdrop-filter:blur(13px); }
.nav { height:88px; display:flex; align-items:center; justify-content:space-between; gap:36px; }
.brand { display:flex; align-items:center; gap:13px; min-width:265px; }
.brand-mark { width:47px; height:47px; display:grid; place-items:center; background:var(--navy); color:#fff; font-family:var(--serif); font-size:23px; font-weight:normal; letter-spacing:-.085em; position:relative; }
.brand-mark::after { content:''; width:16px; height:2px; position:absolute; bottom:7px; right:7px; background:var(--gold); }
.brand-copy { display:flex; flex-direction:column; line-height:1.1; }
.brand-copy strong { font-size:17px; font-weight:790; letter-spacing:.015em; }
.brand-copy small { margin-top:5px; letter-spacing:.2em; font-size:10px; color:#55707f; font-weight:760; }
.desktop-nav { display:flex; align-items:center; gap:28px; margin-left:auto; }
.desktop-nav>a { color:#435867; font-size:13px; font-weight:720; white-space:nowrap; transition:color .16s; }
.desktop-nav>a:hover { color:#000; }
.header-cta { padding:13px 17px; min-height:44px; font-size:13px; }
.menu-toggle { display:none; background:transparent; border:0; padding:8px; color:var(--navy); cursor:pointer; }
.menu-toggle svg { display:block; }
.mobile-nav { display:none; padding:4px 28px 22px; background:white; border-top:1px solid var(--stroke); }
.mobile-nav a { display:block; padding:12px 0; font-weight:700; font-size:14px; }

.hero { background:var(--ivory); overflow:hidden; }
.hero-layout { min-height:700px; display:grid; grid-template-columns:1.07fr .93fr; align-items:stretch; }
.hero-copy { padding:112px 52px 80px 0; position:relative; z-index:2; }
.hero .eyebrow { display:flex; align-items:center; gap:14px; color:#55707f; }
.hero .eyebrow::before { content:''; width:31px; height:1px; background:var(--gold); }
.hero h1 { margin-top:31px; max-width:625px; }
.hero h1 em { font-weight:400; color:#678ba0; font-style:italic; }
.hero-lede { font-size:17px; line-height:1.78; max-width:530px; margin-bottom:33px; color:#49616f; }
.hero-actions { display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.hero-foot { border-top:1px solid #d9e0e1; max-width:535px; margin-top:72px; padding-top:23px; display:flex; gap:30px; flex-wrap:wrap; }
.hero-foot span { display:inline-flex; gap:10px; align-items:flex-start; color:#55707f; font-size:14px; font-weight:600; line-height:1.5; }
.hero-foot svg { color:#9b8a68; flex-shrink:0; margin-top:2px; }
.hero-visual { position:relative; isolation:isolate; min-height:700px; margin-right:calc((min(100vw, var(--max) + 68px) - 100vw)/2); background:#173e55; overflow:hidden; }
.hero-visual::before { content:''; position:absolute; inset:0; z-index:-1; background:radial-gradient(ellipse at 75% 20%,#496e7c66,transparent 49%),linear-gradient(142deg,#1d475c,#0b273a); }
.coast-art { position:absolute; width:120%; height:100%; left:-8%; top:0; opacity:.97; }
.visual-caption { position:absolute; left:42px; bottom:42px; width:calc(100% - 84px); background:#f8f7f3ef; color:var(--ink); box-shadow:0 18px 55px #071e2f3b; padding:23px 25px; display:flex; align-items:center; justify-content:space-between; gap:20px; backdrop-filter:blur(10px); }
.visual-caption .small { font-size:11px; color:#55707f; text-transform:uppercase; letter-spacing:.18em; font-weight:800; }
.visual-caption strong { font-family:var(--serif); font-weight:400; font-size:22px; line-height:1.25; display:block; margin-top:5px; }
.visual-caption svg { color:var(--gold); }
.proofbar { background:#fff; border-bottom:1px solid #e7edef; }
.proofbar .shell { display:flex; justify-content:flex-start; gap:22px; align-items:center; padding:20px 0; }
.proofbar .intro { font-size:11px; color:#55707f; text-transform:uppercase; letter-spacing:.17em; font-weight:790; white-space:nowrap; }
.proofbar .items { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:6px 12px; }
.proofbar .items span { color:#526675; font-size:13px; font-weight:740; }
.proofbar .dot { color:#b89d77; }

.section { padding:112px 0; }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:55px; margin-bottom:45px; }
.section-heading h2 { max-width:690px; margin:15px 0 0; }
.section-heading>p { max-width:360px; font-size:15px; margin:0 0 8px; }
.services { background:#fff; }
.service-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:15px; }
.service-card { border:1px solid var(--stroke); min-height:264px; padding:29px 30px 28px; position:relative; background:white; transition:background .18s,transform .18s; }
.service-card:hover { background:#f7fafb; transform:translateY(-3px); }
.service-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:38px; }
.service-no { font-size:12px; font-weight:780; color:#7d6a4c; letter-spacing:.1em; }
.service-icon { width:32px; height:32px; color:#63849b; }
.service-card h3 { font-family:var(--serif); font-size:22px; letter-spacing:-.025em; font-weight:400; margin-bottom:12px; }
.service-card p { font-size:14px; line-height:1.65; margin:0; }

.coastal { background:var(--navy); color:white; overflow:hidden; }
.coastal .shell { display:grid; grid-template-columns:1fr .9fr; align-items:center; gap:100px; }
.coastal h2 { margin:18px 0 23px; max-width:610px; }
.coastal p { color:#b9cbd5; font-size:16px; max-width:560px; }
.coastal .features { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:42px; }
.feature { border-top:1px solid #496275; padding-top:16px; font-size:14px; color:#ecf2f5; font-weight:720; }
.feature span { color:#b69a70; margin-right:10px; }
.coastal-map { position:relative; aspect-ratio:4/4.6; background:#294f63; border:1px solid #4d7388; overflow:hidden; box-shadow:25px 25px 0 rgba(177,199,208,.07); }
.coastal-map svg { width:100%; height:100%; position:absolute; inset:0; }
.map-float { position:absolute; bottom:25px; left:25px; right:25px; background:rgba(13,39,56,.92); border:1px solid #648093; padding:19px 21px; }
.map-float strong { display:block; font-family:var(--serif); font-weight:400; font-size:22px; }
.map-float small { color:#c1d2dd; font-size:12px; letter-spacing:.08em; text-transform:uppercase; }

.who { background:var(--ivory); }
.who .section-heading h2 { max-width:550px; }
.audiences { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.audience { background:white; padding:28px 24px 29px; min-height:191px; border-top:3px solid #829daf; }
.audience svg { color:#7b96a6; margin-bottom:23px; }
.audience strong { display:block; font-size:16px; font-weight:780; margin-bottom:8px; }
.audience p { font-size:14px; line-height:1.6; margin:0; }
.about { background:#fff; }
.about .shell { display:grid; grid-template-columns:.82fr 1.18fr; gap:90px; align-items:center; }
.portrait-wrap { min-height:510px; background:#d9e3e9; position:relative; overflow:hidden; }
.portrait-wrap::before { content:''; position:absolute; inset:0; background:radial-gradient(circle at 70% 20%,#f4f6f6,transparent 48%),linear-gradient(145deg,#c4d6e0,#5d8298); }
.portrait-wrap img { width:100%; height:100%; position:absolute; inset:0; object-fit:cover; object-position:50% 20%; }
.portrait-wrap .fallback-initials { position:absolute; left:20%; top:17%; color:#fff8; font:normal 220px var(--serif); }
.portrait-tag { position:absolute; left:0; bottom:0; padding:22px 30px; background:var(--navy); color:white; min-width:77%; }
.portrait-tag strong { display:block; font-size:16px; }
.portrait-tag span { color:#c9d8e0; font-size:13px; }
.about-copy h2 { margin:14px 0 23px; }
.about-copy>p { max-width:610px; font-size:16px; }
.credential-list { border-top:1px solid var(--stroke); margin-top:30px; padding-top:22px; display:grid; grid-template-columns:1fr 1fr; gap:21px 25px; }
.credential { display:flex; gap:11px; color:#415a6c; font-size:14px; font-weight:750; line-height:1.45; }
.credential svg { flex-shrink:0; color:#b39a78; }
.about-note { color:#5d7482; font-size:12px; margin-top:22px; }
.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; border-top:1px solid var(--stroke); margin-top:30px; padding-top:24px; }
.stat b { display:block; font:normal 46px/1 var(--serif); letter-spacing:-.03em; color:var(--navy); }
.stat span { display:block; margin-top:9px; color:#415a6c; font-size:13px; font-weight:750; line-height:1.4; }

.process { background:#f1f5f6; }
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:35px; margin-top:53px; }
.step { border-top:1px solid #b7c9d3; padding-top:22px; }
.step-num { font-family:var(--serif); font-size:50px; color:#6f8c9e; line-height:1; }
.step h3 { font-size:18px; margin:24px 0 9px; }
.step p { font-size:14px; max-width:320px; }


.cta { background:linear-gradient(115deg,#1d4057,#102b40); color:white; padding:91px 0; }
.cta .shell { display:flex; align-items:center; justify-content:space-between; gap:65px; }
.cta h2 { font-size:clamp(40px,4vw,58px); max-width:680px; margin:15px 0; }
.cta p { color:#beced8; margin:0; font-size:16px; max-width:590px; }
.cta-actions { display:flex; flex-direction:column; align-items:stretch; gap:13px; min-width:225px; }
.cta-actions .phone { text-align:center; color:#dce8ee; font-size:14px; font-weight:750; }
footer { background:#0b2435; color:#d4e1e8; padding:57px 0 32px; }
.footer-grid { display:flex; align-items:start; justify-content:space-between; gap:55px; }
.footer-brand .brand-mark { background:#25465c; }
.footer-brand .brand-copy strong { color:white; }
.footer-brand p { font-size:14px; color:#a6becb; max-width:350px; margin:22px 0 0; }
.footer-col { display:flex; flex-direction:column; gap:8px; }
.footer-col strong { color:white; text-transform:uppercase; font-size:11px; letter-spacing:.14em; margin-bottom:9px; }
.footer-col a,.footer-col span { color:#b5c9d4; font-size:14px; }
.footer-col a:hover { color:#fff; }
.footer-bottom { border-top:1px solid #345060; margin-top:57px; padding-top:23px; display:flex; justify-content:space-between; gap:25px; font-size:12px; color:#819ead; }
.footer-bottom a { color:#b2cbd8; }
.footer-bottom { flex-wrap:wrap; row-gap:8px; }
.footer-bottom .credit { flex-basis:100%; }
.footer-bottom .credit a { text-decoration:underline; text-underline-offset:2px; }
@media(max-width:1080px){ .desktop-nav{gap:15px} .nav{gap:14px} .brand{min-width:245px} .hero-layout{grid-template-columns:1fr 1fr} .hero-copy{padding:75px 26px 70px 0} .hero-foot{margin-top:48px} .coastal .shell{gap:45px} .about .shell{gap:45px} }
@media(max-width:940px){ .desktop-nav,.nav>.header-cta{display:none} .menu-toggle{display:block} .mobile-nav.open{display:block} .util-link{display:none} }
@media(max-width:830px){ .shell{width:min(calc(100% - 42px),var(--max))} .desktop-nav,.nav>.header-cta{display:none} .menu-toggle{display:block} .mobile-nav.open{display:block} .nav{height:73px} .brand-mark{width:42px;height:42px} .topline .shell{padding:7px 0} .topline{font-size:10px} .hero-layout{grid-template-columns:1fr} .hero-copy{padding:70px 0 58px} .hero h1{max-width:700px} .hero-foot{margin-top:50px} .hero-visual{min-height:430px;margin-inline:-21px} .coast-art{width:100%;left:0} .proofbar .shell{flex-wrap:wrap;gap:8px} .proofbar .items{flex-wrap:wrap;gap:6px 12px} .section{padding:78px 0} .section-heading{display:block} .section-heading>p{max-width:600px;margin-top:18px} .service-grid{grid-template-columns:1fr 1fr} .coastal .shell,.about .shell{grid-template-columns:1fr;gap:45px} .coastal-map{max-height:450px;aspect-ratio:5/4} .audiences{grid-template-columns:1fr 1fr} .cta .shell{align-items:start} .cta-actions{min-width:190px} .footer-grid{flex-wrap:wrap} }
@media(max-width:680px){ .topline-tag{display:none} .topline .shell{justify-content:center} }
@media(max-width:600px){ .topline a{font-size:12px} .stats{gap:14px} .stat b{font-size:36px} .proofbar .shell{display:block} .proofbar .items{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;margin-top:8px} .proofbar .dot{display:none}.brand-copy strong{font-size:15px} .brand{min-width:unset} .hero h1{font-size:53px} .hero-copy{padding-top:65px} .hero-lede{font-size:15px} .hero-actions .btn{width:100%} .hero-foot{margin-top:39px;gap:15px} .hero-visual{min-height:360px} .visual-caption{left:20px;right:20px;bottom:20px;width:calc(100% - 40px);padding:16px 17px} .visual-caption strong{font-size:18px} .section{padding:70px 0} .section-heading{margin-bottom:33px} .service-grid,.audiences,.steps{grid-template-columns:1fr} .service-card{min-height:205px} .service-top{margin-bottom:22px} .coastal .features{gap:13px} .coastal-map{aspect-ratio:4/4.3;max-height:none} .about .shell{gap:39px} .portrait-wrap{min-height:440px} .credential-list{grid-template-columns:1fr} .step h3{margin-top:16px} .step{padding-bottom:8px} .cta{padding:72px 0} .cta .shell{display:block} .cta-actions{margin-top:29px} .footer-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px 25px} .footer-brand{grid-column:1/-1} .footer-bottom{display:block} .footer-bottom > span{display:block;margin-bottom:8px} }
@media(max-width:380px){ .topline a{font-size:10.5px;letter-spacing:.03em;white-space:nowrap} }
@media(max-width:350px){ .brand-copy strong{font-size:13px;white-space:nowrap} .brand-copy small{font-size:9px;letter-spacing:.16em} }
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto} *{transition:none !important}}

/* =========================================================
   Inner pages (quote, thank-you)
   ========================================================= */
.hidden { display:none !important; }
.visually-hidden { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }

.page-hero { background:var(--ivory); border-bottom:1px solid #e7edef; padding:84px 0 64px; }
.page-hero .eyebrow { display:flex; align-items:center; gap:14px; }
.page-hero .eyebrow::before { content:''; width:31px; height:1px; background:var(--gold); }
.page-hero h1 { margin:22px 0 16px; font-size:clamp(44px,4.6vw,68px); }
.page-hero .lede { font-size:17px; line-height:1.7; max-width:610px; margin:0; color:#49616f; }
.page-hero .actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:34px; }

.quote-body { background:#fff; padding:64px 0 104px; }
.quote-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:48px; align-items:start; }
.form-card { border:1px solid var(--stroke); background:#fff; padding:40px; }
.form-card-head { border-bottom:1px solid var(--stroke); padding-bottom:20px; margin-bottom:28px; }
.form-card-head h2 { font-size:32px; margin:0 0 6px; }
.form-card-head p { margin:0; font-size:14px; }

.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px 20px; }
.form-group label { display:block; margin-bottom:7px; font-size:14px; font-weight:750; color:var(--ink); }
.form-group input, .form-group select, .form-group textarea {
  width:100%; min-height:50px; padding:12px 14px; border:1px solid #c3d0d7; border-radius:3px;
  background:#fff; color:var(--ink); font:inherit; font-size:16px; line-height:1.4;
  transition:border-color .16s, box-shadow .16s;
}
.form-group textarea { min-height:130px; resize:vertical; }
.form-group select {
  appearance:none; -webkit-appearance:none; padding-right:42px; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23567185' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; background-size:16px;
}
.form-group input::placeholder, .form-group textarea::placeholder { color:#8597a2; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline:none; border-color:var(--navy); box-shadow:0 0 0 3px rgba(152,190,214,.45);
}
.form-group input[aria-invalid="true"], .form-group select[aria-invalid="true"], .form-group textarea[aria-invalid="true"] {
  border-color:#b42318; box-shadow:0 0 0 3px rgba(180,35,24,.12);
}
.form-hint { margin:7px 0 0; font-size:13px; line-height:1.5; color:#5d7482; }
.field-error { display:block; flex-basis:100%; margin-top:6px; font-size:13px; font-weight:700; color:#b42318; }
.field-error:empty { display:none; }
.form-error {
  display:none; margin:0 0 24px; padding:13px 16px; border:1px solid #f1c3bd; border-left:3px solid #b42318;
  background:#fdf1ef; color:#8a1c12; font-size:14px; font-weight:600;
}
.form-error a { color:inherit; text-decoration:underline; }

.consent-group { display:flex; align-items:flex-start; gap:11px; }
.consent-group input[type="checkbox"] {
  width:20px; height:20px; min-height:0; flex:none; margin:2px 0 0; padding:0; accent-color:var(--navy); cursor:pointer;
}
.consent-group label { font-size:15px; line-height:1.45; cursor:pointer; }
.form-actions { margin-top:30px; padding-top:26px; border-top:1px solid var(--stroke); display:flex; flex-direction:column; align-items:flex-start; gap:18px; }
.consent-group label { min-width:0; }
.form-actions .field-error { margin-top:0; }
.btn[disabled] { opacity:.65; cursor:progress; transform:none; }

.address-autocomplete { position:relative; }
.address-suggestions {
  position:absolute; top:calc(100% + 6px); left:0; right:0; z-index:60; margin:0; padding:6px; list-style:none;
  background:#fff; border:1px solid var(--stroke); border-radius:3px; box-shadow:0 18px 40px rgba(7,30,47,.16);
  max-height:min(288px,45vh); overflow-y:auto;
}
.address-suggestions li[role="option"] { padding:10px 12px; border-radius:2px; cursor:pointer; line-height:1.35; }
.address-suggestions li[role="option"]:hover, .address-suggestions li[aria-selected="true"] { background:var(--pale); }
.address-suggestions .as-main { display:block; font-weight:700; color:var(--ink); font-size:15px; }
.address-suggestions .as-sub { display:block; font-size:13px; color:#5d7482; }
.address-suggestions li.as-note { padding:10px 12px; color:#5d7482; font-size:14px; cursor:default; }

.quote-aside { position:sticky; top:112px; display:grid; gap:16px; }
.aside-card { background:var(--ivory); padding:28px; border-top:3px solid var(--navy); }
.aside-card h3 { font-family:var(--serif); font-weight:400; font-size:23px; letter-spacing:-.02em; margin:0 0 10px; }
.aside-card p { font-size:14px; margin:0; }
.aside-phone { display:block; margin:2px 0 8px; font-family:var(--serif); font-size:28px; letter-spacing:-.02em; color:var(--navy); }
.aside-phone:hover { color:#27475f; }
.aside-steps { list-style:none; margin:6px 0 0; padding:0; }
.aside-steps li { display:grid; grid-template-columns:30px 1fr; gap:4px; padding:12px 0; border-top:1px solid #dfe5e6; font-size:14px; line-height:1.5; color:var(--body); }
.aside-steps li:first-child { border-top:0; }
.aside-steps b { font-family:var(--serif); font-weight:400; font-size:18px; color:#6f8c9e; line-height:1.2; }

@media(max-width:980px){ .quote-layout{grid-template-columns:1fr} .quote-aside{position:static; grid-template-columns:1fr 1fr} }
@media(max-width:600px){
  .page-hero{padding:52px 0 40px} .page-hero h1{font-size:44px} .page-hero .lede{font-size:16px} .page-hero .actions .btn{width:100%}
  .quote-body{padding:28px 0 64px} .form-card{padding:26px 20px} .form-card-head h2{font-size:27px}
  .form-grid{grid-template-columns:1fr; gap:20px} .form-actions .btn{width:100%} .quote-aside{grid-template-columns:1fr}
}

/* Client portal (login, reset password) */
.auth-body { background:#fff; padding:56px 0 104px; }
.auth-card { max-width:540px; margin:0 auto; }
.form-grid.single { grid-template-columns:1fr; }
.label-row { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:7px; }
.label-row label { margin-bottom:0; }
.auth-link { font-size:14px; font-weight:700; color:var(--navy-2); text-decoration:underline; text-decoration-color:#b6c6ce; text-underline-offset:3px; }
.auth-link:hover { color:var(--navy); text-decoration-color:currentColor; }
.form-actions.row { flex-direction:row; flex-wrap:wrap; align-items:center; gap:12px; }
.auth-card .form-error, .form-success { margin:22px 0 0; }
.form-success {
  display:none; padding:13px 16px; border:1px solid #b7dcc8; border-left:3px solid #1e7a4f;
  background:#eef8f2; color:#155c3b; font-size:14px; font-weight:600;
}
.auth-help { max-width:540px; margin:22px auto 0; text-align:center; font-size:14px; }
.auth-help a { color:var(--navy); font-weight:700; }
@media(max-width:600px){ .auth-body{padding:28px 0 64px} .form-actions.row .btn{width:100%} }

/* Long-form text pages (terms and conditions). */
.legal-body { background:#fff; padding:56px 0 104px; }
.legal { max-width:780px; }
.legal h2 { font-size:26px; line-height:1.25; letter-spacing:-.02em; margin:38px 0 12px; }
.legal h2:first-child { margin-top:0; }
.legal p, .legal li { font-size:16px; line-height:1.7; color:var(--body); }
.legal p { margin:0 0 14px; }
.legal ul { margin:0 0 14px; padding-left:22px; }
.legal li { margin-bottom:8px; }
.legal a { color:var(--navy); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.terms-accept { margin:26px 0 22px; padding:14px 16px; border:1px solid var(--stroke); background:var(--ivory); }
.terms-accept[hidden] { display:none; }
.terms-accept label { margin:0; font-size:15px; font-weight:600; line-height:1.5; color:var(--ink); cursor:pointer; }
.terms-accept a { color:var(--navy); font-weight:750; text-decoration:underline; text-underline-offset:3px; }
@media(max-width:600px){ .legal-body{padding:36px 0 64px} .legal h2{font-size:23px} }

/* The terms shown in a dialog (terms-modal.js) on the set-password page and the portal. */
.terms-modal { width:min(820px,calc(100% - 32px)); max-height:86vh; padding:0; border:0; border-top:3px solid var(--navy); background:#fff; color:var(--ink); box-shadow:0 24px 60px rgba(11,36,53,.28); }
.terms-modal[open] { display:flex; flex-direction:column; }
.terms-modal::backdrop { background:rgba(11,36,53,.55); }
.terms-modal-head { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:22px 28px 18px; border-bottom:1px solid var(--stroke); }
.terms-modal-head h2 { font-size:26px; line-height:1.2; letter-spacing:-.02em; margin:0; }
.terms-modal-close { flex-shrink:0; background:transparent; border:0; padding:2px 10px; font-size:30px; line-height:1; color:var(--slate); cursor:pointer; }
.terms-modal-close:hover { color:var(--ink); }
.terms-modal-body { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:22px 28px 8px; }
.terms-modal-body:focus-visible { outline:3px solid #98bed6; outline-offset:-3px; }
.terms-modal-body .legal { max-width:none; }
.terms-modal-body .legal h2 { font-size:21px; margin:28px 0 10px; }
.terms-modal-body .legal h2:first-child { margin-top:0; }
.terms-modal-body .legal p, .terms-modal-body .legal li { font-size:15px; line-height:1.65; }
.terms-modal-version, .terms-modal-status { margin:0 0 18px; font-size:13px; color:var(--slate); }
.terms-modal-foot { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 28px; border-top:1px solid var(--stroke); }
.terms-modal-foot .btn { min-height:46px; }
.terms-modal-progress { margin:0; font-size:14px; font-weight:600; color:var(--slate); }
.terms-modal-progress.is-done { color:#22543d; }
.terms-modal-status a { color:var(--navy); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
/* The acceptance box is locked until the terms have been scrolled to the end. */
.terms-accept input:disabled { cursor:not-allowed; opacity:.55; }
.terms-accept input:disabled + label { color:var(--slate); cursor:default; }
.terms-hint { margin:-12px 0 22px; font-size:14px; line-height:1.5; color:var(--body); }
.terms-hint a { color:var(--navy); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.terms-hint.is-done { color:#22543d; font-weight:600; }
.portal-state .terms-hint { margin:-10px 0 0; }
@media(max-width:600px){
  .terms-modal { width:calc(100% - 20px); max-height:92vh; }
  .terms-modal-head, .terms-modal-body, .terms-modal-foot { padding-left:18px; padding-right:18px; }
  .terms-modal-head h2 { font-size:21px; }
}
