/* Insure USA, Inc. | quote request flow */

.qw-page { background: var(--paper); border-top: 1px solid var(--line); padding: 36px 0 80px; min-height: 70vh; }
.qw-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.qw-intro h1 { font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); font-weight: 600; color: var(--navy-900); }
.qw-intro p { color: var(--muted); margin-top: 4px; }
.qw-reset { background: none; border: 0; color: var(--navy-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 0; }
.qw-reset:hover { color: var(--red); }

.qw { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.qw-main { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.qw-progress { height: 6px; background: var(--navy-100); }
.qw-progress-bar { height: 100%; width: 4%; background: var(--red); transition: width .3s ease; }
.qw-count { display: block; font-size: .9rem; font-weight: 600; color: var(--muted); padding: 18px 32px 0; }
.qw-card { padding: 8px 32px 32px; }

.qw-title { font-size: clamp(1.55rem, 1.2rem + 1vw, 2.1rem); font-weight: 600; color: var(--navy-900); margin: 6px 0 6px; outline: none; }
.qw-sub { color: var(--body); margin-bottom: 4px; }
.qw-fields { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px 16px; margin-top: 22px; }
.qw-field { grid-column: 1 / -1; border: 0; min-width: 0; }
.qw-field.half { grid-column: span 3; }
.qw-field.third { grid-column: span 2; }
.qw-field .hint { display: inline; margin-left: 6px; font-weight: 400; color: var(--muted); font-size: .85rem; }
.qw-field legend.field-label { margin-bottom: 10px; }
@media (max-width: 640px) { .qw-field.half, .qw-field.third { grid-column: 1 / -1; } }

/* tiles */
.tiles { display: grid; gap: 10px; }
.tiles.cols-1 { grid-template-columns: 1fr; }
.tiles.cols-2 { grid-template-columns: repeat(2, 1fr); }
.tiles.cols-3 { grid-template-columns: repeat(3, 1fr); }
.tiles.cols-4 { grid-template-columns: repeat(4, 1fr); }
.tiles.cols-5 { grid-template-columns: repeat(5, 1fr); }
.tile {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px;
  min-height: 56px; padding: 12px 16px; text-align: left;
  background: var(--white); border: 1.5px solid #C3CAD6; border-radius: var(--r);
  cursor: pointer; transition: border-color .12s, background-color .12s, box-shadow .12s;
}
.tile:hover { border-color: var(--navy-700); }
.tile[aria-pressed="true"] { border-color: var(--navy-900); background: #EEF2F9; box-shadow: inset 0 0 0 1px var(--navy-900); }
.tile-l { font-weight: 700; color: var(--ink); line-height: 1.25; }
.tile-d { font-size: .88rem; color: var(--muted); line-height: 1.35; }
.tiles.cols-4 .tile, .tiles.cols-5 .tile { align-items: center; text-align: center; }
.check-tile { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
.check-tile .box { width: 20px; height: 20px; border: 1.5px solid #9AA3B5; border-radius: 4px; flex-shrink: 0; background: var(--white); position: relative; }
.check-tile[aria-pressed="true"] .box { background: var(--navy-900); border-color: var(--navy-900); }
.check-tile[aria-pressed="true"] .box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 760px) {
  .tiles.cols-3, .tiles.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .tiles.cols-4 { grid-template-columns: repeat(2, 1fr); }
  /* odd count in two columns: the last tile takes the full row instead of sitting alone */
  .tiles.cols-3 > .tile:last-child:nth-child(odd), .tiles.cols-5 > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .tiles.cols-2:not(.multi) .tile.has-desc { grid-column: 1 / -1; }
  .tiles.multi { grid-template-columns: 1fr; }
}

/* vehicles */
.vehicles { grid-column: 1 / -1; display: grid; gap: 14px; }
.vehicle { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 16px; }
.vehicle legend { font-weight: 800; color: var(--navy-900); padding: 0 6px; margin-left: -6px; }
.vehicle-row { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; gap: 12px; }
@media (max-width: 640px) { .vehicle-row { grid-template-columns: 1fr 1fr; } .vehicle-row > div:last-child { grid-column: 1 / -1; } }

/* zip */
.zip-field .zip-input { max-width: 220px; font-size: 1.15rem; letter-spacing: .06em; }
.zip-result { margin-top: 10px; min-height: 1.5em; font-size: .97rem; }
.zip-result.good strong { color: var(--green); }
.zip-result.good strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: middle; }
.zip-result.good span { color: var(--body); display: block; margin-top: 2px; }
.zip-result.bad { color: var(--red-700); font-weight: 600; }

/* nav + messages */
.qw-error { display: none; margin-top: 18px; padding: 12px 14px; border-radius: var(--r); background: #FBE7E9; color: var(--red-700); font-weight: 600; font-size: .95rem; }
.qw-error.show { display: block; }
.qw-legal { margin-top: 22px; font-size: .82rem; line-height: 1.5; color: var(--muted); }
.qw-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.qw-nav .qw-next { min-width: 170px; }

/* sidebar */
.qw-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.qw-tip { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.qw-tip h2 { font-family: var(--sans); font-size: .95rem; font-weight: 700; letter-spacing: 0; color: var(--ink); margin-bottom: 8px; }
.qw-tip p { font-size: .97rem; color: var(--ink); line-height: 1.55; }
.qw-agent { background: var(--navy-900); color: #D5DCEA; border-radius: var(--r); padding: 20px; }
.qw-agent h2 { font-family: var(--sans); font-weight: 700; letter-spacing: 0; color: var(--white); font-size: 1.08rem; margin-bottom: 6px; }
.qw-agent p { font-size: .93rem; margin-bottom: 14px; }
.qw-agent .open-status { font-size: .88rem; color: var(--white); margin-bottom: 12px; }
.qw-agent .btn { width: 100%; }
.qw-trust { font-size: .88rem; color: var(--muted); padding: 0 4px; line-height: 1.5; }
@media (max-width: 960px) {
  .qw { grid-template-columns: 1fr; }
  .qw-side { position: static; }
}
@media (max-width: 560px) {
  .qw-page { padding-top: 22px; }
  .qw-card { padding: 4px 18px 24px; }
  .qw-count { padding: 14px 18px 0; }
  .qw-nav .qw-next { min-width: 0; flex: 1; }
}

/* done */
.qw-done { outline: none; padding-top: 14px; }
.qw-done h2 { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 600; color: var(--navy-900); margin-bottom: 10px; }
.qw-done .lede { font-size: 1.08rem; margin-bottom: 22px; }
.qw-done h3 { font-size: 1.05rem; font-weight: 800; color: var(--navy-900); margin: 28px 0 12px; }
.done-steps { counter-reset: d; list-style: none; border-top: 1px solid var(--line); }
.done-steps li { counter-increment: d; position: relative; padding: 14px 0 14px 44px; border-bottom: 1px solid var(--line); }
.done-steps li::before { content: counter(d); position: absolute; left: 0; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy-900); color: #fff; font-weight: 800; font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.done-logos { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.done-logos a { display: flex; align-items: center; justify-content: center; height: 70px; padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.done-logos img { max-height: 34px; width: auto; max-width: 100%; object-fit: contain; }
.qw-done .small { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.done-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.done-list li { position: relative; padding: 7px 0 7px 22px; border-bottom: 1px solid var(--line); font-size: .97rem; }
.done-list li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 7px; height: 7px; background: var(--red); }
.done-call { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 32px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.done-call strong { display: block; color: var(--navy-900); font-size: 1.08rem; }
.done-call span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .done-logos { grid-template-columns: repeat(3, 1fr); } .done-cols { grid-template-columns: 1fr; gap: 0; } }
