/* BSL Adviser Portal: public lead capture page */
.bslap-landing, .bslap-embed {
	--ink: #16181D; --muted: #5F6672; --line: #E3E6EB; --bg: #F4F5F7; --radius: 14px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--ink); -webkit-font-smoothing: antialiased;
}
.bslap-landing *, .bslap-embed * { box-sizing: border-box; }
.bslap-landing { margin: 0; background: var(--bg); min-height: 100vh; }

/* Hero in the adviser's brand colour */
.bslap-hero {
	background: var(--brand); color: var(--brand-ink);
	padding: calc(22px + env(safe-area-inset-top)) 20px 78px;
	position: relative; overflow: hidden;
}
.bslap-hero::after {
	content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
	background: var(--accent); opacity: .22;
}
.bslap-hero__logo {
	background: #fff; border-radius: 12px; padding: 10px 14px; display: inline-flex; align-items: center;
	max-width: 230px; box-shadow: 0 6px 20px rgba(0,0,0,.12); position: relative; z-index: 1;
}
.bslap-hero__logo img { max-height: 54px; max-width: 200px; width: auto; height: auto; display: block; object-fit: contain; }
.bslap-hero__who { display: flex; align-items: center; gap: 12px; margin-top: 22px; position: relative; z-index: 1; }
.bslap-avatar {
	width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
	background: var(--accent); color: var(--accent-ink); font-weight: 700; letter-spacing: .02em;
	box-shadow: 0 0 0 3px rgba(255,255,255,.35);
}
.bslap-hero__name { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; }
.bslap-hero__role { margin: 3px 0 0; font-size: 13.5px; opacity: .85; }

