/* ==========================================================================
   /pricing-test quiz + /thank-pricing/ estimate (theme 1.4.45).
   Loaded on those two pages only (inc/pricing-test.php). Every rule is scoped
   to .s4d-pt*, so nothing reaches another page. Site tokens from main.css;
   the receipt look follows /internal-pricing (monospace figures).
   ========================================================================== */

.s4d-pt [hidden],
.s4d-pt-form fieldset[hidden],
.s4d-pt-est [hidden] { display: none !important; }

/* The quiz answers these three; the form's own fields stay in the markup and
   are filled by pricing-quiz.js. Without JS (.s4d-pt-on missing) they show. */
.s4d-pt-on .s4d-field--restaurant_type,
.s4d-pt-on .s4d-field--monthly_volume,
.s4d-pt-on .s4d-field--num_locations { display: none !important; }

.s4d-pt { display: grid; gap: 14px; margin-bottom: 4px; --s4d-pt-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace; }
.s4d-pt__progress { display: grid; gap: 6px; }
.s4d-pt__count { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--s4d-blue); }
.s4d-pt__bar { display: block; height: 6px; background: var(--s4d-border); border-radius: 3px; overflow: hidden; }
.s4d-pt__bar span { display: block; height: 100%; width: 0; background: var(--s4d-blue); border-radius: 3px; }
@media (prefers-reduced-motion: no-preference) { .s4d-pt__bar span { transition: width .25s ease; } }

.s4d-pt__step { display: grid; gap: 12px; min-width: 0; }
.s4d-pt__q { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 800; color: var(--s4d-navy); }
.s4d-pt__q:focus { outline: none; }
.s4d-pt__q:focus-visible { outline: 2px solid var(--s4d-blue); outline-offset: 3px; border-radius: 2px; }
.s4d-pt__hint { margin: -6px 0 0; font-size: 14px; line-height: 1.45; color: var(--s4d-ink-500); }
.s4d-pt__hint:empty { display: none; }
.s4d-pt__subq { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--s4d-navy); }

.s4d-pt__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.s4d-pt__chip { position: relative; display: inline-flex; cursor: pointer; }
.s4d-pt__chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.s4d-pt__chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 14px; border: 1.5px solid var(--s4d-border); border-radius: 999px; background: var(--s4d-white); color: var(--s4d-ink-900); font-size: 15px; line-height: 1.2; }
.s4d-pt__chip:hover span { border-color: var(--s4d-blue); }
.s4d-pt__chip input:checked + span { background: var(--s4d-blue); border-color: var(--s4d-blue); color: var(--s4d-white); font-weight: 700; }
.s4d-pt__chip input:focus-visible + span { outline: 2px solid var(--s4d-blue); outline-offset: 2px; }

.s4d-pt__row { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.s4d-pt__row:not(:has(> :not([hidden]))) { display: none; }
.s4d-pt__check { display: inline-flex; gap: 10px; align-items: center; min-height: 40px; cursor: pointer; font-size: 15px; color: var(--s4d-ink-900); }
.s4d-pt__check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--s4d-blue); }

.s4d-pt__range { display: grid; gap: 6px; }
.s4d-pt__range-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--s4d-ink-900); }
.s4d-pt__range-val { font-family: var(--s4d-pt-mono); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--s4d-navy); }
.s4d-pt__range input[type="range"] { width: 100%; margin: 0; min-height: 32px; accent-color: var(--s4d-blue); }
.s4d-pt__range input:disabled { opacity: .45; }

.s4d-pt__helper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .s4d-pt__helper { grid-template-columns: 1fr; } }
.s4d-pt__field { display: grid; gap: 4px; font-size: 13px; color: var(--s4d-ink-500); }
.s4d-pt__field input { font: inherit; font-size: 16px; color: var(--s4d-ink-900); background: var(--s4d-white); border: 1px solid var(--s4d-border); border-radius: var(--s4d-radius-btn); padding: 9px 10px; width: 100%; font-variant-numeric: tabular-nums; }

