/* Request a Cover Quote form (covers.html). Page-specific; loaded after styles.css. */
.cq-card { max-width: 880px; padding: 0; overflow: hidden; }
.cq-head { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); color: #fff; padding: 1.6rem 1.85rem 1.4rem; }
.cq-head h2 { color: #fff; margin: 0 0 .35rem; font-size: clamp(1.45rem, 3.2vw, 1.9rem); letter-spacing: -.02em; }
.cq-head p { margin: 0; color: #cbd5e1; font-size: .98rem; }
.cq-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; padding: 0; list-style: none; }
.cq-badges li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: .3rem .75rem; font-size: .8rem; font-weight: 600; color: #fff; }
.cq-body { padding: 1.6rem 1.85rem 1.85rem; }
.cq-step { border: 0; margin: 0 0 1.6rem; padding: 0 0 1.6rem; border-bottom: 1px solid var(--border); min-width: 0; }
.cq-step:last-of-type { border-bottom: 0; }
.cq-step legend { display: flex; align-items: center; gap: .6rem; font-size: 1.08rem; font-weight: 750; color: var(--ink); margin-bottom: .9rem; padding: 0; }
.cq-num { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--navy); color: #fff; font-size: .85rem; font-weight: 700; flex: none; }
.cq-hint { font-size: .85rem; color: var(--muted); margin: -.45rem 0 .9rem; }
.cq-req { color: var(--red); font-weight: 700; }
.cq-field { margin-bottom: 1rem; }
.cq-field:last-child { margin-bottom: 0; }
select.error { border-color: var(--red); }

/* Visually hidden but focusable radios/checkboxes */
.cq-sr { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }

/* Shape tiles */
.cq-shapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
@media (min-width: 720px) { .cq-shapes { grid-template-columns: repeat(6, 1fr); } }
.cq-tile { position: relative; display: block; margin: 0; font-weight: 600; cursor: pointer; }
.cq-tile-box { display: flex; flex-direction: column; align-items: center; gap: .4rem; height: 100%; padding: .8rem .4rem .7rem; border: 2px solid var(--border); border-radius: 14px; background: #fff; text-align: center; font-size: .8rem; line-height: 1.2; color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s; }
.cq-tile svg { width: 52px; height: 52px; stroke: var(--navy); fill: rgba(10,31,68,.05); stroke-width: 3; }
.cq-tile:hover .cq-tile-box { border-color: #b8c3d6; }
.cq-tile input:checked + .cq-tile-box { border-color: var(--red); background: #fff5f5; box-shadow: 0 0 0 3px rgba(225,29,46,.12); }
.cq-tile input:checked + .cq-tile-box svg { stroke: var(--red); fill: rgba(225,29,46,.08); }
.cq-tile input:focus-visible + .cq-tile-box { outline: 3px solid var(--navy); outline-offset: 2px; }

/* Size */
.cq-size { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .cq-size { grid-template-columns: repeat(3, 1fr); } }
.cq-inch { position: relative; }
.cq-inch input { padding-right: 2.6rem; }
.cq-inch::after { content: "in"; position: absolute; right: .95rem; top: 50%; transform: translateY(-50%); color: var(--grey); font-size: .85rem; pointer-events: none; }
.cq-check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 600; font-size: .92rem; cursor: pointer; margin: 0; }
.cq-check input { width: 1.15rem; height: 1.15rem; margin: .12rem 0 0; flex: none; accent-color: var(--red); padding: 0; }
.cq-measure { margin-top: 1rem; padding: .85rem 1rem; border: 1px dashed #b8c3d6; border-radius: 12px; background: var(--bg-soft); }
.cq-measure small { display: block; font-weight: 400; color: var(--muted); margin-top: .15rem; }
.cq-tip { margin-top: 1rem; font-size: .85rem; color: var(--muted); background: #f4f8fc; border-radius: 12px; padding: .75rem 1rem; }
.cq-tip strong { color: var(--ink); }

/* Pills (thickness, extras) */
.cq-pills { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .cq-pills { grid-template-columns: repeat(4, 1fr); } }
.cq-pill { position: relative; margin: 0; cursor: pointer; font-weight: 600; }
.cq-pill-box { display: flex; flex-direction: column; justify-content: center; height: 100%; padding: .75rem .9rem; border: 2px solid var(--border); border-radius: 12px; font-size: .92rem; color: var(--ink); background: #fff; transition: border-color .15s, background .15s; }
.cq-pill-box small { font-weight: 400; color: var(--muted); font-size: .78rem; margin-top: .15rem; }
.cq-pill:hover .cq-pill-box { border-color: #b8c3d6; }
.cq-pill input:checked + .cq-pill-box { border-color: var(--red); background: #fff5f5; }
.cq-pill input:focus-visible + .cq-pill-box { outline: 3px solid var(--navy); outline-offset: 2px; }
.cq-extras .cq-pill-box { flex-direction: row; align-items: center; justify-content: flex-start; gap: .6rem; }
.cq-box { width: 1.15rem; height: 1.15rem; border: 2px solid #9aa6b8; border-radius: 5px; flex: none; display: grid; place-items: center; background: #fff; }
.cq-pill input:checked + .cq-pill-box .cq-box { background: var(--red); border-color: var(--red); }
.cq-pill input:checked + .cq-pill-box .cq-box::after { content: ""; width: .32rem; height: .62rem; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }

/* Color swatches */
.cq-colors { display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem .4rem; }
.cq-swatch { position: relative; margin: 0; cursor: pointer; text-align: center; font-weight: 600; font-size: .76rem; line-height: 1.2; color: var(--ink); }
.cq-dot { display: block; width: 48px; height: 48px; margin: 0 auto .4rem; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(10,31,68,.18), 0 3px 8px rgba(10,31,68,.15); transition: box-shadow .15s, transform .15s; position: relative; }
.cq-swatch:hover .cq-dot { transform: scale(1.06); }
.cq-swatch input:checked + .cq-dot { box-shadow: 0 0 0 3px var(--red), 0 3px 8px rgba(10,31,68,.2); }
.cq-swatch input:checked + .cq-dot::after { content: ""; position: absolute; left: 50%; top: 45%; width: .45rem; height: .85rem; border: solid #fff; border-width: 0 3px 3px 0; transform: translate(-50%, -50%) rotate(45deg); filter: drop-shadow(0 0 1px rgba(0,0,0,.6)); }
.cq-swatch input:focus-visible + .cq-dot { outline: 3px solid var(--navy); outline-offset: 3px; }
.cq-dot.cq-unknown { background: conic-gradient(#5b2a1e, #8c9197, #1f2f55, #2f4a36, #c9b28a, #6d1f2c, #5b2a1e); }
.cq-dot.cq-unknown::before { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.1rem; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.cq-swatch input:checked + .cq-dot.cq-unknown::before { content: ""; }
.cq-color-note { font-size: .82rem; color: var(--muted); margin-top: .8rem; }

/* Submit area */
.cq-submit { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px; padding: 1.15rem 1.2rem; }
.cq-promise { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .35rem; grid-template-columns: 1fr; font-size: .92rem; color: var(--ink); font-weight: 600; }
@media (min-width: 600px) { .cq-promise { grid-template-columns: 1fr 1fr; } }
.cq-promise li { position: relative; padding-left: 1.5rem; }
.cq-promise li::before { content: ""; position: absolute; left: .2rem; top: .28rem; width: .38rem; height: .72rem; border: solid var(--success); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.cq-error-box { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.cq-photo { display: flex; gap: .75rem; align-items: center; padding: .8rem 1rem; border-radius: 12px; background: #f4f8fc; font-size: .92rem; margin-bottom: 1rem; }
.cq-photo svg { width: 28px; height: 28px; flex: none; stroke: var(--navy); fill: none; stroke-width: 2; }

@media (max-width: 599px) {
  .cq-head, .cq-body { padding-left: 1.15rem; padding-right: 1.15rem; }
  .cq-colors { grid-template-columns: repeat(4, 1fr); }
  .cq-dot { width: 44px; height: 44px; }
}

/* Cover color live preview */
.cq-preview { margin: 0 0 1.1rem; max-width: 640px; }
.cq-preview-frame { position: relative; aspect-ratio: 1200 / 676; border-radius: 12px; overflow: hidden; background: #e9e4df; box-shadow: 0 0 0 1px rgba(10,31,68,.12), 0 6px 18px rgba(10,31,68,.12); }
.cq-preview-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .45s ease; }
.cq-preview-img.is-on { opacity: 1; }
.cq-preview-cap { margin-top: .5rem; font-size: .86rem; color: var(--grey, #555); line-height: 1.35; }
.cq-preview-cap strong { color: var(--ink, #0a1f44); }
@media (prefers-reduced-motion: reduce) { .cq-preview-img { transition: none; } }

/* VERCEL PATCH colorscheme: always the light design, even in phone dark mode */
:root,html{color-scheme:only light}
html{background-color:#fff}
@media (prefers-color-scheme: dark){:root,html{color-scheme:only light}html{background-color:#fff}body{background-color:var(--bg);color:var(--ink)}}
