/* Arkiplan Instant Quote — piggybacks on estimator styles, adds quote-specific bits */

.qu-packages { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 8px 0 20px; }
@media (max-width: 760px) { .qu-packages { grid-template-columns: 1fr; } }
.qu-pkg { background: var(--ark-paper); border: 1.5px solid var(--ark-line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; position: relative; transition: border-color 280ms cubic-bezier(.2,.8,.2,1), box-shadow 280ms cubic-bezier(.2,.8,.2,1), background 280ms ease; cursor: pointer; }
.qu-pkg.rec { border-color: var(--ark-pink); background: var(--ark-paper); box-shadow: 0 6px 24px rgba(249,52,108,0.12); }
.qu-pkg .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--ark-pink); color: white; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
.qu-pkg.rec .ribbon { opacity: 1; }
.qu-pkg .name { font-family: var(--ark-font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.015em; }
.qu-pkg .amt { font-family: var(--ark-font-display); font-weight: 800; font-size: 36px; letter-spacing: -0.035em; line-height: 1; margin: 12px 0 4px; color: var(--ark-ink); }
.qu-pkg .fin { font-size: 12px; color: var(--ark-mint-deep); font-weight: 600; margin-bottom: 12px; }
.qu-pkg .why { font-size: 12.5px; color: var(--ark-ink-3); line-height: 1.5; flex: 1; margin-bottom: 14px; min-height: 60px; }
.qu-pkg .why b { color: var(--ark-ink-2); font-weight: 600; }
.qu-pkg .pick { border: none; background: var(--ark-paper-3); color: var(--ark-ink); border-radius: 999px; padding: 10px 14px; font-family: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; text-align: center; }
.qu-pkg.rec .pick { background: var(--ark-pink); color: white; }
.qu-pkg.rec .pick:hover { background: var(--ark-pink-deep); }

.qu-gate { text-align: center; padding: 12px 0 0; }
.qu-gate .gate-badge { display: inline-flex; gap: 8px; align-items: center; background: var(--ark-pink-soft); color: var(--ark-pink-deep); padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.03em; }
.qu-gate h3 { font-family: var(--ark-font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 6px; text-wrap: pretty; }
.qu-gate p { font-size: 14.5px; color: var(--ark-ink-3); margin: 0 0 20px; max-width: 52ch; line-height: 1.5; margin-left: auto; margin-right: auto; }
.qu-gate-bullets { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 14px 0 0; font-size: 12.5px; color: var(--ark-ink-3); }
.qu-gate-bullets span { display: inline-flex; gap: 5px; align-items: center; }
.qu-gate-bullets svg { color: var(--ark-mint-deep); }

.qu-summary { background: var(--ark-paper-2); border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; border: 1px solid var(--ark-line); }
.qu-summary-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; color: var(--ark-ink-3); }
.qu-summary-row b { color: var(--ark-ink); font-weight: 600; }

.qu-scope { display: flex; flex-direction: column; gap: 8px; }
.qu-scope-opt { background: var(--ark-paper); border: 1.5px solid var(--ark-line); border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; cursor: pointer; font-family: inherit; text-align: left; width: 100%; transition: all var(--ark-dur-fast); }
.qu-scope-opt:hover { border-color: var(--ark-ink-3); }
.qu-scope-opt.selected { border-color: var(--ark-pink); background: var(--ark-pink-soft); }
.qu-scope-opt .check { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--ark-line-strong); flex-shrink: 0; background: white; position: relative; }
.qu-scope-opt.selected .check { border-color: var(--ark-pink); background: var(--ark-pink); }
.qu-scope-opt.selected .check::after { content: ''; position: absolute; left: 5px; top: 1px; width: 6px; height: 12px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.qu-scope-opt .body { flex: 1; }
.qu-scope-opt .label { font-weight: 600; font-size: 14.5px; color: var(--ark-ink); display: block; }
.qu-scope-opt .sub { font-size: 12.5px; color: var(--ark-ink-3); margin-top: 2px; display: block; line-height: 1.4; }

.qu-result-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.qu-result-head .tick { width: 40px; height: 40px; border-radius: 50%; background: var(--ark-mint-soft); color: var(--ark-mint-deep); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.qu-result-head h3 { font-family: var(--ark-font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.015em; margin: 0 0 2px; line-height: 1.2; }
.qu-result-head p { font-size: 13.5px; color: var(--ark-ink-3); margin: 0; line-height: 1.4; }

.qu-foot-prim { background: var(--ark-pink); color: white; border: none; border-radius: 999px; padding: 13px 22px; font-family: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; transition: background var(--ark-dur-fast); }
.qu-foot-prim:hover { background: var(--ark-pink-deep); }
.qu-foot-prim:disabled { opacity: 0.4; cursor: not-allowed; }

.est-inline .qu-pkg .amt { font-size: 44px; }

/* Multi-select type cards (checkbox) */
.est-card {
  position: relative;
  /* Override .qu-scope-opt's flex layout — checkbox is positioned absolutely
     so we don't need flex for alignment, and flex was causing the label to
     compete with the check for horizontal space at narrow widths. */
  display: block;
  /* Reserve space on the right for the absolutely-positioned checkbox so the
     label/sub don't run under it on narrow viewports. */
  padding-right: 42px;
  /* Keep some height even when content is short so the grid stays even. */
  min-height: 86px;
}
.est-card-label {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ark-ink);
  display: block;
  /* Avoid mid-word breaks (which produced "Conversio…" on the Galaxy Z Fold) —
     wrap the whole word to the next line instead. */
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  line-height: 1.25;
}
.est-card-sub {
  font-size: 12.5px;
  color: var(--ark-ink-3);
  margin-top: 4px;
  display: block;
  line-height: 1.4;
  overflow-wrap: break-word;
}
.est-card-check { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--ark-line-strong); background: white; }
.est-card.selected .est-card-check { border-color: var(--ark-pink); background: var(--ark-pink); }
.est-card.selected .est-card-check::after { content: ''; position: absolute; left: 4px; top: 0px; width: 6px; height: 12px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.est-multi-hint { margin-top: 14px; padding: 12px 14px; background: var(--ark-mint-soft); border-radius: 10px; font-size: 12.5px; color: var(--ark-ink-2); line-height: 1.5; }

/* Sub-question headings inside a step */
.qu-subq { font-family: var(--ark-font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; margin: 18px 0 8px; color: var(--ark-ink); }
.qu-subq:first-of-type { margin-top: 10px; }
.qu-scope-tight .qu-scope-opt { padding: 11px 14px; }
.qu-scope-tight .qu-scope-opt .label { font-size: 13.5px; }
.qu-scope-tight .qu-scope-opt .sub { font-size: 12px; }

.qu-flag { display: inline-block; margin-left: 8px; background: var(--ark-pink-soft); color: var(--ark-pink-deep); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; vertical-align: middle; }

.qu-tbn-link { display: inline-block; margin-top: 6px; font-size: 12.5px; color: var(--ark-pink-deep); font-weight: 600; text-decoration: none; }
.qu-tbn-link:hover { text-decoration: underline; }

/* Reasoning block */
.qu-reasoning { background: var(--ark-paper-2); border: 1px solid var(--ark-line); border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; }
.qu-reasoning-title { font-size: 12px; font-weight: 600; color: var(--ark-ink-3); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }
.qu-reasoning-title b { color: var(--ark-ink); text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 700; }
.qu-reasoning ul { margin: 6px 0 0; padding: 0; list-style: none; }
.qu-reasoning li { font-size: 13px; color: var(--ark-ink-2); line-height: 1.55; padding-left: 20px; position: relative; margin-top: 4px; }
.qu-reasoning li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--ark-pink); }

/* Dave callout */
.qu-dave { display: flex; gap: 16px; align-items: center; background: var(--ark-ink); color: white; border-radius: 16px; padding: 18px 20px; margin: 6px 0 16px; }
.qu-dave-avatar { flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--ark-pink); display: flex; align-items: center; justify-content: center; }
.qu-dave-ph { font-family: var(--ark-font-display); font-weight: 800; font-size: 24px; color: white; letter-spacing: -0.02em; }
.qu-dave-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ark-pink); margin-bottom: 2px; }
.qu-dave h4 { font-family: var(--ark-font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.015em; margin: 0 0 4px; line-height: 1.25; }
.qu-dave p { font-size: 13px; line-height: 1.5; margin: 0; color: rgba(255,255,255,0.78); }

/* Trusted Builder Network callout */
.qu-tbn-callout { display: flex; gap: 12px; align-items: flex-start; background: var(--ark-mint-soft); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; font-size: 13px; line-height: 1.5; color: var(--ark-ink-2); }
.qu-tbn-callout .qu-tbn-ic { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--ark-mint-deep); color: white; display: flex; align-items: center; justify-content: center; margin-top: -2px; }
.qu-tbn-callout a { color: var(--ark-pink-deep); font-weight: 600; text-decoration: none; margin-left: 4px; white-space: nowrap; }
.qu-tbn-callout a:hover { text-decoration: underline; }
.qu-tbn-callout b { color: var(--ark-ink); }

