/* Queen City Crates 2.4.0 — checkout layer (book page only).
 * Stack-style single-column step card, progress bar, desktop summary
 * sidebar, floating mobile total and big tap targets. Pure CSS on top of
 * qcc.css + qcc-look.css: no markup hooks or checkout behaviour change. */

@property --qcc-p { syntax: "<percentage>"; inherits: true; initial-value: 0%; }

/* ---------- page frame ---------- */
.qcc-page-book .qcc-phero-book, .qcc-phero-book { padding-bottom: 8px; }
.qcc-phero-book .qcc-h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.qcc-phero-book .qcc-sub { font-size: 1.05rem; margin-bottom: 10px; }
.qcc-section-book { background: linear-gradient(180deg, transparent 0, var(--mint) 140px, var(--mint) 100%); padding-top: 22px; }
.qcc-bk { grid-template-columns: minmax(0, 700px) 380px; justify-content: center; gap: clamp(24px, 3vw, 44px); }
.qcc-bk > .qcc-quote-lock { grid-column: 1 / -1; }

/* ---------- progress: labelled steps + filling bar ---------- */
.qcc-bk-main { --qcc-p: 8%; transition: --qcc-p .55s var(--ease); }
.qcc-bk-main:has([data-prog="1"].is-active) { --qcc-p: 12%; }
.qcc-bk-main:has([data-prog="2"].is-active) { --qcc-p: 32%; }
.qcc-bk-main:has([data-prog="3"].is-active) { --qcc-p: 52%; }
.qcc-bk-main:has([data-prog="4"].is-active) { --qcc-p: 74%; }
.qcc-bk-main:has([data-prog="5"].is-active) { --qcc-p: 100%; }
.qcc-bk-progress { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0 2px; background: none; border: 0; box-shadow: none; }
.qcc-bk-progress li { justify-content: flex-start; gap: 8px; padding: 0 0 10px; background: none !important; color: var(--ink-3); font-size: .86rem; font-weight: 600; border-radius: 0; }
.qcc-bk-progress li span { width: 24px; height: 24px; font-size: .76rem; background: #fff; border: 1.5px solid var(--line-2); color: var(--ink-3); }
.qcc-bk-progress li.is-active { color: var(--ink); font-weight: 800; }
.qcc-bk-progress li.is-active span { background: var(--green); border-color: var(--green); color: var(--gold); }
.qcc-bk-progress li.is-done { color: var(--green-2); }
.qcc-bk-progress li.is-done span { background: var(--leaf); border-color: var(--leaf); color: #fff; font-size: 0; }
.qcc-bk-progress li.is-done span::before { content: "✓"; font-size: .78rem; }
.qcc-bk-meter { height: 8px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); margin: 0 0 22px; overflow: hidden; }
.qcc-bk-meter span { display: block; height: 100%; width: var(--qcc-p); border-radius: inherit; background: linear-gradient(90deg, var(--leaf), var(--green)); transition: width .55s var(--ease); }

/* ---------- the step card ---------- */
.qcc-bk-step { margin-bottom: 10px; scroll-margin-top: 96px; }
.qcc-bk-step.is-active { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 3.4vw, 36px); box-shadow: var(--shadow-lg); margin-block: 4px 16px; }
.qcc-bk-step.is-active .qcc-bk-head h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.qcc-bk-step.is-active .qcc-bk-n { width: 40px; height: 40px; border-radius: 13px; font-size: 1.05rem; }
/* Finished steps: one tidy row with the answer and an Edit pill. */
.qcc-bk-step.is-done { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 20px; box-shadow: none; opacity: 1; }
.qcc-bk-step.is-done .qcc-bk-head h2 { font-size: 1.02rem; letter-spacing: -.015em; }
.qcc-bk-step.is-done .qcc-bk-n { width: 28px; height: 28px; border-radius: 50%; background: var(--leaf); }
.qcc-bk-step.is-done .qcc-bk-sum { margin: 6px 0 0 40px !important; font-size: .88rem; color: var(--ink-3); }
.qcc-bk-step.is-done .qcc-bk-edit { min-height: 36px; padding: 7px 16px; font-weight: 700; }
/* Steps still to come: slim, quiet rows so the active card owns the page. */
.qcc-bk-step.is-todo { background: transparent; border: 1px dashed var(--line-2); border-radius: 18px; padding: 12px 20px; opacity: .72; box-shadow: none; }
.qcc-bk-step.is-todo .qcc-bk-head h2 { font-size: 1rem; color: var(--ink-3); }
.qcc-bk-step.is-todo .qcc-bk-n { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line-2); color: var(--ink-3); font-size: .8rem; }

