/* The instant quote tool: /quotes/ and the private quote pages (inc/quotes.php).

   Ported 2026-11-19 from the sister site's assets/quotes.css and restyled for
   this theme. The class names are the tool's own, unchanged (.btn, .notice,
   .card, .opt ...), because inc/quotes.php and assets/quotes.js write them and
   those two files are kept in step with their source. To keep such plain
   names from touching the rest of the site, EVERY RULE HERE STARTS WITH .pb-q,
   the element the tool sits in.

   NO COLOR AND NO FONT IS NAMED IN THIS FILE, with one exception just below.
   Everything else is a variable printed by inc/look.php (--pb-head, --pb-band,
   --pb-f-head ...), so the tool changes with the look like the rest of the
   site. Light only, like the rest of the site.

   One mobile-first column. It has to work at 375px wide. */

.pb-q {
	/* THE EXCEPTION: three status hues, the only colors named in this file.
	   Available, check with us, not available. They are plain utility colors,
	   the same in every look, and are only ever used mixed into the look's own
	   paper color (the tints) or as a thin edge and a heading. */
	--q-good: #2E6B45;
	--q-warn: #8A5A00;
	--q-bad: #9A2A22;
	--q-good-bg: color-mix(in srgb, var(--q-good) 9%, var(--pb-paper));
	--q-warn-bg: color-mix(in srgb, var(--q-warn) 10%, var(--pb-paper));
	--q-bad-bg: color-mix(in srgb, var(--q-bad) 8%, var(--pb-paper));

	/* Built from the look. */
	--q-line: var(--pb-rule, color-mix(in srgb, var(--pb-head) 18%, transparent));
	--q-edge: color-mix(in srgb, var(--pb-head) 45%, var(--pb-paper));   /* box edges that must be seen */
	--q-muted: color-mix(in srgb, var(--pb-ink) 84%, var(--pb-paper));
	--q-sunk: color-mix(in srgb, var(--pb-band) 55%, var(--pb-paper));
	--q-r: var(--pb-radius, 3px);
	--q-r2: calc(var(--pb-radius, 3px) * 2.5);

	max-width: 720px;
	margin-inline: auto;
	padding-block: clamp(1.2rem, 4vw, 2.4rem) clamp(2.5rem, 7vw, 4.5rem);
	color: var(--pb-ink);
	font-family: var(--pb-f-body);
	font-size: 1.0625rem;
	line-height: 1.55;
}
.pb-q *, .pb-q *::before, .pb-q *::after { box-sizing: border-box }
/* The date check sits under the site's page-head band, whose words start at
   the left edge. So does this form, a little narrower, so the headline and
   the date box line up. The other views have no band and stay centered. */
.pb-quotes-check .pb-quotes-page .pb-q { max-width: 620px; margin-inline: 0 }

/* ------------------------------------------------------------------ type */

.pb-q h1, .pb-q h2, .pb-q h3 {
	font-family: var(--pb-f-head); font-weight: var(--pb-f-head-w, 400); letter-spacing: var(--pb-f-head-ls, 0);
	color: var(--pb-head); margin: 0; text-wrap: balance;
}
.pb-q h1 { font-size: calc(clamp(1.9rem, 6vw, 2.6rem) * var(--pb-f-scale, 1)); line-height: 1.08 }
.pb-q h2 { font-size: calc(clamp(1.5rem, 4.4vw, 1.9rem) * var(--pb-f-scale, 1)); line-height: 1.15 }
.pb-q h3 { font-size: calc(1.25rem * var(--pb-f-scale, 1)); line-height: 1.2 }
.pb-q p { margin: 0 }
.pb-q a { color: var(--pb-head) }
.pb-q b, .pb-q strong { color: var(--pb-head) }
.pb-q .label {
	display: inline-block; font-family: var(--pb-f-body); font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
	color: var(--pb-label);
}
.pb-q .hint { font-size: .9rem; color: var(--q-muted) }
.pb-q .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }

/* ---------------------------------------------------------------- layout */

.pb-q .wrap { margin: 0 }
.pb-q section { display: grid; gap: 18px; padding-block: 22px }
.pb-q .wrap > section:first-child { padding-top: 0 }
.pb-q .hero { padding-block: 8px; display: grid; gap: 12px }
.pb-q .hero p { color: var(--q-muted); max-width: 52ch }
.pb-q .preview {
	background: var(--pb-band); color: var(--pb-head); border-radius: var(--q-r);
	font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 7px 14px; margin-bottom: 18px;
}
/* The buttons in the tool jump to parts of the page. The site's header stays
   at the top of the window, so each landing place leaves room for it. */