/* Package range sizing — range doesn't fit at 36px; shrink */
.qu-pkg .amt { font-size: 28px; }
.est-inline .qu-pkg .amt { font-size: 34px; }

/* ============================================================
   Result step v3 — pricing-page-style package cards
   Three packed cards inside the modal/inline. Pay-in-stages vs
   Klarna toggle flips the price text in place.
   ============================================================ */

.qu-pay-toggle {
  display: inline-flex;
  background: var(--ark-paper-2);
  border: 1px solid var(--ark-line);
  border-radius: 999px;
  padding: 4px;
  margin: 0 0 18px;
  gap: 2px;
}
.qu-pay-opt {
  border: none;
  background: transparent;
  color: var(--ark-ink-3);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 220ms, color 220ms;
  white-space: nowrap;
}
.qu-pay-opt.selected {
  background: var(--ark-ink);
  color: var(--ark-paper);
}
.qu-pay-opt:hover:not(.selected) { color: var(--ark-ink); }

.qu-pcards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin: 14px 0 16px;
}
@media (max-width: 880px) { .qu-pcards { grid-template-columns: 1fr; } }

.qu-pcard {
  background: var(--ark-paper);
  border: 1px solid var(--ark-line);
  border-radius: 18px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 280ms, box-shadow 280ms, transform 280ms;
}
.qu-pcard.rec {
  border: 2px solid var(--ark-pink);
  padding: 21px 21px 19px; /* compensate +1px border so cards stay aligned */
  box-shadow: var(--ark-shadow-md);
}
.qu-pcard .ribbon {
  position: absolute;
  top: -12px;
  left: 22px;
  background: var(--ark-pink);
  color: white;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 220ms;
  pointer-events: none;
}
.qu-pcard.rec .ribbon { opacity: 1; }

