/* "What's my home worth?" entry points: the header pill, the home page strip and the guide card (only built when the valuationTool switch is on). Loads after site.css on every page. */

/* Header pill: not the solid Start button. Under 560px a one-line bar cannot hold the logo, this pill, Start and the menu button, so the pill gets its own full-width row under
   them, with the full words and the Free tag. From 560px it sits in the bar as a compact "Home value" pill next to Start and the menu button; from 1400px, where the bar is wider, it has the full words again. */
.vt-chip { flex: 1 0 100%; order: 3; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px 0 8px; border-radius: 999px; background: #fff; color: var(--text); font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap; box-shadow: inset 0 0 0 2px var(--accent); }
.header-bar:has(.vt-chip) .nav { order: 4; }
.vt-chip ~ .btn-start { white-space: nowrap; }
.vt-chip:hover { background: var(--tint); color: var(--text); }
.vt-chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.vt-chip[aria-current] { background: #fff; box-shadow: inset 0 0 0 2px var(--text); }
@media (max-width: 559px) { .vt-chip[aria-current] { display: none; } }
.vt-chip-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--clay); color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
.vt-chip-short { display: none; }
.vt-chip-free { font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: var(--text); color: var(--bg); }
@media (min-width: 560px) {
  .vt-chip ~ .btn-start { margin-left: 0; }
  .vt-chip { flex: none; order: 1; margin-left: auto; justify-content: flex-start; gap: 6px; padding: 0 12px 0 6px; font-size: 14px; }
  .header-bar:has(.vt-chip) .nav { order: 3; }
  .vt-chip-long, .vt-chip-free { display: none; }
  .vt-chip-short { display: inline; }
}
@media (min-width: 1000px) {
  .vt-chip { order: 0; margin-left: 0; font-size: 15px; }
  .header-bar:has(.vt-chip) .nav { order: 0; }
  .vt-chip ~ .btn-start .long { white-space: nowrap; }
}
/* Tighter spacing while the bar is still narrow, so the logo keeps its size. */
@media (min-width: 1000px) and (max-width: 1199px) {
  .header-bar:has(.vt-chip) { gap: 12px; }
  .header-bar:has(.vt-chip) .nav a { padding: 0 6px; }
  .vt-chip ~ .btn-start { padding: 0 14px; }
  .header-bar:has(.vt-chip) .logo { flex: none; }
  .vt-chip ~ .btn-start .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* "Start" alone here */
}
@media (min-width: 1400px) {
  .header-bar:has(.vt-chip) { max-width: 1320px; }
  .vt-chip { gap: 8px; padding: 0 12px 0 8px; font-size: 16px; }
  .vt-chip-long, .vt-chip-free { display: inline; }
  .vt-chip-short { display: none; }
}

/* Home page strip: a dark band straight under the hero, with a postcode box. */
.vt-strip-wrap { padding-bottom: 8px; }
.vt-strip { position: relative; overflow: hidden; border-radius: 24px; background: var(--text); color: var(--bg); padding: 28px 20px; display: grid; gap: 20px; }
.vt-strip-deco { position: absolute; right: -60px; bottom: -50px; width: 420px; max-width: none; opacity: .16; pointer-events: none; }
.vt-strip-text, .vt-strip-form, .vt-strip > noscript { position: relative; min-width: 0; }
.vt-strip-text { display: flex; flex-direction: column; gap: 12px; }
.vt-strip-eyebrow { font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: #8AD3CE; font-weight: 600; }
.vt-strip h2 { font-size: 30px; line-height: 1.1; font-weight: 700; }
.vt-strip-lead { font-size: 17px; line-height: 1.45; color: #D7E4E2; }
.vt-strip-form { background: #fff; color: var(--text); border-radius: 16px; padding: 16px; display: grid; gap: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.vt-strip-form label { font-weight: 600; }
.vt-strip-form input { height: 52px; width: 100%; min-width: 0; border: 1.5px solid var(--edge); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 18px; color: var(--text); background: #fff; }
.vt-strip-form input:focus-visible, .vt-strip-form button:focus-visible, .vt-strip .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.vt-strip-form button { border: 0; cursor: pointer; font-family: inherit; }
@media (min-width: 900px) {
  .vt-strip { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 40px 48px; }
  .vt-strip h2 { font-size: 40px; }
  .vt-strip-lead { font-size: 18px; }
  .vt-strip-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 20px; column-gap: 10px; }
  .vt-strip-form label { grid-column: 1 / -1; }
}

/* Guide card: a small prompt inside the asking price and if-it-doesn't-sell guides. */
.vt-guide { max-width: 40em; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--border); }
.vt-guide-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--clay-soft); color: var(--text); display: flex; align-items: center; justify-content: center; }
.vt-guide-text { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vt-guide-text strong { font-size: 17px; }
.vt-guide-text span { color: var(--muted); }
.vt-guide-btn { min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; }
.vt-guide-btn:hover { background: var(--text); color: #fff; }
.vt-guide-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
