/* Nest quote wizard. Every rule is scoped to .nq-root. Brand colours from the
   site's own palette; fonts are the site's Playfair Display and Poppins. */
.nq-root {
  --nq-white: #ffffff;
  --nq-cream: #f8f1e1;
  --nq-cream-2: #f2ead6;
  --nq-cream-3: #ebe2ca;
  --nq-edge: #ddd3b8;
  --nq-green: #285533;
  --nq-green-deep: #1c3a22;
  --nq-green-mid: #446342;
  --nq-olive: #588140;
  --nq-sage-ink: #4c6733;
  --nq-tan: #d3c7a1;
  --nq-ink: #23301f;
  --nq-ink-soft: #4a5544;
  --nq-err: #9c3a24;
  --nq-err-tint: #f6e7e1;
  --nq-glide: cubic-bezier(.2, .75, .25, 1);
  --nq-line: #8a7e5c; /* control outlines: 4.0:1 on white, 3.6:1 on cream */
  --nq-serif: 'Playfair Display', Georgia, serif;
  --nq-sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--nq-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  /* Playfair draws old-style numerals by default; lining ones sit level */
  font-variant-numeric: lining-nums;
  color: var(--nq-ink);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
.nq-root[hidden] { display: none; }
.nq-root [hidden] { display: none !important; }
.nq-root *, .nq-root *::before, .nq-root *::after { box-sizing: border-box; }

.nq-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 58, 34, .52);
  opacity: 0;
  transition: opacity 240ms ease;
}
.nq-root.is-open .nq-backdrop { opacity: 1; }

.nq-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(600px, 100vw - 32px);
  /* one height for every step, so the card never jumps between steps; a
     longer step scrolls inside it */
  height: min(720px, calc(100vh - 48px));
  height: min(720px, calc(100dvh - 48px));
  background: var(--nq-cream);
  border-radius: 22px;
  box-shadow: 0 30px 70px -28px rgba(28, 58, 34, .55), 0 2px 0 rgba(255, 255, 255, .6) inset;
  overflow: hidden;
  opacity: 0;
  transform: translateY(22px) scale(.985);
  transition: opacity 340ms var(--nq-glide), transform 340ms var(--nq-glide);
}
.nq-root.is-open .nq-panel { opacity: 1; transform: none; }
.nq-root:not(.is-open) .nq-panel { transition-duration: 180ms; }

/* ------------------------------------------------ header */
.nq-top {
  position: relative;
  padding: 14px 22px 8px;
  border-bottom: 1px solid var(--nq-edge);
  background: var(--nq-cream);
}
.nq-title {
  margin: 2px 52px 0 0;
  font-family: var(--nq-serif);
  font-weight: 500;
  font-size: clamp(1.45rem, 4.6vw, 1.8rem);
  line-height: 1.15;
  color: var(--nq-green-deep);
}
.nq-mark { position: relative; display: inline-block; font-style: italic; color: var(--nq-sage-ink); }
.nq-mark svg { position: absolute; left: -3%; bottom: -.16em; width: 106%; height: .42em; overflow: visible; }
.nq-mark path {
  fill: none;
  stroke: var(--nq-tan);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 900ms var(--nq-glide) 260ms;
}
.nq-root.is-open .nq-mark path { stroke-dashoffset: 0; }
.nq-mark { z-index: 0; }
.nq-mark svg { z-index: -1; }

.nq-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--nq-edge);
  border-radius: 50%;
  background: var(--nq-white);
  color: var(--nq-green-deep);
  cursor: pointer;
}
.nq-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nq-close:hover { background: var(--nq-cream-2); }