.bslap-card {
	position: relative; z-index: 2; margin: -56px auto 0; max-width: 620px; background: #fff;
	border-radius: 20px 20px 0 0; padding: 26px 20px 30px; box-shadow: 0 -2px 30px rgba(15,20,30,.08);
}
@media (min-width: 680px) {
	.bslap-hero { padding: 36px 20px 96px; text-align: center; }
	.bslap-hero__who { justify-content: center; }
	.bslap-card { border-radius: 20px; padding: 34px 38px 38px; margin-bottom: 30px; }
}
.bslap-intro h1 { font-size: 24px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.01em; }
.bslap-intro p { margin: 0 0 6px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.bslap-quick { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px !important; }
.bslap-quick a {
	display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; text-decoration: none;
	background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 14px;
}

/* Form */
.bslap-form { margin-top: 18px; }
.bslap-step { border: 0; padding: 0; margin: 0 0 22px; }
.bslap-step legend { font-weight: 700; font-size: 15.5px; margin-bottom: 12px; padding: 0; }
.bslap-step legend small, .bslap-field small { font-weight: 400; color: var(--muted); }
.bslap-field { display: block; margin-bottom: 14px; }
.bslap-field > span { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: #2B2F36; }
.bslap-field em { color: var(--accent); font-style: normal; }
.bslap-field input, .bslap-field textarea {
	width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
	border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; outline: none;
	transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.bslap-field input:focus, .bslap-field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.bslap-field.is-invalid input { border-color: #D93025; }

.bslap-chips { display: grid; gap: 8px; }
.bslap-chips--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bslap-chip { position: relative; display: block; cursor: pointer; }
.bslap-chip input { position: absolute; opacity: 0; pointer-events: none; }
.bslap-chip span {
	display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 11px 14px; border-radius: 12px;
	border: 1.5px solid var(--line); font-size: 14.5px; line-height: 1.3; background: #fff;
	transition: border-color .15s, background .15s, color .15s;
}
.bslap-chip span::before {
	content: ""; flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #B8BEC8; background: #fff;
	transition: all .15s;
}
.bslap-chip input[type=radio] + span::before { border-radius: 50%; }
.bslap-chip input:checked + span { border-color: var(--brand); background: var(--brand-softer); color: var(--ink); font-weight: 600; }
.bslap-chip input:checked + span::before {
	border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3.5' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.bslap-chip input:focus-visible + span { box-shadow: 0 0 0 4px var(--brand-soft); }
@media (max-width: 360px) { .bslap-chips--row { grid-template-columns: 1fr; } }

.bslap-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 4px 0 18px; }
.bslap-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.bslap-consent a { color: var(--brand); }
.bslap-consent.is-invalid { color: #D93025; }

.bslap-submit {
	display: block; width: 100%; border: 0; border-radius: 14px; padding: 16px; font: inherit; font-size: 16.5px; font-weight: 700;
	background: var(--brand); color: var(--brand-ink); cursor: pointer; text-align: center; text-decoration: none;
	box-shadow: 0 8px 20px var(--brand-soft); transition: transform .1s, filter .15s;
}
.bslap-submit:hover { filter: brightness(1.08); }
.bslap-submit:active { transform: scale(.99); }
.bslap-submit[disabled] { opacity: .65; cursor: progress; }
.bslap-error { background: #FDECEA; color: #A52714; border-radius: 10px; padding: 11px 14px; font-size: 14px; margin-bottom: 12px; }
.bslap-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Thank you */
.bslap-thanks { text-align: center; padding: 20px 4px 6px; outline: none; }
.bslap-thanks__tick { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); }
.bslap-thanks h2 { font-size: 22px; margin: 0 0 8px; line-height: 1.3; }
.bslap-thanks__lead { color: var(--muted); font-size: 15.5px; margin: 0 0 22px; font-weight: 600; }
.bslap-book { margin: 0 0 22px; }
.bslap-thanks__social-title { font-weight: 700; margin: 6px 0 12px; }
.bslap-socials { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.bslap-socials a {
	width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
	transition: background .15s, color .15s;
}
.bslap-socials a:hover { background: var(--brand); color: var(--brand-ink); }

.bslap-footer { max-width: 620px; margin: 0 auto; padding: 22px 22px calc(28px + env(safe-area-inset-bottom)); font-size: 12px; line-height: 1.6; color: #7A808A; text-align: center; }
.bslap-footer p { margin: 0 0 8px; }
.bslap-footer a { color: inherit; }
.bslap-risk { font-weight: 700; color: #4A4F57; }

/* Embedded (shortcode inside a theme page) */
.bslap-embed { max-width: 640px; }

.bslap-again { display: block; width: 100%; margin: 0 0 24px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--brand); background: #fff; color: var(--brand); font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; }
.bslap-again:hover { background: var(--brand-softer); }

/* Mortgage / protection chooser */
.bslap-chooser { margin-top: 20px; display: grid; gap: 12px; }
.bslap-chooser[hidden] { display: none; }
.bslap-chooser__q { font-weight: 700; font-size: 16px; margin: 0 0 2px; }
.bslap-choice { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 18px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .08s; }
.bslap-choice:hover, .bslap-choice:focus-visible { border-color: var(--brand); box-shadow: 0 6px 18px var(--brand-soft); outline: none; }
.bslap-choice:active { transform: scale(.99); }
.bslap-choice__icon { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.bslap-choice__text { flex: 1; min-width: 0; }
.bslap-choice__text strong { display: block; font-size: 16.5px; }
.bslap-choice__text small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 3px; line-height: 1.4; }
.bslap-choice__go { font-size: 28px; color: var(--brand); line-height: 1; }
.bslap-back { border: 0; background: var(--brand-soft); color: var(--brand); font: inherit; font-size: 13.5px; font-weight: 700; padding: 8px 13px; border-radius: 999px; cursor: pointer; margin: 0 0 18px; }
.bslap-label { font-size: 13.5px; font-weight: 600; color: #2B2F36; margin: 14px 0 8px; }
.bslap-label em { color: var(--accent); font-style: normal; }
.bslap-hint { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.bslap-chips.is-invalid .bslap-chip span { border-color: #D93025; }
.bslap-field input[type=date] { min-height: 50px; }
.bslap-thanks__lead small { font-weight: 400; font-size: 13.5px; }
.bslap-socials + .bslap-thanks__social-title { margin-top: 22px; }
.bslap-req { color: var(--accent); font-style: normal; }

/* Single question sections from the Form editor: the question reads like a section heading */
.bslap-step--q > .bslap-label:first-child { font-weight: 700; font-size: 15.5px; color: inherit; margin: 0 0 12px; }
.bslap-step--q > .bslap-label small { font-weight: 400; color: var(--muted); }
.bslap-step--q > .bslap-field > span { font-weight: 700; font-size: 15.5px; }
