/* "Is your project ready to price?" — styles for the readiness tool only.
   The answers show with CSS alone (:has), so the tool works with scripts off. */
.rt-sec { background: linear-gradient(180deg, var(--ink), var(--ink-2) 30%, var(--ink-2) 70%, var(--ink)); }
.rt { display: grid; gap: 28px; }
.rt-form { min-width: 0; }
.rt-track { display: grid; gap: 28px; }
.rt-q { border: 0; margin: 0; padding: 0; min-width: 0; position: relative; }
.rt-q legend { font-size: 1.25rem; font-weight: 300; padding: 0; margin-bottom: 14px; }
.rt-n { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--oak); margin-bottom: 4px; }
.rt-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-opts input { position: absolute; opacity: 0; pointer-events: none; }
.rt-opts .chip { min-height: 44px; }
@media (max-width: 719px) { .rt-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .rt-opts .chip { min-height: 48px; padding: 6px 10px; font-size: .82rem; line-height: 1.25; } .rt-q legend { font-size: 1.1rem; margin-bottom: 10px; } .rt { gap: 20px; } }

/* on a phone, with the script on: one question at a time, swiped or stepped */
@media (max-width: 1023px) {
  .rt-js .rt-track { grid-auto-flow: column; grid-auto-columns: 100%; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .rt-js .rt-track::-webkit-scrollbar { display: none; }
  .rt-js .rt-q { scroll-snap-align: start; }
  .rt-js .rt-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
  .rt-nav .btn { min-height: 44px; width: 52px; padding: 0; }
  .rt-count { font-size: .82rem; color: var(--mute); }
}
@media (min-width: 1024px) {
  .rt { grid-template-columns: 6fr 5fr; gap: 72px; align-items: start; }
  .rt-out { position: sticky; top: calc(var(--hh) + 32px); }
  .rt-nav { display: none !important; }
}

/* the answer: framed like their logo */
.rt-out { position: relative; padding: 22px 18px; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.rt-out::after { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line); pointer-events: none; }
.rt-out > * { position: relative; z-index: 1; }

/* the five stages of their process, lit up to where this project would reach */
.rail { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; counter-reset: r; }
.rail li { counter-increment: r; font-size: .68rem; line-height: 1.3; color: var(--mute); }
.rail li::before { content: ""; display: block; height: 3px; background: var(--line); margin-bottom: 8px; transition: background-color .5s var(--ease), box-shadow .5s; }
.rail li span::before { content: counter(r) " "; color: var(--grey); }
.rail li:first-child::before, .rail .on::before { background: var(--paper); box-shadow: 0 0 12px rgba(244, 242, 238, .45); }
.rail li:first-child, .rail .on { color: var(--paper); }
.rt:has(#rt-stage-plans:checked) .rail li:nth-child(2),
.rt:has(#rt-stage-ready:checked) .rail li:nth-child(-n+3) { color: var(--paper); }
.rt:has(#rt-stage-plans:checked) .rail li:nth-child(2)::before,
.rt:has(#rt-stage-ready:checked) .rail li:nth-child(-n+3)::before { background: var(--paper); box-shadow: 0 0 12px rgba(244, 242, 238, .45); }
.rt:has(#rt-type-small:checked) .rail { opacity: .3; }

/* notes: shown by the answers chosen */
.rt-notes .n { display: none; margin: 0 0 12px; font-size: .95rem; }
.rt:not(:has(.rt-form input:checked)) .n-none { display: block; }
.rt:has(#rt-type-small:checked) .n-small,
.rt:has(#rt-area-mb:checked):has(#rt-type-home:checked, #rt-type-kdr:checked, #rt-type-reno:checked, #rt-type-storey:checked) .n-mb-home,
.rt:has(#rt-area-mb:checked):has(#rt-type-fitout:checked, #rt-type-multi:checked) .n-mb-ok,
.rt:has(#rt-area-else:checked) .n-else { display: block; color: var(--paper); padding-left: 14px; border-left: 2px solid var(--oak); }
.rt:not(:has(#rt-type-small:checked)):has(#rt-stage-idea:checked) .n-idea,
.rt:not(:has(#rt-type-small:checked)):has(#rt-stage-design:checked) .n-design,
.rt:not(:has(#rt-type-small:checked)):has(#rt-stage-plans:checked) .n-plans,
.rt:not(:has(#rt-type-small:checked)):has(#rt-stage-ready:checked) .n-ready { display: block; }

/* what a reliable price needs, ticked by where they are up to */
.needs { list-style: none; padding: 0; margin: 6px 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.needs li { font-size: .78rem; padding: 6px 10px 6px 28px; position: relative; box-shadow: inset 0 0 0 1px var(--line); color: var(--mute); transition: color .4s, box-shadow .4s; }
.needs li::before { content: ""; position: absolute; left: 10px; top: 50%; width: 9px; height: 9px; margin-top: -5px; box-shadow: inset 0 0 0 1px var(--grey); }
.rt:has(#rt-stage-plans:checked, #rt-stage-ready:checked) .need-plans,
.rt:has(#rt-stage-ready:checked) .need-eng,
.rt:has(#rt-stage-ready:checked) .need-spec { color: var(--paper); box-shadow: inset 0 0 0 1px var(--paper); }
.rt:has(#rt-stage-plans:checked, #rt-stage-ready:checked) .need-plans::before,
.rt:has(#rt-stage-ready:checked) .need-eng::before,
.rt:has(#rt-stage-ready:checked) .need-spec::before { background: var(--oak); box-shadow: none; }
.rt:has(#rt-type-small:checked) .needs, .rt:has(#rt-type-small:checked) .rt-send { display: none; }

.rt-sum { font-size: .85rem; color: var(--mute); margin: 0 0 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.rt-sum strong { color: var(--paper); font-weight: 500; }
.rt-act .btn { flex: 1 1 auto; }
.rt-why { margin-top: 14px; font-size: .88rem; color: var(--mute); }
.rt-why summary { cursor: pointer; color: var(--paper); text-decoration: underline; text-underline-offset: .22em; text-decoration-color: var(--line-2); }
.rt-why p { margin: 10px 0 0; }
@media (prefers-reduced-motion: reduce) { .rail li::before, .needs li { transition: none; } }