/* ------------------------------------------------ progress: branch, bird, nest */
.nq-progress { margin-top: 6px; }
.nq-stepcount { display: block; margin-top: -2px; font-size: .82rem; font-weight: 500; color: var(--nq-sage-ink); letter-spacing: .02em; }
.nq-track { --clip: 100%; --grow: .5; position: relative; height: 62px; }
.nq-branch { position: absolute; left: 0; top: 38px; width: 100%; height: 20px; overflow: visible; }
.nq-branch path { fill: none; stroke: #c4b48a; stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.nq-branch-fill { clip-path: inset(0 var(--clip) 0 0); transition: clip-path 760ms cubic-bezier(.45, .05, .25, 1); }
.nq-branch-fill path { stroke: var(--nq-olive); stroke-width: 5; }
.nq-leafbud { position: absolute; top: 50px; width: 13px; height: 7px; border-radius: 0 100% 0 100%; background: #84a869; transform: rotate(18deg); }
.nq-leafbud.is-up { top: 40px; transform: rotate(-160deg); }

.nq-bird { position: absolute; left: 0; top: 13px; z-index: 2; width: 46px; height: 38px; transform: translate(var(--bx, 0px), 0); transition: transform 760ms cubic-bezier(.45, .05, .25, 1); }
.nq-bird.is-home { transform: translate(var(--bx, 0px), -9px); }
.nq-bird svg { display: block; width: 46px; height: 38px; overflow: visible; transform-origin: 50% 100%; animation: nq-bob 2.4s ease-in-out infinite; }
.nq-bird-hop { animation: nq-hop 6.8s ease-in-out 1.2s infinite; }
.nq-b-body { fill: var(--nq-olive); }
.nq-b-dark { fill: var(--nq-green-deep); }
.nq-b-belly { fill: var(--nq-cream); }
.nq-b-eye { fill: var(--nq-ink); }
.nq-b-glint { fill: var(--nq-white); }
.nq-b-beak { fill: #c99a4b; }
.nq-b-legs { fill: none; stroke: var(--nq-green-deep); stroke-width: 1.6; stroke-linecap: round; }
.nq-b-wing { transform-box: view-box; transform-origin: 26px 19px; animation: nq-flick 5.6s ease-in-out 2s infinite; }
.nq-twig-carry { fill: none; stroke: #8b6b3d; stroke-width: 1.9; stroke-linecap: round; opacity: 0; transition: opacity 150ms ease; }
.nq-bird.is-flying .nq-bird-fly { animation: nq-arc 760ms ease-in-out; }
.nq-bird.is-flying svg, .nq-bird.is-flying .nq-bird-hop { animation: none; }
.nq-bird.is-flying .nq-b-wing { animation: nq-flap 150ms linear infinite; }
.nq-bird.is-flying .nq-b-legs { opacity: .35; }
.nq-bird.is-fwd .nq-twig-carry { opacity: 1; }
.nq-bird.is-back svg { transform: scaleX(-1); }

.nq-nestbox { position: absolute; right: 0; top: 16px; z-index: 3; width: 70px; height: 44px; transform: scale(var(--grow)); transform-origin: 50% 88%; transition: transform 600ms var(--nq-glide) 200ms; }
.nq-nestbox svg { display: block; width: 70px; height: 44px; overflow: visible; }
.nq-cup { fill: var(--nq-cream-3); }
.nq-nest-twigs path { fill: none; stroke-width: 2.4; stroke-linecap: round; opacity: 0; transition: opacity 400ms ease 300ms; }
.nq-nest-twigs path:nth-child(odd) { stroke: var(--nq-green-deep); }
.nq-nest-twigs path:nth-child(even) { stroke: #8b6b3d; }
.nq-nest-twigs path.is-on { opacity: 1; }
.nq-egg { fill: var(--nq-white); stroke: var(--nq-green-mid); stroke-width: 1.8; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.nq-root.is-done .nq-egg { opacity: 1; animation: nq-egg-in 900ms 750ms both; }

@keyframes nq-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-1.6px) rotate(-1.5deg); } }
@keyframes nq-hop { 0%, 84%, 92%, 98%, 100% { transform: none; } 88% { transform: translateY(-8px); } 95% { transform: translateY(-3px); } }
@keyframes nq-flick { 0%, 60%, 72%, 100% { transform: none; } 64% { transform: rotate(-30deg); } 68% { transform: rotate(5deg); } }
@keyframes nq-flap { 0%, 100% { transform: rotate(14deg); } 50% { transform: rotate(-42deg); } }
@keyframes nq-arc { 0% { transform: none; } 45% { transform: translateY(-16px) rotate(-5deg); } 100% { transform: none; } }
@keyframes nq-egg-in {
  0% { opacity: 0; transform: translateY(-12px); }
  55% { opacity: 1; transform: translateY(1px) scale(1.07, .92); }
  78% { transform: translateY(-1px) scale(.97, 1.03); }
  100% { opacity: 1; transform: none; }
}

/* ------------------------------------------------ body and steps */
.nq-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px 22px 22px;
  scroll-padding: 24px 0 96px;
}
.nq-pane { opacity: 1; }
.nq-pane.from-right, .nq-pane.from-left { opacity: 0; transition: opacity 300ms ease, transform 300ms var(--nq-glide); }
.nq-pane.from-right { transform: translateX(18px); }
.nq-pane.from-left { transform: translateX(-18px); }
.nq-pane.is-in { opacity: 1; transform: none; }

.nq-h { margin: 0 0 4px; font-family: var(--nq-serif); font-weight: 500; font-size: 1.3rem; line-height: 1.2; color: var(--nq-green-deep); outline: none; }
.nq-h4 { margin: 0 0 4px; font-family: var(--nq-serif); font-weight: 500; font-size: 1.08rem; color: var(--nq-green-deep); }
.nq-sub { margin: 0 0 16px; color: var(--nq-ink-soft); }
.nq-fine { margin: 10px 0 0; font-size: .86rem; line-height: 1.55; color: var(--nq-ink-soft); }
.nq-strong { font-weight: 500; color: var(--nq-ink); }
.nq-note { margin: 8px 0 0; font-size: .88rem; color: var(--nq-ink-soft); min-height: 0; }
.nq-note:empty { display: none; }
.nq-note.is-warn { color: var(--nq-err); background: var(--nq-err-tint); padding: 8px 12px; border-radius: 10px; }
.nq-aside { margin: 14px 0 0; font-size: .9rem; color: var(--nq-ink-soft); }
.nq-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 500;
  color: var(--nq-green);
  text-decoration: underline;
  text-decoration-color: var(--nq-olive);
  text-underline-offset: 3px;
  cursor: pointer;
}
.nq-nb { white-space: nowrap; }
.nq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* choices */
.nq-choices { display: grid; gap: 10px; margin: 0; }
.nq-two { grid-template-columns: 1fr 1fr; }
.nq-choice { position: relative; display: block; cursor: pointer; }
.nq-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nq-choice-in {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 14px;
  background: var(--nq-white);
  border: 2px solid var(--nq-line);
  border-radius: 16px;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.nq-choice:hover .nq-choice-in { border-color: var(--nq-tan); }
.nq-choice input:checked + .nq-choice-in { border-color: var(--nq-green); background: var(--nq-cream-2); }
.nq-choice input:focus-visible + .nq-choice-in { outline: 2px solid var(--nq-olive); outline-offset: 3px; }
.nq-choice:active .nq-choice-in { transform: scale(.99); }
.nq-choice-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--nq-cream); color: var(--nq-green); }
.nq-choice-ico svg { width: 28px; height: 28px; }
.nq-choice-ico .ico-knock { fill: var(--nq-cream); }
.nq-choice-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.nq-choice-title { font-weight: 500; color: var(--nq-green-deep); line-height: 1.3; }
.nq-choice-desc { font-size: .86rem; color: var(--nq-ink-soft); line-height: 1.4; }
.nq-tick { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--nq-line); display: grid; place-items: center; }
.nq-tick svg { width: 14px; height: 14px; fill: none; stroke: var(--nq-white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.nq-choice input:checked + .nq-choice-in .nq-tick { background: var(--nq-green); border-color: var(--nq-green); }
.nq-choice input:checked + .nq-choice-in .nq-tick svg { opacity: 1; }

/* fields */
.nq-field { margin: 0 0 14px; }
.nq-field label { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 500; color: var(--nq-ink); }
.nq-field input, .nq-field textarea, .nq-field select {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--nq-ink);
  background: var(--nq-white);
  border: 1.5px solid var(--nq-line);
  border-radius: 12px;
  -webkit-appearance: none;
  appearance: none;
}
.nq-field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.nq-field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23285533' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}
/* the same 2px olive ring the buttons have */
.nq-field input:focus, .nq-field textarea:focus, .nq-field select:focus { outline: 2px solid var(--nq-olive); outline-offset: 3px; border-color: var(--nq-olive); }
.nq-field input[aria-invalid='true'] { border-color: var(--nq-err); }
.nq-err { margin: 6px 0 0; font-size: .84rem; color: var(--nq-err); }
.nq-sqft-in { position: relative; }
.nq-sqft-in input { padding-right: 64px; font-weight: 500; }
.nq-sqft-in span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: .88rem; color: var(--nq-ink-soft); pointer-events: none; }
.nq-req { margin: -4px 0 12px; font-size: .8rem; color: var(--nq-ink-soft); }
/* a group of choices with its own legend, set like a field label */
.nq-set { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.nq-set legend { padding: 0; margin-bottom: 6px; font-size: .88rem; font-weight: 500; color: var(--nq-ink); }
.nq-terms { margin: 0 0 12px; }
.nq-terms a { display: inline-block; padding: 13px 0; margin: -13px 0; color: var(--nq-green); font-weight: 500; text-decoration-color: var(--nq-olive); text-underline-offset: 3px; }
.nq-terms a:focus-visible { outline: 2px solid var(--nq-olive); outline-offset: 2px; border-radius: 4px; }
.nq-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nq-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.nq-senderr { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--nq-err-tint); color: var(--nq-err); font-size: .9rem; }
.nq-senderr a { color: inherit; font-weight: 500; }

