/* ===== Step-by-step quote ===== */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.qw-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.qw-head p { color: var(--slate-500); margin: 6px 0 0; font-size: 14.5px; }
.qw-count { font-family: var(--mono); font-size: 12.5px; color: var(--slate-500); background: var(--slate-50); border: 1px solid var(--slate-100); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.qw-count b { color: var(--navy); }

.qw-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 26px 0 10px; padding: 0; }
.qw-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--slate-400); }
.qw-steps li i { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; border: 1.5px solid var(--slate-200); background: #fff; transition: all .25s; }
.qw-steps li.on { color: var(--navy-900); }
.qw-steps li.on i { border-color: var(--cb); background: var(--cb); color: #fff; box-shadow: 0 0 0 4px rgba(0,52,124,.12); }
.qw-steps li.done { color: var(--cb-600); cursor: pointer; }
.qw-steps li.done i { border-color: var(--cb); background: var(--cb-50); color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E7D67' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); background-size: 13px; background-position: center; background-repeat: no-repeat; }
.qw-bar { height: 4px; border-radius: 9px; background: var(--slate-100); overflow: hidden; margin-bottom: 30px; }
.qw-bar i { display: block; height: 100%; width: 25%; border-radius: 9px; background: linear-gradient(90deg, var(--teal), var(--navy)); transition: width .45s cubic-bezier(.2,.8,.2,1); }

.qw-step { border: 0; padding: 0; margin: 0; min-width: 0; animation: qwIn .35s ease; }
@keyframes qwIn { from { opacity: 0; transform: translateX(14px); } }
.qw-q { font-size: 22px; font-weight: 700; color: var(--navy-900); letter-spacing: -.02em; padding: 0; line-height: 1.3; }
.qw-hint { color: var(--slate-500); font-size: 14.5px; margin: 6px 0 22px; }

.qw-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qw-tiles.two { grid-template-columns: repeat(2, 1fr); max-width: 420px; }
.qw-tiles button { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--slate-200); background: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .15s, box-shadow .2s; }
.qw-tiles button:hover { border-color: var(--cb); transform: translateY(-1px); }
.qw-tiles button:focus-visible { outline: 2px solid var(--cb); outline-offset: 2px; }
.qw-tiles button b { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--slate-50); color: var(--cb); font-size: 13px; font-family: var(--mono); transition: all .2s; }
.qw-tiles button span { font-size: 14.5px; font-weight: 600; color: var(--navy-900); }
.qw-tiles button.on { border-color: var(--cb); background: #EEF4FF; box-shadow: 0 8px 20px -12px rgba(0,52,124,.5); }
.qw-tiles button.on b { background: var(--cb); color: #fff; }
.qw-field.invalid .qw-tiles button { border-color: rgba(220,38,38,.45); }

.qw-dot { margin-top: 22px; max-width: 360px; }
.qw-dot label small { font-weight: 500; color: var(--slate-400); }
.qw-tip { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--teal-600); }
.qw-tip svg.i { width: 14px; height: 14px; }
.qw-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy-900); margin-bottom: 9px; }
.qw-label em { color: #DC2626; font-style: normal; margin-left: 2px; }
.qw-link { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 22px; font-size: 13.5px; font-weight: 600; color: var(--cb); }
.qw-link svg.i { width: 14px; height: 14px; }
.qw-link:hover { color: var(--cb-600); }

.qw-review { margin: 0 0 18px; border: 1px solid var(--slate-100); border-radius: 16px; overflow: hidden; }
.qw-review > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--slate-100); align-items: center; }
.qw-review > div:first-child { border-top: 0; }
.qw-review dt { font-size: 12.5px; font-weight: 600; color: var(--slate-500); text-transform: uppercase; letter-spacing: .06em; }
.qw-review dd { margin: 0; display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14.5px; color: var(--navy-900); font-weight: 500; min-width: 0; }
.qw-review dd span { overflow-wrap: anywhere; }
.qw-edit { flex: none; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--teal-600); cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.qw-edit:hover { background: var(--teal-50); }
/* Consent: always visible below every step, required only when sending */
.qw-consent { display: grid; gap: 0; margin: 24px 0 4px; padding: 14px 16px 10px; border-radius: 16px; background: var(--slate-25, #F8FAFC); border: 1px solid var(--slate-100); }
.qw-consent-t { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-400); margin: 0 0 4px 14px; }
.qw-consent .check { font-size: 12.5px; line-height: 1.5; padding: 8px 14px; }

.qw-nav { border-top: 1px solid var(--slate-100); padding-top: 22px; }
.qw-nav small { margin-right: auto; }
.qw-nav [data-qw-back] { order: -1; }
.qw-nav [data-qw-back]:not([hidden]) + small { margin-left: 8px; }
.qw-flip { transform: rotate(180deg); }

@media (max-width: 1080px) {
  .qw-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .qw-steps li span { display: none; }
  .qw-steps { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .qw-q { font-size: 19px; }
  .qw-tiles button { padding: 12px; }
  .qw-review > div { grid-template-columns: 1fr; gap: 4px; }
  .qw-nav small { order: 3; width: 100%; justify-content: center; margin: 0; }
  .qw-nav .btn { flex: 1; }
  .form-foot.qw-nav .btn { width: auto; }
}

/* Wizard footer: Back (left) and the main action (right) share one row; the privacy note sits on its own line below */
.form-foot.qw-nav { flex-wrap: wrap; row-gap: 14px; }
.form-foot.qw-nav [data-qw-next], .form-foot.qw-nav [data-qw-submit] { margin-left: auto; }
.form-foot.qw-nav small { order: 3; flex-basis: 100%; justify-content: center; }
@media (max-width: 640px) {
  .form-foot.qw-nav { gap: 10px; }
  .form-foot.qw-nav .btn { flex: 1 1 auto; min-width: 0; padding: 0 14px; font-size: 13px; letter-spacing: .03em; white-space: nowrap; }
  .form-foot.qw-nav [data-qw-back] { flex: 0 0 auto; }
}
/* Tiles shrink on very narrow phones (320px) instead of pushing the page sideways */
.qw-tiles > button { min-width: 0; }
.qw-tiles button span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 360px) { .qw-tiles button { gap: 8px; padding: 10px; } .qw-tiles button b { width: 32px; height: 32px; } }

/* Quote request sending: honeypot (off-screen) and the send error */
.qwiz .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qw-send-err { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: #FEF2F2; border: 1px solid #FECACA; color: #B42318; font-size: 14px; font-weight: 600; }
.qwiz [data-qw-submit][aria-busy="true"] { opacity: .75; cursor: progress; }