.pb-q #themes, .pb-q #builder, .pb-q .quotebox, .pb-q .booking, .pb-q .sent { scroll-margin-top: 6.5rem }

/* ----------------------------------------------------------------- forms */

.pb-q form { display: grid; gap: 14px; margin: 0 }
.pb-q .field { display: grid; gap: 5px }
.pb-q .field label { font-weight: 700; font-size: .95rem; color: var(--pb-head); margin: 0 }
.pb-q .field label .hint { font-weight: 400 }
.pb-q .field small { color: var(--q-muted); font-size: .88rem }
.pb-q input {
	font: inherit; font-size: 1.1rem; padding: 12px 14px; margin: 0; width: 100%;
	border: 1.5px solid var(--q-edge); border-radius: var(--q-r); background: var(--pb-paper); color: var(--pb-head);
}
.pb-q input:focus { outline: 3px solid var(--pb-accent); outline-offset: 1px; border-color: var(--pb-head) }
.pb-q input[type=checkbox] { width: 22px; height: 22px; padding: 0; flex: none; accent-color: var(--pb-head) }
.pb-q input:disabled { opacity: .45 }
.pb-q .check { display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--pb-head) }
.pb-q .check.nodate, .pb-q .field label.check { font-weight: 400; margin-top: 4px; color: var(--pb-ink) }
.pb-q .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }
.pb-q .row2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr }
@media (max-width: 480px) { .pb-q .row2 { grid-template-columns: 1fr } }

/* --------------------------------------------------------------- buttons */

/* The same recipe as .pb-btn in assets/css/site.css, on the tool's own class
   names. If the site's button changes shape, change this to match. */
.pb-q .btn {
	appearance: none; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px;
	padding: .85rem 1.4rem; background: var(--pb-btn-bg); color: var(--pb-btn-fg); border: 2px solid var(--pb-btn-bg); border-radius: var(--q-r);
	font-family: var(--pb-f-body); font-size: .82rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; text-decoration: none; line-height: 1.25; text-align: center;
	cursor: pointer; transition: filter .25s ease, box-shadow .25s ease;
}
.pb-q .btn:hover { filter: brightness(1.05); box-shadow: 0 6px 18px color-mix(in srgb, var(--pb-head) 18%, transparent) }
.pb-q .btn.ghost { background: transparent; color: var(--pb-head); border-color: var(--pb-head) }
.pb-q .btn.small { display: inline-flex; width: auto; min-height: 42px; font-size: .72rem; padding: .55rem 1rem; letter-spacing: .12em }
.pb-q .btn.big { min-height: 60px; font-size: .95rem; margin: 14px 0 }
.pb-q .btn[disabled] { opacity: .5; cursor: wait }
.pb-q .btn:focus-visible, .pb-q .opt:focus-visible, .pb-q .linkbtn:focus-visible, .pb-q .step:focus-visible, .pb-q summary:focus-visible { outline: 3px solid var(--pb-accent); outline-offset: 2px }
.pb-q .linkbtn {
	background: none; border: 0; padding: 0; color: var(--pb-head); font: inherit; font-weight: 700; cursor: pointer;
	text-decoration: underline; text-decoration-color: var(--pb-accent); text-decoration-thickness: 2px; text-underline-offset: .2em;
	justify-self: start; text-align: left;
}
/* On a wide screen a button as wide as the column shouts. Let it be as wide as its words. */
@media (min-width: 640px) {
	.pb-q .btn { width: auto; min-width: 17rem; justify-self: start }
	.pb-q .btn.small { min-width: 0 }
	.pb-q .cardbtns .btn, .pb-q .barin .btn { justify-self: auto }
}

/* --------------------------------------------------------------- notices */

