/* Public calculator: same cyan-on-dark look, sits inside the main site theme. */
/* The site header floats over the page top (each hero leaves room for it), so clear it: ~84px desktop, ~58px mobile. */
.bdp-calc { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; width: 100%; max-width: 1280px; margin: 0 auto; padding: 130px 10px 56px; align-items: start; }
/* Same column as the rest of the site: 1280px box with 10px inset (text edge 90–1350 at 1440), full width below 1025px. */
@media (max-width: 1024px) { .bdp-calc { padding: 110px 24px 48px; } }
@media (max-width: 767px) { .bdp-calc { padding: 90px 20px 40px; } }
.bdp-calc__title { margin: 0 0 18px; font-size: 24px; font-weight: 600; }
.bdp-calc__bespoke { grid-column: 1 / -1; }
.bdp-calc__summary { position: sticky; top: 110px; }
.bdp-choices { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bdp-choice { position: relative; }
.bdp-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bdp-choice span { display: inline-flex; min-width: 56px; min-height: 46px; padding: 0 20px; align-items: center; justify-content: center; border: 1.5px solid var(--bdp-line); border-radius: 999px; cursor: pointer; font-weight: 600; background: rgba(255,255,255,.03); transition: border-color .15s, box-shadow .15s, background .15s; }
.bdp-choice:hover span { border-color: var(--bdp-accent); }
.bdp-choice input:checked + span { border-color: var(--bdp-accent); background: rgba(30,176,250,.14); box-shadow: var(--bdp-glow); }
.bdp .bdp-breakdown { margin: 12px 0; font-size: 15px; }
.bdp .bdp-line { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--bdp-line); background: none; }
.bdp .bdp-line > span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bdp .bdp-line--discount { color: var(--bdp-ok); }
.bdp-totals { margin: 0 0 12px; }
.bdp-totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.bdp-totals dt, .bdp-totals dd { margin: 0; }
.bdp-totals__total { font-size: 22px; font-weight: 700; border-top: 1px solid var(--bdp-line); margin-top: 6px; padding-top: 12px !important; }
.bdp-totals__deposit { color: var(--bdp-accent); font-weight: 700; font-size: 18px; }
.bdp-calc__summary .bdp-btn { width: 100%; margin-top: 8px; }
[hidden] { display: none !important; }
@media (max-width: 860px) { .bdp-calc { grid-template-columns: 1fr; } .bdp-calc__summary { position: static; } }
.bdp-pair { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

/* Live-price feedback + sticky bottom price bar (phones/tablets; the summary card is sticky on desktop). */
.bdp-calc.bdp-busy .bdp-calc__summary [data-bdp-price] { opacity: .55; transition: opacity .15s; }
.bdp-bar { display: none; }
@media (max-width: 860px) {
	.bdp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(11,10,22,.96); border-top: 1px solid var(--bdp-line); backdrop-filter: blur(8px); }
	.bdp-bar[hidden] { display: none !important; }
	.bdp-bar__price { font-size: 14px; line-height: 1.3; }
	.bdp-bar__price strong { font-size: 18px; }
	.bdp-bar__label, .bdp-bar__dep { color: var(--bdp-muted); }
	.bdp-bar__dep { display: block; font-size: 12px; }
	.bdp-bar__dep strong { font-size: 13px; color: var(--bdp-accent); }
	.bdp .bdp-bar .bdp-btn { width: auto; min-height: 44px; padding: 0 22px; margin: 0; }
	.bdp-calc.bdp-has-bar { padding-bottom: 100px; }
	.bdp-calc.bdp-has-bar .bdp-calc__summary [data-bdp-book] { display: none; }
}

/* Voucher field */
.bdp-voucher__row { display: flex; gap: 10px; align-items: center; }
.bdp-voucher__row .bdp-input { max-width: 260px; text-transform: uppercase; letter-spacing: .08em; }
.bdp .bdp-voucher__row .bdp-btn { min-height: 48px; padding: 0 22px; }
.bdp-voucher__msg { margin: 8px 0 0; font-size: 14px; min-height: 1.2em; color: var(--bdp-muted); }
.bdp-voucher__msg--ok { color: var(--bdp-ok); }
.bdp-voucher__msg--bad { color: var(--bdp-danger); }

