/* Two-step quote flow (preview): worksheets stay primary; quick contact is the fallback. */
#quote.h-section{scroll-margin-top:92px}
#quote-worksheets{scroll-margin-top:92px}
#quote .h-quote-grid{display:block;max-width:920px}
#quote .h-quote-intro h2{margin-bottom:.4rem}
#quote .h-quote-intro .h-sublead{font-size:1.08rem;color:#334155;margin:0 0 22px;max-width:40rem}

.h-ws-cards{display:grid;grid-template-columns:1fr;gap:18px;margin:8px 0 16px;max-width:720px}
.h-ws-block{background:#fff;border:1px solid #E2E8F0;border-radius:12px;padding:18px 18px 16px;box-shadow:0 8px 22px rgba(10,26,51,.06);display:flex;flex-direction:column;gap:10px}
.h-ws-block .btn-ws{margin:0}
.h-ws-benefits{margin:0;padding:0 0 0 1.15rem;color:#334155;font-size:.95rem;line-height:1.45}
.h-ws-benefits li{margin:0 0 4px}
.h-ws-desc{margin:0;color:#5B6773;font-size:.9rem}
#quote .h-quote-next{margin:0 0 28px}

/* Secondary fallback: visually lower and smaller than the worksheet cards */
.h-quick-fallback{margin:8px 0 0;padding:20px 22px 22px;background:#F7F9FC;border:1px solid #E2E8F0;border-radius:12px;max-width:720px}
.h-quick-fallback h3{margin:0 0 6px;font-size:1.15rem;color:var(--navy);font-weight:700}
.h-quick-fallback h3::after{display:none!important}
.h-quick-leadin{margin:0 0 14px;color:#334155;font-size:.95rem}
#home-quote-form.form-quick{display:grid;gap:12px;background:transparent;border:0;box-shadow:none;padding:0}
#home-quote-form.form-quick .q-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#home-quote-form.form-quick .q-lines{display:flex;flex-wrap:wrap;gap:8px 10px}
#home-quote-form.form-quick .q-line{display:flex;align-items:center;gap:8px;font-weight:600;color:var(--navy);background:#fff;border:1px solid #D5DEE8;border-radius:8px;padding:8px 10px;cursor:pointer;font-size:.92rem}
#home-quote-form.form-quick .q-line:has(input:checked){border-color:var(--navy);background:#EEF2F7}
#home-quote-form.form-quick .q-line input{margin:0;accent-color:var(--navy)}
#home-quote-form.form-quick .q-legend{font-weight:700;color:var(--navy);margin:2px 0 0}
#home-quote-form.form-quick .btn-quick{justify-self:start;background:#fff;color:var(--navy)!important;border:2px solid var(--navy);box-shadow:none;font-size:1rem;padding:12px 20px;min-height:0;width:auto}
#home-quote-form.form-quick .btn-quick:hover{background:var(--navy);color:#fff!important}
#home-quote-form.form-quick .q-status{margin:0;font-size:.92rem;color:#1B6B36}
#home-quote-form.form-quick .q-status.err{color:#9B1C1C}
#home-quote-form.form-quick .privacy-note,#home-quote-form.form-quick .muted.small{margin:0}

/* Thank-you: push the worksheet hard after a quick-contact lead */
.ty-worksheet-push{background:#fff;border:1px solid #E2E8F0;border-left:5px solid var(--red,#C8102E);border-radius:12px;padding:22px 22px 18px;margin:0 0 18px;box-shadow:0 8px 22px rgba(10,26,51,.06)}
.ty-worksheet-push h2{margin:0 0 8px;font-size:1.45rem}
.ty-worksheet-push .ty-push-lead{margin:0 0 14px;font-size:1.05rem;color:#334155}
.ty-ws-actions{display:flex;flex-direction:column;gap:12px;align-items:stretch;max-width:540px}
.ty-ws-actions .btn{text-align:center;width:100%}
.ty-just-call{margin:14px 0 0;font-size:.95rem}
.ty-just-call a{color:#5B6773;font-weight:600;text-decoration:underline}

/* Worksheet: skip hints + partial send */
.skip-hint{display:block;font-weight:500;font-size:.8rem;color:#5B6773;margin:2px 0 0}
.ws-partial-btn{background:#fff;color:var(--navy)!important;border:2px solid var(--navy);margin-left:10px}
.ws-partial-btn:hover{background:var(--navy);color:#fff!important}
.ws-submit-bar .ws-submit-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center}
.wsc-save-note .wsc-startover{margin-left:6px}

@media(max-width:800px){
  .h-ws-cards{grid-template-columns:1fr}
  #home-quote-form.form-quick .q-row{grid-template-columns:1fr}
  .ws-partial-btn{margin-left:0;width:100%}
}
@media(max-width:560px){
  .h-quick-fallback{padding:16px 14px 18px}
  #quote .h-quote-intro .h-sublead{font-size:1rem}
  body.home main .h-section .btn-ws{font-size:1rem;padding:14px 14px;white-space:normal;line-height:1.3}
  .ty-worksheet-push{padding:18px 16px}
}

/* Thank-you page does not load styles-polish, so style the primary worksheet buttons here */
body.thanks-page .btn-ws, .ty-ws-actions .btn-ws{
  background:#0A1A33;border:2px solid #0A1A33;color:#fff!important;font-size:1.08rem;font-weight:700;
  padding:16px 22px;min-height:56px;width:100%;box-shadow:0 6px 18px rgba(10,26,51,.25);
  letter-spacing:0;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;
  text-align:center;box-sizing:border-box;white-space:normal;line-height:1.3;border-radius:8px
}
body.thanks-page .btn-ws:hover, .ty-ws-actions .btn-ws:hover{background:#050D1C;border-color:#050D1C;color:#fff!important}

/* Keep hidden thank-you buttons actually hidden (display rules above would override [hidden]) */
.ty-ws-actions .btn-ws[hidden], #ty-ws-push[hidden]{display:none!important}

/* Don't let the worksheet step chips or the thanks header widen the page on phones */
.biz-progress{max-width:100%;box-sizing:border-box;overflow:hidden}
.biz-steps{min-width:0;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
.biz-steps li{flex:0 0 auto}
@media(max-width:560px){
  .biz-progress{margin-left:0!important;margin-right:0!important;border-radius:10px}
  body.thanks-page .site-header .nav{padding:8px 12px;gap:8px;flex-wrap:nowrap}
  body.thanks-page .site-header .logo{max-width:128px;height:auto}
  body.thanks-page .site-header .nav>a[href="about.html"]{margin-right:8px!important;flex:0 0 auto}
  body.thanks-page .site-header .btn-sm{padding:6px 8px;font-size:.8rem}
}

/* Keep the sticky mobile bar from covering the quote form */
@media(max-width:800px){
  body.home{padding-bottom:84px}
}

/* Native file inputs can be wider than the screen on phones */
input[type=file]{display:block;max-width:100%;width:100%;min-width:0;box-sizing:border-box}

/* Quiet home link in the thank-you hero so it does not compete with the worksheet button */
.thanks-hero .ty-home-link{margin:14px 0 0}
.thanks-hero .ty-home-link a{color:#fff;font-weight:600;text-decoration:underline;font-size:.95rem;opacity:.9}
.thanks-hero .ty-home-link a:hover{opacity:1}