.pb-q .notice { border-radius: var(--q-r2); padding: 16px 18px; display: grid; gap: 8px; margin: 0; border-left: 4px solid var(--q-line) }
.pb-q .notice.good { background: var(--q-good-bg); border-left-color: var(--q-good) }
.pb-q .notice.warn { background: var(--q-warn-bg); border-left-color: var(--q-warn) }
.pb-q .notice.bad { background: var(--q-bad-bg); border-left-color: var(--q-bad) }
.pb-q .notice.plain { background: var(--q-sunk); border-left-color: var(--pb-accent) }
.pb-q .notice strong { font-family: var(--pb-f-head); font-weight: var(--pb-f-head-w, 400); font-size: calc(1.4rem * var(--pb-f-scale, 1)); line-height: 1.2 }
.pb-q .notice.good strong { color: var(--q-good) }
.pb-q .notice.warn strong { color: var(--q-warn) }
.pb-q .notice.bad strong { color: var(--q-bad) }
.pb-q .notice p { color: var(--pb-ink) }
.pb-q p.notice.bad, .pb-q p.notice.warn { color: var(--pb-head) }
.pb-q .email-big { font-size: 1.2rem; font-weight: 700; color: var(--pb-head); word-break: break-all; margin: 0 }
.pb-q .welcome { display: grid; gap: 10px; margin-top: 6px; line-height: 1.6 }
.pb-q .welcome a[href^="tel:"] { white-space: nowrap }
.pb-q .price-line { color: var(--q-muted); max-width: 56ch; font-size: .95rem; border-top: 1px solid var(--q-line); padding-top: 16px }
.pb-q .hint.fine { margin-top: 14px }

/* The two-step date check (2026-11-16): hidden parts stay hidden. */
.pb-q .dc-step1 [hidden], .pb-q .dc-step2[hidden], .pb-q .dc-ask[hidden], .pb-q .dc-check[hidden] { display: none !important }
.pb-q .dc-answer:empty { display: none }
.pb-q .dc-step1, .pb-q .dc-step2 { display: grid; gap: 14px }
.pb-q .dc-ask h3 { margin: 0 0 4px }
.pb-q .dc-ask p { margin: 0 0 6px }

/* -------------------------------------------------- the private quote page */

/* FIGURES ARE SET IN THE BODY FONT, never the headline font. In a headline face
   such as Marcellus a zero is drawn like a capital O and a one like a capital I,
   so "100 guests" reads "IOO" and "$56.00" reads "$56.OO". On a page whose whole
   job is the number, that is not a matter of taste. */

.pb-q .quotehead { display: grid; gap: 8px; border-bottom: 1px solid var(--q-line); padding-bottom: 18px }
.pb-q .facts { display: flex; flex-wrap: wrap; gap: 8px }
.pb-q .pill {
	font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--pb-head);
	background: var(--pb-band); border-radius: 999px; padding: 5px 13px;
}
.pb-q .guests { display: flex; align-items: center; gap: 10px }
.pb-q .guests input { width: 110px; text-align: center; font-family: var(--pb-f-body); font-weight: 700; font-size: 1.5rem; font-variant-numeric: tabular-nums lining-nums }
.pb-q .step {
	width: 50px; height: 50px; flex: none; border-radius: var(--q-r); border: 1.5px solid var(--pb-head); background: var(--pb-paper); color: var(--pb-head);
	font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.pb-q .mins, .pb-q .incl, .pb-q .included { background: var(--q-sunk); border-radius: var(--q-r2); padding: 14px 16px }
.pb-q .mins { display: grid; gap: 4px }
.pb-q .incl summary { cursor: pointer }
.pb-q .incl ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 7px }
.pb-q .included ul { margin: 6px 0 0; padding-left: 18px }
.pb-q li::marker { color: var(--pb-accent) }

/* Theme cards. */
.pb-q .cards { display: grid; gap: 16px }
.pb-q .card { background: var(--pb-paper); border: 1px solid var(--q-line); border-radius: var(--q-r2); padding: 20px; display: grid; gap: 12px; min-width: 0 }
.pb-q .card.anchor { border: 1px solid var(--pb-accent); box-shadow: 0 0 0 1px var(--pb-accent) }
.pb-q .card.over { opacity: .6 }
.pb-q .cardtop { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px }
.pb-q .cardtop h3 { font-size: calc(1.55rem * var(--pb-f-scale, 1)); margin-top: 2px }
.pb-q .level { font-family: var(--pb-f-body); font-weight: 700; font-size: .95rem; letter-spacing: .12em; color: var(--pb-accent-text); white-space: nowrap }
.pb-q .level span { opacity: .25 }
.pb-q .range { font-family: var(--pb-f-body); font-weight: 700; font-size: 1.25rem; color: var(--pb-head); font-variant-numeric: tabular-nums lining-nums; line-height: 1.25 }
.pb-q .range small { font-weight: 400; font-size: .88rem; color: var(--q-muted) }
.pb-q .feat { display: flex; flex-wrap: wrap; gap: 6px; align-items: center }
.pb-q .feat .label { margin-right: 2px }
.pb-q .feat span:not(.label) { font-size: .88rem; border: 1px solid var(--q-line); border-radius: 999px; padding: 3px 11px }
.pb-q .feat .more { color: var(--q-muted) }
.pb-q .cardbtns { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center }
.pb-q .fullmenu { display: grid; gap: 10px; background: var(--q-sunk); border-radius: var(--q-r); padding: 14px }
.pb-q .fullmenu ul { margin: 4px 0 0; padding-left: 18px }
.pb-q .budget { border: 1px dashed var(--q-edge); border-radius: var(--q-r2); padding: 18px; display: grid; gap: 8px }
.pb-q .minline { background: var(--q-warn-bg); border-radius: var(--q-r); padding: 8px 12px; font-size: .95rem; margin: 0 }
.pb-q .themebar { display: grid; gap: 6px; justify-items: start }
.pb-q .themebar .btn { margin-top: 4px }

