/* The quote steps. Worker 2 owns this file. */
.q { gap: 22px; padding-block: 24px 64px; }
.q [hidden] { display: none; }
.q h1 { font-size: clamp(32px, 5vw, 48px); }
.q fieldset { margin: 0; padding: 0; border: 0; }
.q legend { padding: 0; margin-bottom: 12px; color: var(--white); font-weight: 600; font-size: 19px; }
.q .choice { text-align: left; font-size: 17px; font-family: inherit; width: 100%; }
.q .choice > span { flex: 1; line-height: 1.4; }
.q-top { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; color: var(--quiet); font-size: 15px; }
.q-top span { grid-column: 2; }
.q-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; justify-self: start; grid-row: 1; text-decoration: none; }
.q-back .icon { width: 18px; height: 18px; transform: scaleX(-1); }
.q-bar { grid-column: 1 / -1; display: flex; gap: 6px; }
.q-bar i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.q-bar i.on { background: var(--ice); }
.q-yes { display: flex; gap: 12px; align-items: center; }
.q-yes.good .icon { stroke: var(--good); width: 22px; height: 22px; }
.q-tick { display: flex; gap: 12px; align-items: center; min-height: 44px; cursor: pointer; }
.q-tick input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.q-how .icon { width: 34px; height: 34px; }
.q-how .choice { padding-block: 24px; font-size: 19px; }
.q-how .choice:hover { border-color: var(--ice); }
.q-price { gap: 4px; }
.q-price strong { color: var(--white); font-size: 28px; letter-spacing: -.02em; }
.q-next { position: sticky; z-index: 5; bottom: 0; padding-block: 14px; background: linear-gradient(transparent, var(--bg) 14px); }
html:has(.q-next) { scroll-padding-bottom: 90px; }
.q summary { min-height: 44px; padding-block: 9px; color: var(--ice); cursor: pointer; }
.q details > div { padding-top: 10px; }
.q-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ice); font-size: 16px; text-decoration: underline; cursor: pointer; }

/* Photos */
.q-shots { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.q-shots li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.q-shots h2 { font-size: 20px; }
.q-shots form { display: grid; gap: 5px; align-content: start; }
.q-shots .row { gap: 4px 16px; margin-top: 5px; }
.q-pic { position: relative; align-self: start; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.q-pic svg, .q-pic img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.q-state:empty { display: none; }
.q-state { color: var(--good); font-weight: 600; }
.q-state.bad { color: var(--bad); }
.q-shots progress { width: 100%; height: 8px; accent-color: var(--ice); }
.q-shots label { position: relative; }
.q-shots label:has(:focus-visible) { outline: 3px solid var(--ice); outline-offset: 3px; }
.q-shots [type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.q-send { display: none; }
.q-shots li:not(.done) .q-remove { display: none; }
@media (scripting: none) {
  .q-send { display: inline-flex; }
  .q-shots label:first-of-type { display: none; }
  .q-shots [type=file] { position: static; opacity: 1; font-size: 15px; height: auto; }
}

/* The pool's shape and size. Each picture holds every shape, and shows the one picked */
.q-wide { max-width: 1000px; }
.q-pool { display: grid; gap: 34px; }
.q-defs { position: absolute; width: 0; height: 0; }
.q-shapes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.q-sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 14px; }
.q-shapes .choice, .q-sizes .choice { display: block; padding: 0; overflow: hidden; text-align: center; }
.q-sizes .choice:has(:checked) { box-shadow: 0 0 0 1px var(--ice); }
.q-shapes input, .q-sizes input { position: absolute; opacity: 0; }
.q-shapes svg { width: 60%; height: 44px; margin: 18px auto 8px; fill: none; stroke: var(--ice); stroke-width: .9; stroke-linejoin: round; }
.q-shapes b { display: block; height: 44px; margin: 18px 0 8px; color: var(--ice); font-size: 30px; line-height: 44px; }
.q-shapes span { display: block; padding: 0 4px 14px; font-size: 15px; }
.q-sizes svg { width: 100%; }
.q-sizes span { display: block; padding: 12px 8px 14px; color: var(--quiet); font-size: 15px; font-weight: 400; line-height: 1.4; }
.q-sizes strong { display: block; color: var(--white); font-size: 18px; }
.q-sizes .o { display: none; }
.q-pool:has([value=unsure][name=shape]:checked) .o-rectangle, .q-pool:has([value=rectangle]:checked) .o-rectangle, .q-pool:has([value=lshape]:checked) .o-lshape,
.q-pool:has([value=oval]:checked) .o-oval, .q-pool:has([value=kidney]:checked) .o-kidney, .q-pool:has([value=freeform]:checked) .o-freeform { display: block; }
.q-own { display: none; grid-template-columns: 1fr 1fr; gap: 14px; }
.q-pool:has([value=own]:checked) .q-own { display: grid; }

/* Features, days and contact */
.q-item { display: grid; gap: 12px; }
.q-item .field { display: none; padding: 0 0 8px 20px; }
.q-item:has(:checked) .field { display: grid; }
.q-days > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 10px; }
.q-days .choice { justify-content: center; min-height: 48px; padding: 10px 6px; text-align: center; }
.q-days .choice input { position: absolute; opacity: 0; }
.q-days .choice:has(:checked) { background: var(--blue); }
.q-days .choice:has(:checked) small { color: var(--white); }

@media (max-width: 600px) {
  .q-shapes { grid-template-columns: repeat(3, 1fr); }
  .q-sizes { grid-template-columns: 1fr 1fr; }
  .q-shots li { grid-template-columns: 104px 1fr; gap: 14px; }
}