.qcc-bk-addr { padding-block: 4px 20px; }
.qcc-bk-addr + .qcc-bk-addr { padding-top: 22px; border-top: 1px solid var(--line); }
.qcc-bk-addr h3 { font-size: 1.12rem; margin-bottom: 2px; }
.qcc-bk-note { background: var(--mint); border-radius: 14px; padding: 12px 16px; font-size: .92rem; color: var(--ink-2); }

/* ---------- big tap targets ---------- */
.qcc-bk .qcc-field input:not([type=checkbox]):not([type=radio]),
.qcc-bk .qcc-field select,
.qcc-bk .qcc-field textarea { min-height: 56px; font-size: 1rem; border-radius: 14px; border: 1.5px solid var(--line-2); padding-inline: 16px; background-color: #fff; transition: border-color .2s, box-shadow .2s; }
.qcc-bk .qcc-field textarea { padding-block: 14px; }
.qcc-bk .qcc-field input:focus, .qcc-bk .qcc-field select:focus, .qcc-bk .qcc-field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(63, 154, 107, .16); outline: 0; }
.qcc-bk .qcc-field input.is-invalid, .qcc-bk .qcc-field select.is-invalid { border-color: var(--err, #b42318); box-shadow: 0 0 0 4px rgba(180, 35, 24, .1); }
.qcc-bk .qcc-btn-lg { min-height: 58px; border-radius: 16px; font-size: 1.04rem; padding-inline: 28px; }
.qcc-bk-actions { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.qcc-bk-actions .qcc-btn-lg { margin-left: auto; }
.qcc-bk-actions .qcc-btn-ghost { min-height: 52px; border-radius: 14px; }
.qcc-bk .qcc-chip { min-height: 52px; padding: 12px 20px; border-radius: 14px; font-size: .96rem; }
.qcc-bk-weeks { gap: 10px; }
.qcc-check { min-height: 48px; align-items: center; }
.qcc-check input { width: 22px; height: 22px; accent-color: var(--green); }
.qcc-terms { background: var(--mint); border-radius: 14px; padding: 12px 16px; align-items: flex-start; }
.qcc-terms input { margin-top: 2px; }
.qcc-stepper button { width: 44px; height: 44px; font-size: 1.2rem; border: 1.5px solid var(--line-2); }
.qcc-stepper output { min-width: 34px; font-size: 1.1rem; }

/* ---------- stairs (outside help only) ---------- */
.qcc-stairs-field legend { font-size: .9rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.qcc-stairs-opts { gap: 10px; }
.qcc-field .qcc-stairs-opt { min-height: 64px; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 16px; background: #fff; align-items: center; font-weight: 600; color: var(--ink-2); line-height: 1.3; }
.qcc-bk .qcc-field .qcc-stairs-opt input { -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; min-height: 0; max-width: 22px; padding: 0; box-shadow: none; margin: 0; border-radius: 50%; border: 2px solid #b9c6bd; background: #fff; cursor: pointer; transition: all .2s; }
.qcc-bk .qcc-field .qcc-stairs-opt input:checked { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-8.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.qcc-field .qcc-stairs-opt.is-selected { border: 2px solid var(--green); padding: 13.5px 15.5px; background: var(--mint); color: var(--ink); font-weight: 700; box-shadow: 0 0 0 4px rgba(29, 74, 64, .08); }
.qcc-stairs-opt:has(input:focus-visible) { outline: 3px solid rgba(63, 154, 107, .45); outline-offset: 2px; }
.qcc-stairs-note { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .86rem; color: var(--ink-3); }
.qcc-stairs-note::before { content: ""; flex: none; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f9a6b' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
.qcc-flights > label { font-size: .9rem; font-weight: 800; color: var(--ink); }
.qcc-flights-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px 12px 18px; background: var(--mint); border: 1px solid var(--mint-2); border-radius: 16px; }
.qcc-flights-row .qcc-hint { margin: 0; font-size: .92rem; }
.qcc-flights-row b { font-size: 1.05rem; }

/* ---------- bundles + extras ---------- */
.qcc-bundle { border-radius: 20px; min-height: 84px; }
.qcc-addon { border: 1.5px solid var(--line); background: #fff; padding: 14px 18px; min-height: 72px; }

/* ---------- review + pay ---------- */
.qcc-paybox { background: var(--green); color: #e9f2ec; border-radius: 20px; padding: 20px 22px; }
.qcc-paybox-total { color: #fff; }
.qcc-paybox-total b { color: #fff; font-weight: 800; letter-spacing: -.04em; font-size: 2rem; }
.qcc-paybox-split div { border-radius: 14px; color: var(--ink); }
.qcc-paybox .qcc-hint { color: #cfe0d6; }
.qcc-bk #qcc-submit { width: auto; min-width: 280px; box-shadow: 0 14px 30px -14px rgba(138, 106, 23, .7); }
.qcc-bk .qcc-secure { text-align: center; font-size: .86rem; color: var(--ink-3); }

/* ---------- desktop summary sidebar ---------- */
.qcc-bk-sticky { top: 96px; display: grid; gap: 14px; }
.qcc-bk-aside .qcc-summary { position: relative; overflow: hidden; padding: 0 24px 22px; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.qcc-bk-aside .qcc-summary > h2:first-child { margin: 0 -24px 14px; padding: 18px 24px; background: var(--green); color: #fff; font-size: 1.1rem; letter-spacing: -.02em; }
.qcc-bk-aside .qcc-summary .qcc-total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 16px; }
.qcc-bk-aside .qcc-summary .qcc-total b { font-size: 2.3rem; letter-spacing: -.045em; color: var(--green); }
.qcc-bk-aside .qcc-summary .qcc-lines li { border-bottom-color: var(--line); }
.qcc-bk-aside .qcc-summary .qcc-deposit { background: var(--gold-soft); border-radius: 14px; color: var(--ink-2); }
.qcc-bk-promise { list-style: none; margin: 0; padding: 16px 18px; display: grid; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.qcc-bk-promise li { display: flex; gap: 12px; align-items: center; font-size: .9rem; color: var(--ink-2); line-height: 1.35; }
.qcc-bk-promise li b { color: var(--ink); }
.qcc-body .qcc-bk-promise .qcc-ic { box-sizing: border-box; flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--mint); color: var(--green); }
.qcc-bk-aside .qcc-secure { text-align: left; margin: 0 6px; line-height: 1.5; }

/* ---------- email me this quote ---------- */
.qcc-bk .qcc-eq { margin: 0; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.qcc-bk-step .qcc-eq { margin-top: 20px; background: var(--mint); border-color: var(--mint-2); }
.qcc-bk .qcc-eq h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.qcc-bk .qcc-eq h3::before { content: ""; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4a40' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='13' rx='2.5'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E") center / 18px no-repeat; }
.qcc-bk .qcc-eq > p { font-size: .9rem; color: var(--ink-3); margin-bottom: 14px; }
.qcc-bk .qcc-eq-fields { gap: 10px; }
.qcc-bk .qcc-eq .qcc-field label { font-size: .8rem; }
.qcc-bk .qcc-eq .qcc-field input { min-height: 50px; }
.qcc-bk .qcc-eq [data-qcc-eq-send] { width: 100%; min-height: 52px; border-radius: 14px; border: 1.5px solid var(--green); color: var(--green); font-weight: 800; background: #fff; }
.qcc-bk .qcc-eq [data-qcc-eq-send]:hover { background: var(--green); color: #fff !important; }
.qcc-bk .qcc-eq [data-qcc-eq-send][disabled] { opacity: .6; }
.qcc-bk .qcc-eq-msg.is-ok { background: var(--green-soft); color: var(--green); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.qcc-bk .qcc-eq-msg.is-err { background: #fdecea; border-radius: 12px; padding: 10px 14px; }
@media (min-width: 700px) { .qcc-bk-step .qcc-eq-fields { grid-template-columns: 1fr 1fr 1fr; } }
/* Desktop shows the quote panel once, in the sidebar; phones use the one in step 5. */
@media (min-width: 901px) { .qcc-bk-step .qcc-eq { display: none; } }

/* Quote banner when a saved quote is opened. */
.qcc-bk .qcc-quote-lock { display: flex; gap: 14px; align-items: flex-start; background: var(--gold-soft); border: 1px solid #efd99a; border-radius: 18px; padding: 16px 20px; margin-bottom: 18px; font-size: .95rem; color: var(--ink-2); }
.qcc-bk .qcc-quote-lock[hidden] { display: none; }
.qcc-bk .qcc-quote-lock::before { content: ""; flex: none; width: 36px; height: 36px; border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6a17' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12.6V4.5a1 1 0 0 1 1-1h8.1l8 8a1.4 1.4 0 0 1 0 2l-7.1 7.1a1.4 1.4 0 0 1-2 0z'/%3E%3Ccircle cx='8.3' cy='8.3' r='1.5'/%3E%3C/svg%3E") center / 20px no-repeat; }
.qcc-bk .qcc-quote-lock strong { color: var(--ink); font-size: 1.02rem; }
.qcc-bk .qcc-quote-lock.is-changed { background: #fbefe9; border-color: #efc6b6; }

/* ---------- address autocomplete dropdown ---------- */
.qcc-bk .qcc-ac { margin-top: 6px; border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 24px 48px -20px rgba(15, 39, 35, .35), 0 2px 6px rgba(15, 39, 35, .06); padding: 6px; }
.qcc-bk .qcc-ac-item { position: relative; border: 0; border-radius: 11px; padding: 12px 14px 12px 44px; font-size: .96rem; font-weight: 500; color: var(--ink); min-height: 48px; }
.qcc-bk .qcc-ac-item::before { content: ""; position: absolute; left: 12px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 7px; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4a40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-5.6-6.5-11a6.5 6.5 0 0 1 13 0c0 5.4-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.4'/%3E%3C/svg%3E") center / 14px no-repeat; }
.qcc-bk .qcc-ac-item:hover, .qcc-bk .qcc-ac-item.is-active { background: var(--mint); }
.qcc-bk .qcc-ac-credit { padding: 6px 10px 2px; }
.qcc-bk .qcc-ac-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px; border-radius: 99px; font-size: .8rem; }
.qcc-bk .qcc-ac-status.is-ok { background: var(--green-soft); color: var(--green); }
.qcc-bk .qcc-ac-status.is-ok::before { content: "✓"; font-weight: 800; }
.qcc-bk .qcc-ac-status.is-warn { background: var(--gold-soft); color: var(--gold-text); }

/* ---------- tablet + phone ---------- */
@media (max-width: 1100px) { .qcc-bk { grid-template-columns: minmax(0, 1fr) 330px; } }
@media (max-width: 900px) {
	.qcc-bk { grid-template-columns: minmax(0, 1fr); }
	.qcc-section-book { padding-bottom: 120px; }
	.qcc-bk-progress li { justify-content: center; padding-bottom: 8px; }
	.qcc-bk-progress li.is-active em { display: none; }
	.qcc-bk-meter { margin-bottom: 16px; }
	/* Floating total: dark pill with the price and a big Continue button. */
	.qcc-bookbar { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); border-radius: 22px; padding: 12px 12px 12px 20px; gap: 12px; background: rgba(11, 31, 27, .97); }
	.qcc-bookbar-total { font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; color: #fff; }
	.qcc-bookbar-sub { font-size: .8rem; }
	.qcc-bookbar .qcc-btn { min-height: 54px; padding-inline: 26px; border-radius: 16px; font-size: 1.02rem; font-weight: 800; }
	.qcc-bk-step[data-step="5"] .qcc-bk-actions { flex-direction: column; align-items: stretch; }
	.qcc-bk #qcc-submit { width: 100%; min-width: 0; }
}
@media (max-width: 640px) {
	.qcc-phero-book .qcc-h1 { font-size: 1.9rem; }
	.qcc-phero-book .qcc-bk-trust { display: none; }
	.qcc-section-book { padding-top: 12px; }
	.qcc-bk-step.is-active { border-radius: 22px; padding: 22px 16px 24px; margin-inline: -4px; }
	.qcc-bk-step.is-done, .qcc-bk-step.is-todo { padding: 12px 14px; border-radius: 16px; }
	.qcc-bk-step.is-done .qcc-bk-sum { margin-left: 0 !important; }
	.qcc-bk-step.is-active .qcc-bk-head h2 { font-size: 1.4rem; }
	.qcc-field .qcc-stairs-opt { min-height: 58px; }
	.qcc-flights-row { flex-direction: row; align-items: center; }
	.qcc-bk .qcc-chip { flex: 1 1 calc(50% - 10px); justify-content: center; white-space: nowrap; }
	.qcc-bk-step .qcc-eq { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { .qcc-bk-main, .qcc-bk-meter span { transition: none; } }

/* Review rows: Edit as a small pill, same as the finished-step rows. */
.qcc-bk .qcc-rv .qcc-bk-edit { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 0; border-radius: 99px; background: var(--mint); color: var(--green-2); font: inherit; font-size: .84rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.qcc-bk .qcc-rv .qcc-bk-edit:hover { background: var(--green); color: #fff; }
@media (max-width: 900px) {
	.qcc-bookbar-info { min-width: 0; }
	.qcc-bookbar-total { white-space: nowrap; font-size: 1.12rem; }
	.qcc-bookbar .qcc-btn { padding-inline: 20px; }
}
/* Phones: slide the floating total away while the address list is open. */
@media (max-width: 900px) {
	.qcc-bookbar { transition: transform .25s var(--ease), opacity .2s; }
	.qcc-bk:has(.qcc-ac:not([hidden])) .qcc-bookbar { transform: translateY(140%); opacity: 0; pointer-events: none; }
}