/* ── One-question-at-a-time wizard (hero.js-style progressive enhancement: no JS = all questions visible) ── */
.bdp-wiz .bdp-field.bdp-wiz-off { display: none; }
.bdp-wiz .bdp-field { margin: 0 0 8px; padding: 0; border: 0; animation: bdp-wiz-in .28s ease both; }
.bdp-wiz .bdp-field legend { padding: 0; margin: 0 0 16px; font-size: clamp(20px, 2.6vw, 26px); font-weight: 650; line-height: 1.25; color: var(--bdp-text); }
.bdp-wiz .bdp-field legend:focus { outline: none; }
@keyframes bdp-wiz-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bdp-wiz .bdp-field { animation: none; } }
.bdp-wiz__head { margin: 0 0 22px; }
.bdp-wiz__row { display: flex; justify-content: space-between; align-items: center; min-height: 28px; margin-bottom: 10px; }
.bdp-wiz__no { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--bdp-accent); }
.bdp-wiz__bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.10); overflow: hidden; }
.bdp-wiz__bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--bdp-gradient); transition: width .3s ease; }
.bdp-wiz__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bdp-wiz__chips:empty { display: none; }
.bdp .bdp-wiz__chip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--bdp-line); background: rgba(255,255,255,.05); color: var(--bdp-text); font: 500 14px var(--bdp-font); cursor: pointer; text-transform: none; letter-spacing: 0; box-shadow: none; }
.bdp .bdp-wiz__chip:hover { border-color: var(--bdp-accent); }
.bdp .bdp-wiz__chip:focus-visible, .bdp-wiz .bdp-link-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.bdp-wiz .bdp-choices { gap: 12px; }
.bdp-wiz .bdp-choice span { min-height: 52px; min-width: 64px; font-size: 16px; }
.bdp-wiz .bdp-field:first-of-type .bdp-choice span { min-width: 150px; min-height: 64px; font-size: 18px; border-radius: 18px; }
.bdp-wiz .bdp-wiz__done { margin-top: 18px; }
@media (max-width: 767px) {
	.bdp-calc { gap: 16px; }
	.bdp-calc .bdp-card { padding: 20px 18px; }
	.bdp-wiz .bdp-field:first-of-type .bdp-pair { display: flex; width: 100%; }
	.bdp-wiz .bdp-field:first-of-type .bdp-choice { flex: 1; }
	.bdp-wiz .bdp-field:first-of-type .bdp-choice span { width: 100%; min-width: 0; }
	.bdp-calc__title { font-size: 22px; margin-bottom: 14px; }
}
/* "Back" link on the public page (portal.css, which defines .bdp-link-btn, is not loaded here). */
.bdp-calc .bdp-link-btn { background: none; border: 0; padding: 0; color: var(--bdp-accent); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }

/* ── Required-answer errors (on-brand: magenta accent + icon + words, never colour alone) ── */
.bdp-estimate { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; font-size: 13px; color: var(--bdp-text); background: rgba(30,176,250,.10); border: 1px dashed rgba(30,176,250,.45); }
.bdp-formerr { position: relative; display: flex; flex-direction: column; gap: 2px; margin: 0 0 18px; padding: 14px 16px 14px 20px; border-radius: 14px; background: rgba(229,64,209,.10); border: 1px solid rgba(229,64,209,.35); color: var(--bdp-text); font-size: 15px; line-height: 1.4; }
.bdp-formerr::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--bdp-gradient); }
.bdp-formerr strong { font-size: 16px; }
.bdp-formerr:focus { outline: none; box-shadow: 0 0 0 2px rgba(229,64,209,.55); }
.bdp-field--err .bdp-choice span { border-color: rgba(229,64,209,.7); box-shadow: 0 0 0 1px rgba(229,64,209,.25); }
.bdp-field-msg { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14px; font-weight: 600; color: #ff8ae8; }
.bdp-field-msg::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--bdp-gradient); color: #0a0618; font-weight: 800; font-size: 13px; }

/* "See my price" only helps where the price card sits below the questions (phones and tablets). On desktop it is already in the next column. */
@media (min-width: 861px) { .bdp-wiz .bdp-wiz__done { display: none; } }