.qu-pcard-name {
  font-family: var(--ark-font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ark-ink);
}
.qu-pcard-sub {
  font-size: 13px;
  color: var(--ark-ink-3);
  margin-top: 4px;
  line-height: 1.4;
  min-height: 36px;
}
.qu-pcard-price {
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qu-pcard-amt {
  font-family: var(--ark-font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ark-ink);
}
.qu-pcard-suffix {
  font-size: 14px;
  font-weight: 600;
  color: var(--ark-ink-3);
  letter-spacing: 0;
  margin-left: 2px;
}
.qu-pcard-finehint {
  font-size: 11.5px;
  color: var(--ark-ink-3);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.qu-pcard-ideal {
  margin: 14px 0 4px;
  padding: 9px 11px;
  background: var(--ark-paper-2);
  border-radius: 9px;
  font-size: 12px;
  color: var(--ark-ink-2);
  line-height: 1.45;
}
.qu-pcard-ideal b { color: var(--ark-ink); font-weight: 700; }

.qu-pcard-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px;
  flex: 1;
}
.qu-pcard-list li {
  padding: 8px 0;
  font-size: 13px;
  border-top: 1px solid var(--ark-line);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--ark-ink);
  font-weight: 500;
  line-height: 1.4;
}
.qu-pcard-list li svg { color: var(--ark-mint-deep); flex-shrink: 0; margin-top: 2px; }
.qu-pcard-list li b { font-weight: 700; color: var(--ark-ink); }
.qu-pcard-list li.muted {
  color: var(--ark-ink-3);
  font-weight: 400;
  text-decoration: line-through;
  text-decoration-color: rgba(0,0,0,0.18);
}
.qu-pcard-list li.muted svg { color: var(--ark-ink-3); opacity: 0.5; }
.qu-pcard-list li.muted b { color: var(--ark-ink-3); font-weight: 400; }

.qu-pcard-cta {
  width: 100%;
  justify-content: center;
}

.qu-pcards-fine {
  text-align: center;
  font-size: 12px;
  color: var(--ark-ink-3);
  max-width: 56ch;
  margin: 0 auto 18px;
  line-height: 1.5;
}

/* Inline (non-modal) variant — bigger so cards breathe more */
.est-inline .qu-pcard { padding: 28px 28px 24px; }
.est-inline .qu-pcard.rec { padding: 27px 27px 23px; }
.est-inline .qu-pcard-name { font-size: 26px; }
.est-inline .qu-pcard-amt { font-size: 34px; }
.est-inline .qu-pcard-suffix { font-size: 16px; }
.est-inline .qu-pcard-list li { font-size: 14px; padding: 10px 0; }
