/* Get a quote / contact page. Shared tokens and components live in site.css */

/* ---------- Compact hero ---------- */
.cq-hero { min-height: 56svh; }
.cq-hero .phero__inner { padding-block: clamp(40px, 7vh, 80px) clamp(36px, 5.5vh, 64px); }
.cq-hero .phero__img { overflow: clip; }
.cq-hero .phero__img img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; object-position: 60% 50%; }
.cq-hero .phero__title { margin-bottom: 18px; }
.cq-hero .phero__title .cut { display: inline-block; vertical-align: top; }
.cq-hero .lede { margin-bottom: 24px; }
.cq-hero .hero__meta { margin-top: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .cq-hero .phero__img { animation: cqBreathe 16s ease-in-out infinite alternate; }
}
@keyframes cqBreathe { from { scale: 1; } to { scale: 1.06; } }

/* ---------- Quote section: form (job sheet) and sticky panel ---------- */
.cq { scroll-margin-top: 70px; }
.cq__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.cq-head h2 { margin-bottom: 14px; }
.cq-head .lede { margin-bottom: 0; }

/* The form is the left column; each group is its own card so the column flows in rows that fit the screen */
.qf { position: relative; display: grid; gap: clamp(20px, 2.2vw, 28px); align-content: start; }
.qf-card { position: relative; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 10px 10px 0 var(--ink); padding: clamp(24px, 2.4vw, 34px) clamp(20px, 2.6vw, 36px) clamp(8px, 1vw, 14px); }
.qf__edge { position: absolute; left: 0; right: 0; top: 0; height: 8px; background-size: 28.28px 28.28px; }
@media (prefers-reduced-motion: no-preference) { .qf__edge { animation: cqHazard 1.6s linear infinite; } }
@keyframes cqHazard { to { background-position: 28.28px 0; } }
.qf__set { border: 0; padding: 0; margin: 0; min-width: 0; }
.qf__legend { display: flex; align-items: center; gap: 14px; width: 100%; padding: 0; margin-bottom: 16px; font-weight: 800; font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-text); }
.qf__legend::after { content: ''; flex: 1; height: 2px; background: var(--line); }