/* counts */
.nq-counts { display: grid; gap: 4px; margin-top: 6px; background: var(--nq-white); border: 1px solid var(--nq-edge); border-radius: 16px; padding: 4px 14px; }
.nq-count { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.nq-counts .nq-count + .nq-count { border-top: 1px solid var(--nq-cream-3); }
.nq-count-label { font-weight: 500; color: var(--nq-ink); }
.nq-count-inline .nq-count-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nq-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--nq-line); border-radius: 999px; background: var(--nq-white); }
.nq-step-btn {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font: 500 1.25rem/1 var(--nq-sans);
  color: var(--nq-green);
  cursor: pointer;
}
.nq-step-btn:disabled { color: var(--nq-edge); cursor: default; }
.nq-step-btn:not(:disabled):hover { background: var(--nq-cream-2); }
.nq-step-btn:focus-visible { outline: 2px solid var(--nq-olive); outline-offset: 1px; }
.nq-num { min-width: 30px; text-align: center; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }

/* add-ons */
.nq-addons { display: grid; gap: 8px; }
.nq-addon {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 12px 8px 14px;
  background: var(--nq-white);
  border: 2px solid var(--nq-line);
  border-radius: 14px;
}
.nq-addon.is-on { border-color: var(--nq-green); background: var(--nq-cream-2); }
.nq-addon-check { cursor: pointer; }
.nq-addon-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nq-addon-check input:focus-visible ~ .nq-box { outline: 2px solid var(--nq-olive); outline-offset: 2px; }
.nq-box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--nq-line); display: grid; place-items: center; background: var(--nq-white); }
.nq-box svg { width: 14px; height: 14px; fill: none; stroke: var(--nq-white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.nq-addon.is-on .nq-box { background: var(--nq-green); border-color: var(--nq-green); }
.nq-addon.is-on .nq-box svg { opacity: 1; }
.nq-addon-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.nq-addon-name { font-weight: 500; line-height: 1.3; }
.nq-addon-hint { font-size: .82rem; color: var(--nq-ink-soft); }
.nq-addon-amt { flex: none; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; color: var(--nq-green-deep); }
.nq-addon .nq-count { min-height: 0; }

/* switch */
.nq-switch-row { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 10px 14px; background: var(--nq-white); border: 2px solid var(--nq-line); border-radius: 16px; font-weight: 500; cursor: pointer; }
.nq-switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nq-switch { position: relative; width: 52px; height: 30px; border-radius: 999px; background: var(--nq-line); transition: background-color 200ms ease; }
.nq-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--nq-white); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform 200ms var(--nq-glide); }
.nq-switch-row input:checked ~ .nq-switch { background: var(--nq-green); }
.nq-switch-row input:checked ~ .nq-switch::after { transform: translateX(22px); }
.nq-switch-row input:focus-visible ~ .nq-switch { outline: 2px solid var(--nq-olive); outline-offset: 3px; }

