/* Free price checker (price-check.html). Header, footer and the green sign-up panel come from home.css. */

/* Indoor / Outdoor switch */
.pc { padding-top: 16px; }
.pc-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--panel); margin-bottom: 16px; }
.pc-tabs label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.pc-tabs label:has(:checked) { background: #fff; color: var(--mint-ink); box-shadow: 0 1px 3px rgba(11, 59, 46, .14); }
.pc-tabs input, .chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pc-tabs label:has(:focus-visible), .chips label:has(:focus-visible) { outline: 2.5px solid var(--focus); outline-offset: 2px; }

.pc-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
.pc-form { background: var(--panel); border-radius: 28px; padding: 28px; display: grid; gap: 28px; }
.pc-form[hidden], .pc-form fieldset[hidden], .verdict[hidden] { display: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend, .money > label { font: 500 19px/1.2 var(--display); letter-spacing: -.01em; margin-bottom: 12px; padding: 0; display: block; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chips label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--sep); font-weight: 500; cursor: pointer; transition: background-color .15s, border-color .15s; }
.chips label:hover { border-color: var(--mint-deep); }
.chips label:has(:checked) { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); font-weight: 600; }

/* Room steppers */
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rooms legend { grid-column: 1 / -1; }
.step { display: grid; grid-template-columns: 1fr 44px 44px 44px; align-items: center; background: #fff; border-radius: 16px; padding: 6px 6px 6px 16px; }
.step label { font-weight: 500; }
.step button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--panel); font: 600 22px/1 var(--text); color: var(--mint-ink); }
.step button:hover { background: var(--wash); }
.step input { width: 44px; height: 44px; border: 0; background: none; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.step input::-webkit-inner-spin-button, .step input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Money and size boxes */
.pound { display: flex; align-items: center; gap: 6px; max-width: 220px; min-height: 52px; padding: 0 16px; border-radius: 14px; background: #fff; border: 1.5px solid var(--sep); font-size: 19px; }
.pound:focus-within { border-color: var(--mint-deep); }
.pound:has([aria-invalid]) { border-color: #B83A16; }
.pound span { color: var(--muted); }
.pound input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.hint { font-size: 15px; color: var(--muted); margin-top: 8px; }
.err { color: #B83A16; font-size: 15px; font-weight: 500; margin-top: 6px; }
.err:empty { display: none; }

/* Result */
.pc-out { position: sticky; top: 84px; background: var(--wash); border-radius: 28px; padding: 32px; }
.out-label { font-weight: 600; color: var(--muted); }
.out-price { font: 500 clamp(64px, 8vw, 96px)/1 var(--display); letter-spacing: -.04em; color: var(--mint-ink); margin-top: 6px; }
.out-facts { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 6px; font-size: 17px; }
.out-facts li { padding-left: 22px; position: relative; }
.out-facts li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--mint-deep); }
.verdict { margin-top: 22px; padding: 16px 18px; border-radius: 18px; background: #fff; }
.verdict .v-title { font-weight: 700; }
.verdict .v-detail { color: var(--muted); font-size: 15px; margin-top: 2px; }
.verdict.low { background: var(--low-bg); }
.verdict.low .v-title { color: var(--low); }
.out-app { margin-top: 18px; font-size: 15px; color: var(--muted); }
.out-app a { color: var(--mint-ink); font-weight: 600; }

/* How it works */
.how { margin-top: 16px; padding: 0 28px; border-radius: 28px; background: var(--panel); }
.how summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; cursor: pointer; list-style: none; }
.how summary::-webkit-details-marker { display: none; }
.how summary::after { content: "+"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; font-size: 20px; color: var(--mint-ink); transition: rotate .3s var(--ease); }
.how[open] summary::after { rotate: 45deg; }
.how p { max-width: 62ch; color: var(--muted); margin-bottom: 14px; }
.how > :last-child { padding-bottom: 14px; }
.how [hidden] { display: none; }
.get .small-print a { color: var(--mint-ink); }

/* Phones: price bar pinned to the bottom while the form is on screen */
.pc-peek { position: fixed; z-index: 15; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 20px; border-radius: 18px; background: var(--mint-ink); color: #fff; text-decoration: none; box-shadow: 0 14px 30px -12px rgba(11, 59, 46, .6); }
.pc-peek .num { font: 500 28px/1 var(--display); letter-spacing: -.02em; }
.pc-peek span:last-child { font-size: 15px; font-weight: 500; text-align: right; }
.pc-peek[hidden] { display: none; }

@media (max-width: 900px) {
  .pc-grid { grid-template-columns: 1fr; }
  .pc-out { position: static; scroll-margin-top: 84px; }
}
@media (min-width: 901px) { .pc-peek { display: none !important; } }
@media (max-width: 560px) {
  .pc-tabs { display: flex; }
  .pc-tabs label { flex: 1; justify-content: center; padding: 0 6px; font-size: 16px; white-space: nowrap; }
  .pc-form { padding: 22px 16px; border-radius: 24px; }
  .rooms { grid-template-columns: 1fr; }
  .pc-out { padding: 24px; border-radius: 24px; }
  .how { padding: 0 20px; border-radius: 24px; }
}
@media (max-width: 900px) { body { padding-bottom: 84px; } } /* room for the price bar, so it never covers the footer */