/* Desktop: the questions card and the price card are the same height (and do not jump as the questions change). */
@media (min-width: 861px) {
	.bdp-calc { align-items: stretch; }
	.bdp-calc__form, .bdp-calc__summary { display: flex; flex-direction: column; min-height: 500px; }
	.bdp-calc__summary { position: static; }
	.bdp-calc__summary > [data-bdp-price]:not([hidden]) { display: flex; flex-direction: column; flex: 1; }
	.bdp-calc__summary > [data-bdp-price] .bdp-fine { margin-bottom: 14px; }
	.bdp-calc__summary > [data-bdp-price] [data-bdp-book] { margin-top: auto; }
	.bdp-calc__summary > [data-bdp-empty] { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--bdp-muted); }
}

/* Town picker */
.bdp-calc .bdp-town { max-width: 420px; min-height: 52px; font-size: 16px; }
.bdp-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bdp-wiz .bdp-field .bdp-fine { margin: 10px 0 0; max-width: 56ch; }

/* Back button + answer chips: clear, high-contrast pills. The site theme styles bare <button>s, so these rules are deliberately specific. */
.bdp.bdp-calc .bdp-wiz__row [data-bdp-back] {
	display: inline-flex !important; align-items: center; gap: 6px; min-height: 40px; margin: 0; padding: 0 18px !important;
	background: rgba(255,255,255,.10) !important; color: #ffffff !important; border: 1.5px solid rgba(255,255,255,.35) !important; border-radius: 999px !important;
	font: 600 14px/1 var(--bdp-font) !important; letter-spacing: 0 !important; text-transform: none !important; text-decoration: none !important; box-shadow: none !important;
	cursor: pointer; -webkit-appearance: none; appearance: none; transition: background .15s, border-color .15s;
}
.bdp.bdp-calc .bdp-wiz__row [data-bdp-back]:hover { background: rgba(30,176,250,.22) !important; border-color: #1eb0fa !important; }
.bdp.bdp-calc .bdp-wiz__row [data-bdp-back]:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }
.bdp.bdp-calc .bdp-wiz__chip { background: rgba(255,255,255,.10) !important; color: #ffffff !important; border: 1.5px solid rgba(255,255,255,.30) !important; border-radius: 999px !important; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; text-decoration: none !important; font: 500 14px/1 var(--bdp-font) !important; }
.bdp.bdp-calc .bdp-wiz__chip:hover { border-color: #1eb0fa !important; background: rgba(30,176,250,.18) !important; }
.bdp-wiz__row { min-height: 40px; }

/* The "i" tips: brand-styled, shown on hover / keyboard focus / tap. */
.bdp-tipwrap { position: relative; display: inline-flex; align-items: center; }
.bdp-tip { position: absolute; z-index: 30; bottom: calc(100% + 12px); left: 50%; transform: translate(-50%, 6px); width: 280px; max-width: min(280px, 78vw); padding: 14px 16px; border-radius: 14px; font-size: 14px; line-height: 1.5; font-weight: 400; text-align: left; letter-spacing: 0; text-transform: none; color: #ffffff; background: linear-gradient(#14122b, #14122b) padding-box, linear-gradient(135deg, #1eb0fa, #e540d1) border-box; border: 1.5px solid transparent; box-shadow: 0 14px 40px rgba(0,0,0,.55), 0 0 22px rgba(30,176,250,.25); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.bdp-tip strong { display: block; margin-bottom: 4px; font-size: 14px; color: #1eb0fa; }
.bdp-tip::after { content: ""; position: absolute; top: 100%; left: 50%; width: 12px; height: 12px; margin-top: -7px; transform: translateX(-50%) rotate(45deg); background: #14122b; border-right: 1.5px solid #e540d1; border-bottom: 1.5px solid #e540d1; }
.bdp-info:hover + .bdp-tip, .bdp-info:focus-visible + .bdp-tip, .bdp-info[aria-expanded="true"] + .bdp-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (max-width: 600px) { .bdp-tip { left: 0; transform: translate(0, 6px); } .bdp-tip::after { left: 18px; transform: rotate(45deg); } .bdp-info:hover + .bdp-tip, .bdp-info:focus-visible + .bdp-tip, .bdp-info[aria-expanded="true"] + .bdp-tip { transform: translate(0, 0); } }
@media (prefers-reduced-motion: reduce) { .bdp-tip { transition: none; } }