/* The builder: one row per dish. */
.pb-q .group { display: grid; gap: 10px; padding-block: 8px }
.pb-q .grouphead { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap }
.pb-q .say { font-size: 1rem; color: var(--pb-ink) }
.pb-q .say b { color: var(--pb-head) }
.pb-q .opts { display: grid; gap: 8px }
.pb-q .optwrap { display: grid; gap: 4px }
.pb-q .opt {
	display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; width: 100%;
	background: var(--pb-paper); border: 1.5px solid var(--q-line); border-radius: var(--q-r2); padding: 12px 14px; font: inherit; color: var(--pb-head); cursor: pointer;
}
.pb-q .opt[aria-pressed="true"] { border-color: var(--pb-head); background: var(--q-sunk) }
.pb-q .opt[aria-pressed="true"] .tick { background: var(--pb-head); color: var(--pb-paper); border-color: var(--pb-head) }
.pb-q .opt[aria-disabled="true"] { opacity: .55; cursor: default }
.pb-q .opt.extra { border-style: dashed; border-color: var(--q-edge) }
.pb-q .opt .nm { display: flex; gap: 10px; align-items: center; min-width: 0 }
.pb-q .tick { flex: none; width: 24px; height: 24px; border-radius: var(--q-r); border: 1.5px solid var(--q-edge); display: grid; place-items: center; font-weight: 700; font-size: .95rem }
.pb-q .opt .pr { color: var(--q-muted); white-space: nowrap; font-size: .9rem }
.pb-q .opt .cap { display: block; font-size: .8rem; color: var(--q-muted); font-weight: 400 }
.pb-q .opt s { color: var(--q-muted) }
/* Relative price: where this dish sits among its own group in this theme.
   Jeremy, 2026-10-24: no dollar figure per dish; the theme ranges stay. */
.pb-q .gauge { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .78rem; letter-spacing: .04em; color: var(--q-muted) }
.pb-q .g-track { position: relative; width: 56px; height: 2px; background: var(--q-edge); border-radius: 2px }
.pb-q .g-mark { position: absolute; top: -6px; width: 4px; height: 14px; margin-left: -2px; background: var(--pb-accent); border-radius: 2px }
.pb-q .groupnote { font-size: .9rem; color: var(--q-warn) }
.pb-q .about { font-size: .95rem; padding: 0 4px }
.pb-q .about summary { cursor: pointer; color: var(--pb-head); font-weight: 700; font-size: .85rem }
.pb-q .about p { margin-top: 4px; color: var(--pb-ink) }
/* A long dish name beside its price mark must never push the row wider than a phone. */
@media (max-width: 480px) {
	.pb-q .opt { padding: 11px 12px; gap: 8px }
	.pb-q .opt .pr { white-space: normal; text-align: right; max-width: 42% }
	.pb-q .gauge { white-space: nowrap }
	.pb-q .g-track { width: 34px }
}