.s4d-pt__insight { display: grid; gap: 4px; background: var(--s4d-blue-tint); border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.5; color: var(--s4d-ink-900); }
.s4d-pt__insight p { margin: 0; }
.s4d-pt__insight b { font-weight: 700; }
.s4d-pt__insight.is-warn { background: #FBF0DC; }
.s4d-pt-warn-txt { color: #8A5300; font-weight: 700; }

.s4d-pt__err { margin: 0; font-size: 14px; font-weight: 600; color: #B42318; }

.s4d-pt__nav { display: flex; gap: 10px; align-items: center; }
.s4d-pt__next { flex: 1; min-height: 50px; border: 0; border-radius: var(--s4d-radius-btn); background: var(--s4d-blue); color: var(--s4d-white); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.s4d-pt__next:hover { background: var(--s4d-blue-hover); }
.s4d-pt__back { min-height: 50px; padding: 0 16px; border: 1.5px solid var(--s4d-border); border-radius: var(--s4d-radius-btn); background: var(--s4d-white); color: var(--s4d-ink-700); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.s4d-pt__back:hover { border-color: var(--s4d-ink-400); }
.s4d-pt__next:focus-visible, .s4d-pt__back:focus-visible { outline: 2px solid var(--s4d-blue); outline-offset: 2px; }
.s4d-pt__back--top { justify-self: start; min-height: 40px; font-size: 14px; }
/* Theme 1.4.56: the contact step's Back, moved by pricing-quiz.js into the form's submit
   row (.s4d-form__nav, a flex row where the submit button is flex: 1). */
.s4d-form__nav > .s4d-pt__back--form { flex: none; align-self: stretch; }
/* Without JS there is nothing to step through. */
.s4d-pt-form:not(.s4d-pt-on) .s4d-pt__nav,
.s4d-pt-form:not(.s4d-pt-on) .s4d-pt__progress,
.s4d-pt-form:not(.s4d-pt-on) .s4d-pt__back--top { display: none; }

/* ---- /custom-estimate/: the quiz on its own (theme 1.4.46) -------------- */
.s4d-pt-solo { background: var(--s4d-light-bg); padding-block: clamp(28px, 5vw, 64px) clamp(48px, 7vw, 96px); }
.s4d-pt-solo__inner { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: 24px; justify-items: center; }
/* seolp-hero.css puts .s4d-ohero__card in the hero's grid area at 1024px+:
   here there is no hero grid, so it stacks under the intro. */
.s4d-pt-solo .s4d-pt-solo__inner > .s4d-pt-card { grid-area: auto; grid-column: 1; }
.s4d-pt-solo__intro { display: grid; gap: 10px; max-width: 680px; text-align: center; }
.s4d-pt-solo__h1 { margin: 0; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; color: var(--s4d-navy); text-wrap: balance; }
.s4d-pt-solo__sub { margin: 0; font-size: 17px; line-height: 1.5; color: var(--s4d-ink-600); }
.s4d-pt-solo .s4d-pt-card { width: 100%; max-width: 620px; margin: 0; }

/* ---- /thank-pricing/ ---------------------------------------------------- */
.s4d-pt-thanks .s4d-thankyou__inner { width: min(1160px, 100%); }
.s4d-pt-thanks .s4d-thankyou__content > p { max-width: 640px; margin-inline: auto; }
.s4d-pt-est { margin-top: 32px; text-align: left; --s4d-pt-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace; }
.s4d-pt-est__fallback { text-align: center; }
.s4d-pt-est__grid { display: grid; justify-items: center; }
.s4d-pt-receipt { width: min(420px, 100%); background: var(--s4d-white); border: 1px solid var(--s4d-border); border-radius: 8px; padding: 22px 20px 18px; font-family: var(--s4d-pt-mono); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--s4d-ink-900); box-shadow: 0 1px 2px rgba(11, 27, 58, .06); }
.s4d-pt-receipt h2 { margin: 0; text-align: center; font-family: var(--s4d-font); font-size: 20px; font-weight: 800; color: var(--s4d-navy); }
.s4d-pt-receipt__sub { text-align: center; color: var(--s4d-ink-500); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
.s4d-pt-dash { border: 0; border-top: 1px dashed var(--s4d-ink-400); margin: 14px 0; opacity: .6; }
.s4d-pt-line { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.s4d-pt-line > span:first-child { min-width: 0; }
.s4d-pt-line > span:last-child { white-space: nowrap; }
.s4d-pt-muted { color: var(--s4d-ink-500); }
.s4d-pt-sect { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--s4d-ink-500); margin-bottom: 6px; }
.s4d-pt-total { font-weight: 700; font-size: 15px; }
.s4d-pt-big { font-family: var(--s4d-font); font-size: 32px; font-weight: 800; text-align: center; margin: 6px 0 0; color: var(--s4d-navy); }
.s4d-pt-big small { font-size: 14px; font-weight: 500; color: var(--s4d-ink-500); }
.s4d-pt-offer { border: 1px solid var(--s4d-blue); border-radius: 6px; padding: 10px; text-align: center; display: grid; gap: 2px; }
.s4d-pt-offer b { font-family: var(--s4d-font); font-size: 16px; color: var(--s4d-blue); }
.s4d-pt-offer span { color: var(--s4d-ink-500); font-size: 12px; }
.s4d-pt-save { color: var(--s4d-success); font-weight: 700; }
.s4d-pt-fine { color: var(--s4d-ink-500); font-size: 12px; line-height: 1.5; margin: 12px 0 0; font-family: var(--s4d-font); }

.s4d-pt-cmp { margin-top: 44px; display: grid; gap: 14px; }
.s4d-pt-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--s4d-blue); }
.s4d-pt-cmp h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--s4d-navy); letter-spacing: -0.02em; text-wrap: balance; }
.s4d-pt-verdict { background: var(--s4d-blue-tint); border-radius: 10px; padding: 14px 16px; font-size: 16px; line-height: 1.5; color: var(--s4d-ink-900); }
.s4d-pt-verdict b { font-size: 19px; }
.s4d-pt-verdict.is-warn { background: #FBF0DC; color: #8A5300; }
.s4d-pt-cmp__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1099px) { .s4d-pt-cmp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .s4d-pt-cmp__grid { grid-template-columns: 1fr; } }
.s4d-pt-card { background: var(--s4d-white); border: 1px solid var(--s4d-border); border-radius: var(--s4d-radius-card); padding: 18px; display: grid; gap: 6px; align-content: start; min-width: 0; font-variant-numeric: tabular-nums; }
.s4d-pt-card.is-win { border-color: var(--s4d-blue); box-shadow: inset 0 0 0 1px var(--s4d-blue); }
.s4d-pt-card__name { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 18px; font-weight: 800; color: var(--s4d-navy); }
.s4d-pt-tag { font-family: var(--s4d-pt-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--s4d-blue); }
.s4d-pt-card__best { justify-self: start; font-family: var(--s4d-pt-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--s4d-white); background: var(--s4d-blue); border-radius: 999px; padding: 2px 8px; }
.s4d-pt-card__total { font-family: var(--s4d-pt-mono); font-size: 24px; font-weight: 700; color: var(--s4d-ink-900); }
.s4d-pt-card__total small { font-family: var(--s4d-font); font-size: 13px; font-weight: 400; color: var(--s4d-ink-500); }
.s4d-pt-bar { height: 8px; background: var(--s4d-border); border-radius: 4px; overflow: hidden; margin: 2px 0 8px; }
.s4d-pt-bar span { display: block; height: 100%; background: var(--s4d-ink-400); border-radius: 4px; }
.s4d-pt-card.is-win .s4d-pt-bar span { background: var(--s4d-blue); }
.s4d-pt-card .s4d-pt-line { font-family: var(--s4d-pt-mono); font-size: 13px; border-top: 1px solid var(--s4d-border); padding: 7px 0 5px; gap: 10px; }
.s4d-pt-card .s4d-pt-line:first-child { border-top: 0; }
.s4d-pt-lbl { font-family: var(--s4d-font); font-size: 14px; }
.s4d-pt-lbl small { display: block; color: var(--s4d-ink-500); font-size: 12px; }
