/* Instant quote page — builds on styles.css tokens */
.qt { background: var(--bg-soft); }
.qt__main { padding: clamp(24px, 4vw, 48px) 0 3rem; }
.qt__intro { max-width: 760px; margin-bottom: 1.25rem; }
.qt__intro h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }

.qt__steps { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 1.25rem; counter-reset: none; }
.qt__steps li { flex: 1; display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .85rem; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .7rem; }
.qt__steps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: .8rem; flex: none; }
.qt__steps li.is-active { color: var(--ink); border-color: var(--yellow); }
.qt__steps li.is-active span, .qt__steps li.is-done span { background: var(--yellow); }
.qt__steps li.is-done { color: var(--ink); }
@media (max-width: 520px) { .qt__steps li { font-size: .72rem; padding: .4rem .5rem; } }

.qt__layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .qt__layout { grid-template-columns: 1fr; } .qt__summary { display: none; } }

.qt__panel { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.1rem, 3vw, 1.75rem); box-shadow: var(--shadow); }
.qt__step { display: none; }
.qt__step.is-active { display: block; animation: fade .25s ease; }
.qt__step h2 { font-size: 1.45rem; margin-bottom: 1rem; }
.qt__sub { font-size: 1.1rem; margin: 1.5rem 0 .75rem; }
.qt__sub small { font-family: var(--body); font-weight: 500; color: var(--muted); font-size: .85rem; }
.qt__q { margin-bottom: 1.25rem; }
.qt__label { font-weight: 700; color: var(--ink); margin-bottom: .45rem; }
.qt__hint { font-size: .85rem; color: var(--muted); margin: .5rem 0 0; }
.qt__nav { margin-top: 1.5rem; }
.qt__nav--split { display: flex; gap: .6rem; }
.qt__nav--split .btn--primary { flex: 1; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips--fill .chip { flex: 1; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.chip span { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 46px; padding: .55rem 1rem; border: 2px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--ink); background: var(--white); cursor: pointer; transition: border-color .15s, background .15s; }
.chip input:checked + span { border-color: var(--yellow); background: #fff9e0; }
.chip input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.chips--sm .chip span { min-height: 40px; padding: .45rem .8rem; font-size: .9rem; }

/* Counters */
.qt__counters { display: grid; gap: .6rem; margin-bottom: 1.25rem; }
.counter { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 2px solid var(--line); border-radius: 12px; padding: .65rem .85rem; }
.counter .qt__label { margin: 0; }
.counter small { color: var(--muted); font-size: .8rem; }
.counter__ctrl { display: flex; align-items: center; gap: .6rem; }
.counter__ctrl button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); font-size: 1.3rem; font-weight: 700; line-height: 1; cursor: pointer; color: var(--ink); }
.counter__ctrl button:disabled { opacity: .3; cursor: not-allowed; }
.counter__ctrl output { min-width: 1.6em; text-align: center; font-family: var(--head); font-weight: 800; font-size: 1.3rem; color: var(--ink); }