/* estimate */
/* the estimate card: the Thanksgiving wizard's own layout */
.nq-card { padding: clamp(16px, 4.6vw, 24px); background: var(--nq-green-deep); color: #e2d9bd; border-radius: 18px; box-shadow: 0 18px 40px -26px rgba(28, 58, 34, .6); }
.nq-card-head { display: flex; align-items: center; gap: .85rem; }
.nq-card-ico { flex: none; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 12px; background: var(--nq-green); color: var(--nq-cream); }
.nq-card-ico svg { width: 1.65rem; height: 1.65rem; }
.nq-card-ico .ico-knock { fill: var(--nq-green); }
.nq-card-title { margin: 0; font-size: 1.3rem; color: var(--nq-cream); }
.nq-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .8rem; margin-top: .75rem; }
.nq-chip { display: inline-block; padding: .3rem .85rem; border-radius: 999px; background: var(--nq-green); color: var(--nq-cream); font-size: .83rem; font-weight: 500; line-height: 1.45; }
.nq-home { font-size: .85rem; line-height: 1.5; color: var(--nq-tan); }
.nq-label { margin: 0; font-size: .75rem; font-weight: 600; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; color: var(--nq-tan); }
.nq-figure { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1rem; margin-top: 1.3rem; }
.nq-figure-main { flex: 0 1 auto; min-width: 0; }
.nq-total-box { display: grid; gap: .2rem; }
.nq-total-amt { font-family: var(--nq-serif); font-size: clamp(2rem, 8.4vw, 2.7rem); font-weight: 500; line-height: 1.05; color: var(--nq-cream); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.nq-total-amt.is-empty { font-size: 1.5rem; line-height: 1.3; color: #e2d9bd; }
.nq-card-msg { margin: .7rem 0 0; font-size: .88rem; line-height: 1.5; color: #e2d9bd; }
.nq-time { flex: 0 1 12rem; min-width: 0; display: grid; gap: .2rem; padding: .7rem 1rem .75rem; border-radius: 12px; background: var(--nq-green); }
.nq-time p { margin: 0; }
.nq-time-value { display: flex; align-items: center; gap: .4rem; font-size: 1.2rem; font-weight: 600; line-height: 1.25; color: var(--nq-cream); white-space: nowrap; }
.nq-time-value svg { flex: none; width: 15px; height: 15px; color: #84a869; }
.nq-time-note { font-size: .8rem; line-height: 1.4; color: #e2d9bd; }
.nq-card + .nq-fine { margin-top: 12px; }
.nq-block { margin-top: 18px; padding: 16px; background: var(--nq-white); border: 1px solid var(--nq-edge); border-radius: 16px; }
.nq-offer { background: var(--nq-cream-2); }
.nq-group { margin: 10px 0 2px; font-size: .82rem; font-weight: 500; color: var(--nq-sage-ink); }
.nq-group small { font-weight: 300; color: var(--nq-ink-soft); }
.nq-lines { list-style: none; margin: 0; padding: 0; }
.nq-lines li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--nq-cream-3); font-size: .92rem; }
.nq-lines li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.nq-lines small { display: block; font-size: .8rem; color: var(--nq-ink-soft); }
.nq-lines .is-minus .nq-amt { color: var(--nq-sage-ink); }
.nq-lines .is-sub { font-weight: 500; }
.nq-lines .is-total { border-bottom: 0; padding-top: 10px; font-weight: 500; font-size: 1rem; color: var(--nq-green-deep); }
.nq-amt { flex: none; font-variant-numeric: lining-nums tabular-nums; }
.nq-sched { display: grid; gap: 6px; margin-top: 8px; }
.nq-sched-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border: 1.5px solid var(--nq-line); border-radius: 12px; background: var(--nq-white); font: inherit; font-size: .92rem; color: var(--nq-ink); text-align: left; cursor: pointer; }
.nq-sched-row small { display: block; font-size: .78rem; color: var(--nq-ink-soft); }
.nq-sched-row[aria-pressed='true'] { border-color: var(--nq-green); background: var(--nq-cream-2); font-weight: 500; }
.nq-room { border-top: 1px solid var(--nq-cream-3); }
.nq-room:first-of-type { margin-top: 8px; }
.nq-room summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; font-weight: 500; list-style: none; }
.nq-room summary::-webkit-details-marker { display: none; }
.nq-room summary::after { content: ''; flex: none; width: 9px; height: 9px; margin-left: 4px; border-right: 2px solid var(--nq-green); border-bottom: 2px solid var(--nq-green); transform: rotate(45deg) translateY(-3px); transition: transform 200ms ease; }
.nq-room[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.nq-room-count { margin-left: auto; font-size: .8rem; font-weight: 300; color: var(--nq-ink-soft); white-space: nowrap; }
.nq-room ul { list-style: none; margin: 0 0 10px; padding: 0; }
.nq-room li { display: flex; gap: 10px; padding: 5px 0; font-size: .88rem; }
.nq-room li em { font-style: normal; font-size: .76rem; font-weight: 500; color: var(--nq-sage-ink); }
.nq-ck-mark { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; position: relative; }
.nq-ck-y .nq-ck-mark { background: var(--nq-green); }
.nq-ck-y .nq-ck-mark::after { content: ''; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid var(--nq-white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.nq-ck-n .nq-ck-mark { border: 1.5px solid var(--nq-edge); }
.nq-ck-n { color: var(--nq-ink-soft); }
.nq-ck-a .nq-ck-mark { border: 1.5px dashed var(--nq-olive); }
.nq-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 0; font-size: .78rem; color: var(--nq-ink-soft); }
.nq-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.nq-legend .nq-ck-mark { width: 14px; height: 14px; margin: 0; }
.nq-legend .nq-ck-y .nq-ck-mark::after { left: 4px; top: 2px; width: 3px; height: 6px; }
.nq-nope { margin: 8px 0 0; padding-left: 18px; font-size: .88rem; columns: 2; column-gap: 20px; }
.nq-sumline { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--nq-cream-2); font-weight: 500; color: var(--nq-green-deep); }

/* pills */
.nq-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 500 .95rem/1 var(--nq-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, border-color 160ms ease;
}
.nq-pill:active { transform: scale(.98); }
.nq-pill:focus-visible { outline: 2px solid var(--nq-olive); outline-offset: 3px; }
.nq-pill-solid { background: var(--nq-green); color: var(--nq-cream); }
.nq-pill-solid:hover { background: var(--nq-green-deep); }
.nq-pill-solid:disabled { background: var(--nq-edge); color: var(--nq-ink-soft); cursor: not-allowed; }
.nq-pill-line { background: var(--nq-white); border-color: var(--nq-green); color: var(--nq-green); }
.nq-pill-line:hover { background: var(--nq-cream-2); }
.nq-send { width: 100%; margin-top: 4px; }

/* footer */
.nq-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--nq-edge);
  background: var(--nq-white);
}
.nq-foot[hidden], .nq-foot.is-empty { display: none; }
.nq-foot .nq-back[hidden] { display: none; }
.nq-price { flex: 1 1 auto; min-width: 0; text-align: center; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; color: var(--nq-green-deep); line-height: 1.2; }
.nq-price small { display: block; font-size: .72rem; font-weight: 400; color: var(--nq-ink-soft); }
.nq-next { margin-left: auto; }
.nq-foot.is-flow .nq-price { visibility: hidden; }