/* Service picker: image chips that set the select */
.picker { margin-bottom: 16px; }
.no-js .picker { display: none; }
.picker__label { margin: 0 0 8px; font-size: .95rem; color: var(--steel); font-weight: 500; }
.picker__grid { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 8px; }
.picker__mark { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 0; background: var(--yellow); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 4px 4px 0 var(--ink); opacity: 0; pointer-events: none; }
.chip { position: relative; z-index: 1; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 52px; padding: 4px 10px 4px 4px; border: 2px solid var(--line); border-radius: var(--r); background: var(--white); text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.chip__img { display: block; width: 52px; height: 40px; overflow: clip; background: var(--galv); color: var(--green-text); }
.chip__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.chip:hover .chip__img img { transform: scale(1.12); }
.chip--other .chip__img { display: grid; place-items: center; }
.chip--other .chip__img svg { width: 24px; height: 24px; transition: transform .4s var(--ease); }
.chip--other:hover .chip__img svg { transform: rotate(90deg); }
.chip__name { font-weight: 700; font-size: .93rem; line-height: 1.2; }
.chip.is-on { border-color: var(--ink); background: var(--yellow); }
.picker.is-live .chip.is-on { background: transparent; }
.picker.is-live .picker__mark { opacity: 1; }

/* Fields */
.qf-field { display: grid; gap: 6px; margin-bottom: 18px; min-width: 0; }
.qf-field > label { font-weight: 700; font-size: 1rem; }
.qf-req { font-weight: 500; font-size: .88rem; color: var(--steel); }
.qf-hint { margin: -2px 0 2px; font-size: .94rem; color: var(--steel); }
.qf-control { position: relative; }
.qf-input { display: block; width: 100%; min-height: 54px; padding: 12px 46px 12px 16px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--white); color: var(--ink); font-size: 1.05rem; line-height: 1.4; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.qf-input::placeholder { color: #6B756F; opacity: 1; }
.qf-input:focus { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: none; }
.qf-select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 6.5l6 6 6-6' fill='none' stroke='%230D1410' stroke-width='2.6'/%3E%3C/svg%3E") no-repeat right 18px center / 18px; }
.qf-select + .qf-tick { display: none; }
.qf-area { min-height: 132px; resize: vertical; padding-top: 14px; }
.qf-tick { position: absolute; right: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--green-text); pointer-events: none; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.qf-tick path { stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .45s var(--ease) .08s; }
.qf-area + .qf-tick { top: 16px; margin-top: 0; }
.qf-field.is-good .qf-input { border-color: var(--green-text); }
.qf-field.is-good .qf-tick { opacity: 1; transform: none; }
.qf-field.is-good .qf-tick path { stroke-dashoffset: 0; }
.qf-field.is-bad .qf-input { border-color: #B3261E; background-color: #FFF6F5; }
.qf-field.is-bad .qf-select { background-color: #FFF6F5; }
.qf-err { display: flex; gap: 8px; align-items: flex-start; margin: 2px 0 0; font-size: .95rem; font-weight: 600; line-height: 1.4; color: #B3261E; }
.qf-err::before { content: '!'; flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; background: #B3261E; color: var(--white); font-weight: 800; font-size: .875rem; border-radius: var(--r); }
.qf-err[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .qf-err.is-new { animation: cqErr .4s var(--ease); } }
@keyframes cqErr { from { opacity: 0; transform: translateY(-6px); } }
.qf-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; }
@media (prefers-reduced-motion: no-preference) { .qf-select.is-flash { animation: cqFlash .7s var(--ease); } }
@keyframes cqFlash { 0% { background-color: var(--yellow); } 100% { background-color: var(--white); } }

/* Summary of server-side errors */
.qf-summary { margin: 0; padding: 16px 18px; border: 2px solid #B3261E; border-radius: var(--r); background: #FFF6F5; color: #8C1D18; }
.qf-summary:focus { outline: 3px solid var(--yellow); outline-offset: 3px; }
.qf-summary p { margin: 0; }
.qf-summary ul { margin: 8px 0 0; display: grid; gap: 4px; }
.qf-summary a { color: #8C1D18; font-weight: 600; padding-block: 10px; }

/* Sign builder design */
.qf-design { margin-bottom: 20px; padding: 16px 18px; border: 2px solid var(--ink); border-radius: var(--r); background: #FFF6C2; box-shadow: 5px 5px 0 var(--yellow); }
.qf-design__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.qf-design__head svg { width: 26px; height: 26px; color: var(--green-text); flex: none; }
.qf-design__head h3 { font-size: 1.25rem; }
.qf-design__text { margin: 0 0 8px; font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
.qf-design__note { margin: 0; font-size: .94rem; color: #3E4742; }
.qf-design__note a { color: #0A6B2D; font-weight: 700; padding-block: 10px; }

/* Honeypot, kept out of sight and out of the tab order */
.qf-trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Send */
.qf-send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.qf-privacy { margin: 0; font-size: .95rem; color: var(--steel); }
.qf-btn { min-width: 230px; }
.qf-btn__busy { display: none; }
.qf-btn.is-sending { pointer-events: none; background: repeating-linear-gradient(-45deg, var(--yellow) 0 12px, #FFE769 12px 24px); background-size: 33.94px 33.94px; }
.qf-btn.is-sending .qf-btn__idle { display: none; }
.qf-btn.is-sending .qf-btn__busy { display: inline; }
.qf-btn.is-sending svg { display: none; }
@media (prefers-reduced-motion: no-preference) { .qf-btn.is-sending { animation: cqSend .7s linear infinite; } }
@keyframes cqSend { to { background-position: 33.94px 0; } }

/* Thank-you state: a brass plate swings into place */
.cq-thanks { position: relative; }
.cq-thanks__stage { position: relative; height: clamp(190px, 24vh, 250px); margin-bottom: 26px; padding-top: 14px; }
.cq-thanks__stage::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: linear-gradient(180deg, #e3e7e8, #8e9697); border: 2px solid var(--ink); border-radius: var(--r); }
.cq-thanks__hang { position: relative; width: min(100%, 460px); margin: 30px auto 0; transform-origin: 50% -30px; }
.cq-thanks__hang::before, .cq-thanks__hang::after { content: ''; position: absolute; top: -32px; width: 2px; height: 34px; background: var(--ink); }
.cq-thanks__hang::before { left: 18%; } .cq-thanks__hang::after { right: 18%; }
.cq-thanks__plate { --pw: 100%; transform-origin: 50% -30px; }
.cq-thanks__plate .plate__text { font-family: var(--f-display); font-style: italic; font-weight: 850; font-stretch: 75%; text-transform: uppercase; font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
@media (prefers-reduced-motion: no-preference) { .cq-thanks__plate { animation: cqSway 5s ease-in-out infinite alternate; } }
@keyframes cqSway { from { rotate: -1.4deg; } to { rotate: 1.4deg; } }
.cq-thanks h2 { margin-bottom: 14px; }
.cq-thanks .btn-row { margin-top: 26px; }
.cq-inline-phone { font-weight: 700; color: #0A6B2D; white-space: nowrap; padding-block: 10px; }

/* Sticky panel */
.cq-panel { position: relative; padding: 8px 26px 24px; border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 10px 10px 0 var(--yellow); }
.cq-panel__block { padding-block: 16px; border-bottom: 1px solid rgba(255,255,255,.18); }
.cq-panel__h { font-size: 1.15rem; margin-bottom: 6px; color: var(--yellow); }
.cq-panel__phone { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-family: var(--f-display); font-style: italic; font-weight: 850; font-stretch: 80%; font-size: clamp(1.9rem, 2.4vw, 2.4rem); line-height: 1.1; color: var(--white); text-decoration: none; transition: color .2s; }
.cq-panel__phone svg { width: 26px; height: 26px; color: var(--yellow); flex: none; transition: transform .4s var(--ease); }
.cq-panel__phone:hover { color: var(--yellow); }
.cq-panel__phone:hover svg { transform: rotate(-14deg) scale(1.1); }
.cq-panel__addr address { font-style: normal; line-height: 1.5; margin-bottom: 8px; }
.cq-panel__addr p { margin: 0 0 8px; font-size: .98rem; line-height: 1.5; color: rgba(255,255,255,.9); }
.cq-check { display: grid; gap: 6px; margin-top: 8px; }
.cq-check li { position: relative; padding-left: 32px; font-size: .98rem; line-height: 1.5; }
.cq-check li::before { content: ''; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; background: var(--yellow); border: 2px solid var(--ink); transform: skewX(-14deg); }
.cq-check li::after { content: ''; position: absolute; left: 6px; top: 6px; width: 6px; height: 10px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.cq-panel__note { margin: 10px 0 0; font-size: .94rem; line-height: 1.45; color: rgba(255,255,255,.85); }
.cq-panel__photo { position: relative; margin: 18px 0 0; height: 150px; border-radius: var(--r); overflow: clip; background: var(--green-deep); }
.cq-panel__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
@media (prefers-reduced-motion: no-preference) { .cq-panel__photo img { animation: cqBreathe 12s ease-in-out infinite alternate; } }
.cq-panel__photo .caption { background: var(--yellow); color: var(--ink); }

@media (min-width: 1001px) and (min-height: 860px) {
  .cq__side { position: sticky; top: 100px; }
}
@media (max-width: 1000px) {
  .cq__grid { grid-template-columns: 1fr; }
  .cq-panel__photo { height: clamp(200px, 40vw, 300px); }
}
@media (max-width: 640px) {
  .qf-row { grid-template-columns: 1fr; }
  .qf { box-shadow: 6px 6px 0 var(--ink); }
  .picker__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .chip { grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding-right: 6px; }
  .chip__img { width: 40px; height: 40px; }
  .chip__name { font-size: .88rem; }
  .qf-btn { width: 100%; }
  .cq-panel { padding-inline: 20px; }
}

/* ---------- Find us: a route plotted onto a cutting mat ---------- */
.cq-find__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.cq-find__text h2 { margin-bottom: 16px; }
.cq-find__addr { font-style: normal; margin: 0 0 26px; padding-left: 20px; border-left: 6px solid var(--yellow); font-weight: 600; font-size: 1.12rem; line-height: 1.5; }
.cq-find__areas { display: flex; align-items: center; gap: 12px; margin: 26px 0 0; font-weight: 600; }
.cq-find__areas::before { content: ''; flex: none; width: 34px; height: 10px; background: repeating-linear-gradient(-45deg, var(--ink) 0 5px, var(--yellow) 5px 10px); }

.cq-map { position: relative; margin: 0 0 0 auto; width: min(100%, calc(var(--media-cap) * 1.3333)); isolation: isolate; }
.cq-map__board { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: clip; border: 2px solid var(--ink); }
.cq-map__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cq-map__sea { fill: #06301B; }
.cq-map__wave { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 3; stroke-linecap: round; }
.cq-map__city { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.45); stroke-width: 2; stroke-dasharray: 8 6; }
.cq-map__road { fill: none; stroke: #DCE4DE; stroke-width: 13; stroke-linecap: round; }
.cq-map__road--minor { stroke-width: 6; opacity: .55; }
.cq-map__traffic { fill: none; stroke: var(--green-mat); stroke-width: 3; stroke-dasharray: 3 22; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) { .cq-map__traffic { animation: cqTraffic 1.4s linear infinite; } .cq-map__wave { animation: cqWave 3s ease-in-out infinite alternate; } }
@keyframes cqTraffic { to { stroke-dashoffset: -50; } }
@keyframes cqWave { to { transform: translateX(10px); } }
.cq-map__route { fill: none; stroke: var(--yellow); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.cq-map__node { fill: var(--yellow); stroke: var(--ink); stroke-width: 3; transform-box: fill-box; transform-origin: center; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.cq-map__compass path { fill: var(--white); }
.cq-map__label--n { font-weight: 800; }
.cq-map__label { position: absolute; transform: translate(-50%, -50%); font-weight: 700; font-size: clamp(.875rem, 1vw, .95rem); line-height: 1.2; color: var(--white); white-space: nowrap; pointer-events: none; }
.cq-map__label--road { padding: 3px 9px; background: var(--green-deep); color: var(--yellow); border: 2px solid var(--white); border-radius: var(--r); font-weight: 800; }
.cq-map__label--sea { font-style: italic; font-weight: 600; color: rgba(255,255,255,.82); }
.cq-map__label--place { font-weight: 800; letter-spacing: .02em; }
.cq-map__pin { position: absolute; width: clamp(24px, 3.2vw, 34px); transform: translate(-50%, -100%); transition: transform .6s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; }
.cq-map__pin svg { width: 100%; height: auto; }
.cq-map__pin::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 30px; height: 12px; margin-left: -15px; border: 2px solid var(--yellow); border-radius: 50%; opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .cq-map__pin::after { animation: cqPulse 2.2s ease-out infinite; } }
@keyframes cqPulse { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.8); } }
.cq-map__tag { position: absolute; transform: translate(calc(-100% - 26px), -150%); max-width: 46%; padding: 7px 11px; background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 4px 4px 0 var(--yellow); font-weight: 800; font-size: clamp(.875rem, 1vw, .98rem); line-height: 1.25; transition: opacity .4s, transform .5s var(--ease); }
.cq-map__tag small { display: block; font-weight: 500; font-size: .875rem; color: var(--steel); }
.cq-map .caption { top: 12px; bottom: auto; }
/* Hidden start states only once contact.js has taken over the map */
.cq-map.is-live .cq-map__node { transform: scale(0); }
.cq-map.is-live .cq-map__pin { opacity: 0; transform: translate(-50%, -190%); }
.cq-map.is-live .cq-map__tag { opacity: 0; transform: translate(calc(-100% - 10px), -150%); }
.cq-map.is-live.is-junction .cq-map__node { transform: none; }
.cq-map.is-live.is-arrived .cq-map__pin { opacity: 1; transform: translate(-50%, -100%); }
.cq-map.is-live.is-arrived .cq-map__tag { opacity: 1; transform: translate(calc(-100% - 26px), -150%); }
@media (max-width: 900px) {
  .cq-find__grid { grid-template-columns: 1fr; }
  .cq-map { margin: 0 14px 14px 0; width: auto; }
}
@media (max-width: 520px) {
  .cq-map__tag { transform: translate(calc(-100% - 16px), -150%); }
  .cq-map.is-live.is-arrived .cq-map__tag { transform: translate(calc(-100% - 16px), -150%); }
  .cq-map__label--sea { display: none; }
  .cq-map .caption { font-size: .875rem; padding: 4px 8px; top: 8px; left: 8px; }
}

/* ---------- Next steps: sign builder and vehicle graphics ---------- */
.cq-next__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.cq-card { display: flex; flex-direction: column; border: 2px solid var(--ink); border-radius: var(--r); background: var(--white); color: var(--ink); text-decoration: none; box-shadow: 8px 8px 0 var(--ink); transition: box-shadow .25s var(--ease); }
.cq-card:hover { box-shadow: 12px 12px 0 var(--yellow); }
.cq-card__media { position: relative; display: block; height: clamp(200px, 26vh, 300px); overflow: clip; background: var(--green-deep); border-bottom: 2px solid var(--ink); }
.cq-card__media img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.cq-card__media--van img { top: 0; height: 100%; transition: transform .8s var(--ease); }
.cq-card:hover .cq-card__media--van img { transform: scale(1.04); }
.cq-card__plate { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 16%; background: linear-gradient(180deg, rgba(8,30,17,.15), rgba(8,30,17,.45)); }
.cq-card__plate .plate { --pw: 100%; max-width: 420px; transition: transform .5s var(--ease); }
.cq-card:hover .cq-card__plate .plate { transform: translateY(-4px) rotate(-1deg); }
.cq-card__plate .plate__text { font-size: clamp(1.1rem, 2vw, 1.8rem); display: inline-block; }
.cq-card__body { display: block; padding: 20px 24px 24px; }
.cq-card__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-family: var(--f-display); font-style: italic; font-weight: 850; font-stretch: 72%; text-transform: uppercase; font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.05; }
.cq-card__title svg { width: 26px; height: 26px; flex: none; color: var(--green-text); transition: transform .3s var(--ease); }
.cq-card:hover .cq-card__title svg { transform: translateX(6px); }
.cq-card__blurb { display: block; color: var(--steel); }
@media (max-width: 800px) { .cq-next__grid { grid-template-columns: 1fr; } .cq-card { box-shadow: 6px 6px 0 var(--ink); } }

/* Tap targets: inline links get a taller hit area without moving the layout */
.cq-hero .phero__crumb a { display: inline-block; padding: 10px 6px; margin: -10px -6px; }
.cq-panel .textlink, .cq-find .textlink { display: inline-block; padding-block: 10px; background-position: 0 calc(100% - 8px); }

/* Panel reveal: driven from the (non-sticky) quote grid in contact.js */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.motion-off) .cq-panel[data-panel] { clip-path: polygon(0% 0%, 0% 0%, 0% 0%); }
}
