/* ComSurv — questionnaire + sticky bar (vanilla)
   Font + colours mirror the site design. All layout here is scoped to
   .cs-qf (quote form) and .cs-bar (cookie / CTA bar). */

.cs-qf, .cs-bar { font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif; box-sizing: border-box; }
.cs-qf *, .cs-bar * { box-sizing: border-box; }

/* ---------------- Quote form ---------------- */
.cs-qf {
  background: #fff; border: 1px solid #E6E1D6; border-radius: 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 26px 50px -30px rgba(20,18,12,.35);
  padding: 26px 26px 22px; width: 100%; color: #211E18;
}
.cs-qf-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.cs-qf-dot { width: 7px; height: 7px; border-radius: 50%; background: #D6982F; display: inline-block; }
.cs-qf-eyebrow span { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: #8A8377; }

.cs-qf-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cs-qf-steplabel { font-size: 13px; font-weight: 600; color: #6B6459; }
.cs-qf-prog { display: flex; gap: 5px; flex: 1; max-width: 160px; }
.cs-qf-seg { flex: 1; height: 4px; border-radius: 99px; background: #E8E3D8; transition: background .2s; }
.cs-qf-seg.is-on { background: #D6982F; }

.cs-qf-q { font-size: 23px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; text-wrap: pretty; }
.cs-qf-help { font-size: 14px; line-height: 1.5; color: #6B6459; margin: 0 0 18px; }

.cs-qf-options { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.cs-qf-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  text-align: left; padding: 15px 17px; border-radius: 11px; cursor: pointer; font: inherit;
  border: 1.5px solid #E6E1D6; background: #fff; transition: border-color .12s, background .12s;
}
.cs-qf-opt:hover { border-color: #CFC8B8; background: #FBF9F4; }
.cs-qf-opt.is-sel { border-color: #D6982F; background: rgba(214,152,47,.09); }
.cs-qf-opt.is-sel:hover { background: rgba(214,152,47,.12); }
.cs-qf-opt-main { display: flex; flex-direction: column; gap: 2px; }
.cs-qf-opt-label { font-weight: 600; font-size: 15.5px; }
.cs-qf-opt-sub { font-size: 12.5px; font-weight: 500; color: #8A8377; }
.cs-qf-tick {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 700; color: transparent;
  border: 1.5px solid #DCD6C8; transition: all .12s;
}
.cs-qf-opt.is-sel .cs-qf-tick { background: #D6982F; border-color: #D6982F; color: #1A1712; }

.cs-qf-input, .cs-qf-field input {
  width: 100%; padding: 15px 16px; font: inherit; font-size: 16px; border: 1.5px solid #E0DACE;
  border-radius: 10px; outline: none; color: #211E18; background: #fff;
}
.cs-qf-field input { padding: 13px 15px; }
.cs-qf-input:focus, .cs-qf-field input:focus { border-color: #D6982F; box-shadow: 0 0 0 3px rgba(214,152,47,.14); }

.cs-qf-fields { display: flex; flex-direction: column; gap: 11px; margin-top: 6px; }
.cs-qf-field { display: flex; flex-direction: column; gap: 5px; }
.cs-qf-field > span { font-size: 12.5px; font-weight: 600; color: #6B6459; }

.cs-qf-review { display: flex; flex-direction: column; border: 1px solid #E6E1D6; border-radius: 12px; overflow: hidden; margin-top: 6px; }
.cs-qf-rrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; background: #FBF9F4; border-bottom: 1px solid #EFEAE0; }
.cs-qf-rrow:last-child { border-bottom: none; }
.cs-qf-rlab { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cs-qf-rlab small { font-size: 11.5px; color: #8A8377; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.cs-qf-rlab b { font-size: 15px; color: #211E18; font-weight: 600; }
.cs-qf-edit { flex-shrink: 0; background: none; border: none; font: inherit; font-size: 13px; font-weight: 700; color: #D6982F; cursor: pointer; padding: 6px 4px; }
.cs-qf-edit:hover { color: #C2851F; }

.cs-qf-error { font-size: 13px; font-weight: 600; color: #C0392B; margin: 12px 0 0; }

.cs-qf-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.cs-qf-back { background: none; border: none; font: inherit; font-size: 14px; font-weight: 600; color: #6B6459; cursor: pointer; padding: 8px 4px; }
.cs-qf-back:hover { color: #211E18; }
.cs-qf-next { border: none; border-radius: 11px; font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; padding: 15px 26px; flex: 1; color: #1A1712; background: #D6982F; transition: background .12s, opacity .12s; }
.cs-qf-next:hover { background: #C2851F; }
.cs-qf-next.is-disabled { opacity: .5; }
.cs-qf-next.is-disabled:hover { background: #D6982F; }

.cs-qf-secure { display: flex; align-items: center; gap: 7px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #F0ECE3; }
.cs-qf-secure span { font-size: 12px; color: #9A9384; }

.cs-qf-done { padding: 6px 0 4px; animation: cs-rise .4s ease both; }
.cs-qf-check { width: 52px; height: 52px; border-radius: 50%; background: #D6982F; color: #1A1712; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; margin-bottom: 18px; }
.cs-qf-done h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; }
.cs-qf-done p { font-size: 15px; line-height: 1.55; color: #6B6459; margin: 0 0 22px; text-wrap: pretty; }
.cs-qf-steps { display: flex; flex-direction: column; gap: 12px; }
.cs-qf-step { display: flex; gap: 12px; align-items: flex-start; }
.cs-qf-step small { font-family: 'Space Mono', monospace; font-size: 12px; color: #D6982F; font-weight: 700; margin-top: 1px; }
.cs-qf-step span { font-size: 14px; color: #3A352C; }
.cs-qf-reset { margin-top: 24px; background: none; border: 1.5px solid #E0DACE; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; color: #211E18; cursor: pointer; padding: 12px 18px; }
.cs-qf-reset:hover { border-color: #211E18; }

@keyframes cs-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------- Sticky bar ---------------- */
.cs-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99000;
  background: rgba(20,17,9,.97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(214,152,47,.28); animation: cs-up .42s cubic-bezier(.2,.7,.3,1) both;
}
.cs-bar-inner { max-width: 1200px; margin: 0 auto; padding: 15px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; justify-content: space-between; }
.cs-bar p { margin: 0; }
.cs-bar-cookie p { flex: 1 1 440px; min-width: 0; font-size: 13.5px; line-height: 1.5; color: #C9C2B5; }
.cs-bar-cookie a { color: #E8C485; text-decoration: underline; }
.cs-bar-cta-left { display: flex; align-items: center; gap: 13px; flex: 1 1 380px; min-width: 0; }
.cs-bar-cta-left p { font-size: 14.5px; line-height: 1.4; color: #EDE7DC; font-weight: 500; }
.cs-bar-cta-dot { width: 8px; height: 8px; border-radius: 50%; background: #D6982F; flex-shrink: 0; }
.cs-bar-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.cs-btn-gold { background: #D6982F; color: #1A1712; border: none; border-radius: 9px; padding: 11px 22px; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
.cs-btn-gold:hover { background: #C2851F; }
.cs-btn-ghost { background: rgba(255,255,255,.07); color: #EDE7DC; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; padding: 11px 18px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.cs-btn-ghost:hover { background: rgba(255,255,255,.13); }
.cs-bar-x { background: none; color: #9A9384; border: none; font-size: 22px; line-height: 1; cursor: pointer; padding: 6px 8px; }
.cs-bar-x:hover { color: #EDE7DC; }

@keyframes cs-up { from { transform: translateY(108%); } to { transform: translateY(0); } }

/* ---------------- Mobile navigation ---------------- */
.cs-nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; background: none; border: none; cursor: pointer; flex-shrink: 0; }
.cs-nav-toggle span { display: block; width: 24px; height: 2px; margin: 0 auto; background: #FAF8F3; border-radius: 2px; transition: transform .2s, opacity .2s; }
.cs-nav.is-open .cs-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cs-nav.is-open .cs-nav-toggle span:nth-child(2) { opacity: 0; }
.cs-nav.is-open .cs-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .cs-nav nav { position: relative; flex-wrap: nowrap !important; }
  .cs-nav-toggle { display: flex !important; }
  .cs-nav-links {
    display: none !important; position: absolute; top: 100%; left: 0; right: 0;
    background: #1A1712; flex-direction: column !important; align-items: stretch !important;
    gap: 2px !important; padding: 8px 24px 18px; border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 30px -16px rgba(0,0,0,.6);
  }
  .cs-nav.is-open .cs-nav-links { display: flex !important; }
  .cs-nav-links a { padding: 13px 2px !important; font-size: 15px !important; border-bottom: 1px solid rgba(255,255,255,.06); }
  .cs-nav-cta { margin-top: 10px; text-align: center; border-bottom: none !important; }
}

/* ---------------- Trust strip → marquee on mobile ---------------- */
@media (max-width: 760px) {
  .cs-trust { overflow: hidden !important; flex-wrap: nowrap !important; justify-content: flex-start !important; padding-left: 0 !important; padding-right: 0 !important; }
  .cs-trust-track { display: flex; flex-wrap: nowrap; width: max-content; gap: 0; align-items: center; animation: cs-marquee 20s linear infinite; }
  .cs-trust-track > * { flex: 0 0 auto !important; padding: 0 22px !important; border-right: 1px solid #E6E1D6; }
}
@keyframes cs-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- Quote form: focused modal / full-screen ---------------- */
body.cs-modal-open { overflow: hidden; }

.cs-modal {
  position: fixed; inset: 0; z-index: 99500;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(20,17,9,.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  animation: cs-modal-fade .2s ease both;
}
@keyframes cs-modal-fade { from { opacity: 0; } to { opacity: 1; } }

.cs-modal-panel {
  position: relative; display: flex; flex-direction: column;
  width: 100%; max-width: 520px; max-height: 92vh;
  background: #FAF8F3; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(20,18,12,.6);
  animation: cs-modal-rise .28s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes cs-modal-rise { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

.cs-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 14px 13px 20px; background: #1A1712; flex-shrink: 0;
}
.cs-modal-logo { height: 26px; width: auto; display: block; }
.cs-modal-x {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #EDE7DC; border: none;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .12s, color .12s;
}
.cs-modal-x:hover { background: rgba(255,255,255,.16); color: #fff; }

.cs-modal-trust { background: #fff; border-bottom: 1px solid #E6E1D6; flex-shrink: 0; overflow: hidden; }
.cs-modal-trust .cs-trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center;
  justify-content: center; padding: 12px 20px; max-width: none; margin: 0;
}

.cs-modal-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cs-modal-body .cs-qf {
  border: none; box-shadow: none; border-radius: 0;
  padding: 20px 22px; min-height: 100%;
  display: flex; flex-direction: column;
}
/* keep the continue CTA in view at the bottom of the modal */
.cs-modal-body .cs-qf-actions {
  position: sticky; bottom: 0; z-index: 1; margin-top: auto;
  background: #fff; padding: 14px 0 6px;
  box-shadow: 0 -10px 18px -12px rgba(20,18,12,.35);
}

.cs-qf-close {
  margin-top: 12px; width: 100%; background: #1A1712; color: #FAF8F3;
  border: none; border-radius: 10px; font: inherit; font-size: 14px;
  font-weight: 700; cursor: pointer; padding: 13px 18px;
}
.cs-qf-close:hover { background: #000; }

/* Desktop pop-up modal: drop the trust strip (kept as a marquee on the mobile sheet). */
@media (min-width: 601px) {
  .cs-modal-trust { display: none; }
}
/* Centre the reassurance eyebrow, and the thank-you check + heading, inside the modal. */
.cs-modal-body .cs-qf-eyebrow { justify-content: center; }
.cs-modal-body .cs-qf-check { margin-left: auto; margin-right: auto; }
.cs-modal-body .cs-qf-done h3 { text-align: center; }

/* Mobile: full-screen sheet */
@media (max-width: 600px) {
  .cs-modal { padding: 0; }
  .cs-modal-panel { max-width: none; max-height: none; width: 100%; height: 100%; border-radius: 0; }
}