/* close confirm */
.nq-confirm { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; padding: 16px; background: var(--nq-white); border: 1px solid var(--nq-edge); border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(28, 58, 34, .5); }
.nq-confirm[hidden] { display: none; }
.nq-confirm p { margin: 0 0 12px; }
.nq-confirm div { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* sent */
.nq-done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.nq-recap { margin: 8px 0 0; display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 64%); gap: 6px 12px; font-size: .92rem; }
.nq-recap dt { color: var(--nq-ink-soft); overflow-wrap: anywhere; }
.nq-recap dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.nq-test { margin-top: 20px; padding: 12px 14px; border: 1.5px dashed var(--nq-olive); border-radius: 12px; background: var(--nq-white); font-size: .82rem; }
.nq-test summary { cursor: pointer; font-weight: 500; padding-block: 12px; color: var(--nq-sage-ink); }
.nq-test dl { margin: 10px 0 0; display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 60%); gap: 4px 10px; }
.nq-test dt { font-family: ui-monospace, Consolas, monospace; color: var(--nq-ink-soft); overflow-wrap: anywhere; }
.nq-test dd { margin: 0; overflow-wrap: anywhere; }

/* ------------------------------------------------ phones: a full-height sheet */
@media (max-width: 599px) {
  .nq-root { align-items: stretch; }
  .nq-panel {
    width: 100%;
    max-height: none;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    transform: translateY(32px);
  }
  .nq-top { padding: 10px 16px 6px; padding-top: max(10px, env(safe-area-inset-top)); }
  .nq-close { top: max(8px, env(safe-area-inset-top)); right: 8px; }
  .nq-body { padding: 16px 16px 20px; }
  .nq-foot { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .nq-foot .nq-pill { padding: 0 18px; }
  .nq-nope { columns: 1; }
  /* while the phone keyboard is up, the footer steps aside so it never
     covers the field being typed in */
  .nq-root.is-typing .nq-foot { display: none; }
}
/* small phones: Back, the price and Next each stay on one line */
@media (max-width: 419px) {
  .nq-foot { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .nq-foot .nq-pill { padding: 0 14px; font-size: .9rem; white-space: nowrap; }
  .nq-price { font-size: .9rem; white-space: nowrap; }
}
@media (max-width: 379px) {
  .nq-two { grid-template-columns: 1fr; }
  .nq-foot .nq-pill { padding: 0 12px; }
  .nq-price { font-size: .86rem; }
}
/* on the contact step the buttons scroll with the form, so the phone
   keyboard never covers them */
.nq-foot.is-flow { position: static; }

@media (prefers-reduced-motion: reduce) {
  .nq-root *, .nq-root *::before, .nq-root *::after { transition: none !important; animation: none !important; }
  .nq-panel { transform: none; }
  .nq-twigs path.is-on { stroke-dashoffset: 0; }
  .nq-mark path { stroke-dashoffset: 0; }
}