/* The quote itself. */
.pb-q .quotebox { display: grid; gap: 14px; background: var(--pb-paper); border: 1px solid var(--pb-head); border-radius: var(--q-r2); padding: 20px }
.pb-q .quotebox .pill { justify-self: start }
.pb-q .total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap }
.pb-q .total b { font-family: var(--pb-f-body); font-weight: 700; font-size: 1.9rem; color: var(--pb-head); font-variant-numeric: tabular-nums lining-nums; line-height: 1.1 }
.pb-q .totnum { display: flex; align-items: baseline; gap: 8px }
.pb-q .breakdown { display: grid; gap: 5px; font-size: .95rem; font-variant-numeric: tabular-nums }
.pb-q .breakdown div { display: flex; justify-content: space-between; gap: 12px }
.pb-q .breakdown .sum { font-weight: 700; color: var(--pb-head); border-top: 1px solid var(--q-edge); padding-top: .45em; margin-top: .25em }
.pb-q .perk { background: var(--q-good-bg); border-left: 4px solid var(--q-good); border-radius: var(--q-r); padding: 10px 12px; font-size: .95rem }
/* A percent-off offer, when one is running: regular total crossed out, the saving, then the new total. */
.pb-q .promo { display: grid; gap: 4px; font-size: .95rem; font-variant-numeric: tabular-nums }
.pb-q .promo div { display: flex; justify-content: space-between; gap: 12px }
.pb-q .promo s, .pb-q .totnum s, .pb-q .compare s { color: var(--q-muted) }
.pb-q .promo .save, .pb-q .breakdown .save { color: var(--q-good); font-weight: 700 }
.pb-q .choice { display: grid; gap: 8px }
.pb-q .tip { background: var(--q-sunk); border-left: 4px solid var(--pb-accent); border-radius: var(--q-r); padding: 10px 12px; font-size: .95rem }
.pb-q .disclaimer { font-size: .82rem; color: var(--q-muted); border-top: 1px solid var(--q-line); padding-top: 12px }
/* The booking form behind "This is what I want!". */
.pb-q .booking { display: grid; gap: 10px; margin-top: 14px; padding: 16px; border: 1px solid var(--q-line); border-radius: var(--q-r2); background: var(--q-sunk) }
.pb-q .nextsteps { background: var(--pb-paper); border-left: 3px solid var(--pb-accent); padding: 10px 12px; font-size: .95rem; margin: 4px 0 }

/* Compare your quotes: one column per quote, sideways scroll on a phone. */
.pb-q .sent { display: grid; gap: 10px; margin-top: 8px }
.pb-q .compare { overflow-x: auto; border: 1px solid var(--q-line); border-radius: var(--q-r2); background: var(--pb-paper) }
.pb-q .compare:focus-visible { outline: 3px solid var(--pb-accent); outline-offset: 2px }
.pb-q .compare table { border-collapse: collapse; font-size: .95rem; min-width: 100% }
.pb-q .compare th, .pb-q .compare td { padding: 10px 12px; border-bottom: 1px solid var(--q-line); text-align: left; vertical-align: top; min-width: 150px }
.pb-q .compare tbody th {
	position: sticky; left: 0; background: var(--q-sunk); min-width: 96px; max-width: 110px;
	font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--pb-label);
}
.pb-q .compare thead th { font-family: var(--pb-f-body); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; color: var(--pb-head) }
.pb-q .compare thead th:first-child { position: sticky; left: 0; background: var(--q-sunk); min-width: 96px; max-width: 110px }
.pb-q .compare thead th.now { box-shadow: inset 0 -3px 0 var(--pb-accent) }
.pb-q .compare td b { font-family: var(--pb-f-body); font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums lining-nums }
.pb-q .compare tr:last-child th, .pb-q .compare tr:last-child td { border-bottom: 0 }
.pb-q .compare td.pick { vertical-align: top }
.pb-q .compare td.pick .btn { width: 100%; min-width: 0; margin-bottom: 8px; white-space: nowrap }

/* The total, pinned to the bottom of the window while a menu is being built. */
.pb-q .bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--pb-paper); border-top: 1px solid var(--pb-head);
	box-shadow: 0 -8px 24px color-mix(in srgb, var(--pb-head) 10%, transparent);
	padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.pb-q .barin { max-width: 720px; margin: 0 auto; display: grid; gap: 10px }
.pb-q .barin .total b { font-size: 1.6rem }
.pb-q .barin .btn { width: 100%; min-width: 0 }
@media (min-width: 640px) {
	.pb-q .barin:has(.btn) { grid-template-columns: 1fr auto; align-items: center; gap: 24px }
	.pb-q .barin .btn { width: auto }
}
/* Room under the page for that pinned total, in the footer's own color. */
body.pb-quotes-quote .pb-foot { padding-bottom: 150px }

@media (prefers-reduced-motion: no-preference) {
	.pb-q .card, .pb-q .notice { animation: pb-q-rise .3s ease-out }
	@keyframes pb-q-rise { from { transform: translateY(6px) } to { transform: none } }
}

@media print {
	.pb-q .bar { display: none }
}