/* Packages */
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem .75rem; }
.pkg--featured { grid-column: 1 / -1; }
.pkg--featured ul { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
@media (max-width: 760px) { .pkgs { grid-template-columns: 1fr; } .pkg--featured ul { grid-template-columns: 1fr; } }
.pkg { position: relative; display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 14px; padding: 1.1rem 1rem 1rem; cursor: pointer; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.pkg input { position: absolute; opacity: 0; pointer-events: none; }
.pkg:hover { border-color: #c7cbd1; }
.pkg.is-selected { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 204, 0, .3); background: #fffdf3; }
.pkg__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--green); color: var(--white); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 999px; white-space: nowrap; }
.pkg__badge--popular { background: var(--ink); color: var(--yellow); }
.pkg__name { font-family: var(--head); font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.pkg__label { font-size: .85rem; color: var(--muted); min-height: 2.4em; }
.pkg__price { font-family: var(--head); font-weight: 800; font-size: 2rem; color: var(--ink); margin: .35rem 0 .1rem; }
.pkg__save { font-size: .82rem; font-weight: 700; color: var(--green); min-height: 1.3em; }
.pkg ul { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .35rem; font-size: .85rem; }
.pkg li { display: grid; grid-template-columns: 16px 1fr; gap: .4rem; }
.pkg li::before { content: "✓"; color: var(--green); font-weight: 800; }
.pkg__pick { margin-top: auto; padding-top: .85rem; }
.pkg__pick span { display: block; text-align: center; border-radius: 999px; padding: .55rem; font-weight: 700; font-family: var(--head); background: var(--bg-soft); color: var(--ink); }
.pkg.is-selected .pkg__pick span { background: var(--yellow); }
.pkg--solo { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1rem; padding: .85rem 1rem; }
.pkg__solo-text { flex: 1; display: grid; }
.pkg--solo .pkg__name { font-size: 1.05rem; }
.pkg--solo .pkg__label { min-height: 0; }
.pkg--solo .pkg__price { font-size: 1.5rem; margin: 0; }
.pkg--solo .pkg__pick { margin: 0; padding: 0; min-width: 110px; }
@media (max-width: 520px) { .pkg--solo { flex-wrap: wrap; } .pkg--solo .pkg__solo-text { flex-basis: 100%; } .pkg--solo .pkg__pick { flex: 1; } }

/* Add-ons */
.addons { display: grid; gap: .6rem; }
.addon, .addon__toggle { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; }
.addon { border: 2px solid var(--line); border-radius: 12px; padding: .75rem .85rem; flex-direction: column; }
label.addon { flex-direction: row; }
.addon input[type=checkbox] { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--ink); flex: none; }
.addon__body b { display: block; color: var(--ink); }
.addon__body b em { font-style: normal; color: var(--green); margin-left: .3rem; }
.addon__body small { color: var(--muted); font-size: .84rem; }
.addon:has(input:checked) { border-color: var(--yellow); background: #fffdf3; }
.addon--lawn .chips { padding-left: 2.1rem; }

/* Booking mode */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1.1rem; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; border: 2px solid var(--line); border-radius: 12px; padding: .8rem .9rem; height: 100%; }
.seg b { display: block; color: var(--ink); }
.seg small { color: var(--muted); font-size: .82rem; }
.seg input:checked + span { border-color: var(--yellow); background: #fff9e0; }
.seg input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.field textarea { resize: vertical; }

/* Summary */
.qt__summary { position: sticky; top: 90px; }
.sum { background: var(--ink); color: #d6d9dd; border-radius: 18px; padding: 1.25rem; box-shadow: var(--shadow); }
.sum__head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #333; padding-bottom: .65rem; margin-bottom: .65rem; }
.sum__head span { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.sum__head b { font-family: var(--head); color: var(--white); font-size: 1.1rem; }
.sum__lines, .sum__tbc { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; font-size: .88rem; }
.sum__lines li { display: flex; justify-content: space-between; gap: 1rem; }
.sum__lines li b { color: var(--white); white-space: nowrap; }
.sum__tbc li { color: var(--yellow); font-size: .82rem; margin-top: .4rem; }
.sum__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #333; margin-top: .75rem; padding-top: .75rem; }
.sum__total span { font-weight: 700; color: var(--white); }
.sum__total b { font-family: var(--head); font-size: 2rem; color: var(--yellow); }
.sum__note { font-size: .78rem; margin: .25rem 0 0; color: #9ca3af; }
/* Prices stay hidden until the customer reaches the package step */
.sum__wait { margin: 0; font-size: .9rem; }
.qt:not(.is-priced) [data-sum-pkg], .qt:not(.is-priced) .sum__lines, .qt:not(.is-priced) .sum__tbc,
.qt:not(.is-priced) .sum__total, .qt:not(.is-priced) .sum__note, .qt.is-priced .sum__wait { display: none; }
.qt:not(.is-priced) .qt__bar b, .qt:not(.is-priced) .qt__bar-label, .qt.is-priced .qt__bar-wait { display: none; }
.sum__trust { list-style: none; padding: 1rem .25rem 0; margin: 0; display: grid; gap: .35rem; font-size: .88rem; font-weight: 600; color: var(--ink); }

/* Mobile total bar */
.qt__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom)); background: var(--ink); color: var(--white); box-shadow: 0 -6px 20px rgba(0, 0, 0, .15); }
.qt__bar small { display: block; font-size: .72rem; color: #c9ccd1; }
.qt__bar b { font-family: var(--head); font-size: 1.5rem; color: var(--yellow); }
.qt__bar .btn { padding: .75rem 1.3rem; }
@media (max-width: 900px) { .qt__bar { display: flex; } }
.qt__bar[hidden] { display: none; }

/* Done */
.qt__done { text-align: center; padding: 1rem 0; }
.qt__ref { font-size: .9rem; color: var(--muted); }

/* Thank-you page quote prompt */
.ty__quote { background: var(--ink); color: #d6d9dd; border-radius: 16px; padding: 1.5rem; margin-top: 1.5rem; text-align: center; }
.ty__quote h2 { color: var(--white); font-size: 1.4rem; margin-bottom: .35rem; }
.ty__quote p { margin-bottom: 1rem; }
.ty__quote .btn { width: 100%; }

/* Termite treatment quote */
.tt__rec { position: relative; display: grid; gap: .15rem; border: 2px solid var(--yellow); border-radius: 14px; padding: 1.4rem 1.1rem 1.1rem; background: #fffdf3; box-shadow: 0 0 0 3px rgba(255, 204, 0, .3); margin-top: .75rem; }
.tt__rec .pkg__badge { left: 1rem; transform: none; }
.tt__rec .pkg__label { min-height: 0; }
.tt__rec ul { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .35rem; font-size: .9rem; }
.tt__rec li { display: grid; grid-template-columns: 16px 1fr; gap: .4rem; }
.tt__rec li::before { content: "✓"; color: var(--green); font-weight: 800; }
.tt__annual { font-weight: 700; color: var(--ink); }
.tt__basis { font-size: .82rem; color: var(--muted); }
.tt__free { margin: 1rem 0 0; font-size: .92rem; background: var(--bg-soft); border-radius: 12px; padding: .85rem 1rem; }
.tt__why h3 { color: var(--white); font-size: 1rem; margin: .9rem 0 .25rem; }
.tt__why p { margin: 0; font-size: .88rem; }
.tt__rate { display: block; color: var(--yellow); font-weight: 700; margin-top: .2rem; }
.tt__options { display: grid; gap: 1rem; margin-top: .75rem; }
.tt__options .pkg__badge { left: 1rem; transform: none; }
.tt__options .pkg--alt .pkg__badge { background: var(--ink); }
.tt__options .pkg__label { min-height: 0; }
@media (max-width: 900px) { .qt__summary.tt__why { display: block; position: static; } }
.qt:not(.is-priced) .tt__rate, .qt:not(.is-priced) .tt__why .sum__note { display: none; }
