/* Closing block on every page (theme 0.18.0, 2 Dec 2026). Port of the approved closing_v7.html: same values,
   class names given a bcc- prefix and every rule scoped to the block or its dialog, so that neither the site's
   styles nor the old plugins' (button, input, h2, .btn) reach it, and it reaches nothing else.
   Fonts: the theme's "BC Nunito Sans" (assets/css/fonts.css, 400, 700, 800). */

/* ---- the old closings give way (see inc/closing.php) ---- */
html body:not(#bcc0):not(#bcc1):not(#bcc2):not(#bcc3):not(#bcc4):not(#bcc5):not(#bcc6):not(#bcc7):not(#bcc8):not(#bcc9):not(#bcc10):not(#bcc11):not(#bcc12) :is(.bc-section.bc-next, .bc-section.bc-closing, .u-closing, .u-readyband, .bh11-readyband, .bh11-ready-h, .bh11-ready-btns, .bhw-sec.bhw-s-cta) {
	display: none !important;
}

/* ---- tokens ---- */
.bc-close, .bc-dialog {
	--bcc-navy: #1B3A52; --bcc-navy-2: #284557; --bcc-navy-deep: #132C3F;
	--bcc-blue: #29A8E0; --bcc-turq: #19CCA3;
	--bcc-btn: #5BB6E5; --bcc-btn-hover: #4AAADB;
	--bcc-ink: #1B3A52; --bcc-muted-on-navy: #C3D3DF;
	--bcc-focus: #19CCA3;
	--bcc-ease: cubic-bezier(.2,.7,.2,1);
	--bcc-font: "BC Nunito Sans", "Nunito Sans", system-ui, sans-serif;
}
html body .bc-close, html body .bc-close *, html body .bc-close *::before, html body .bc-close *::after,
html body .bc-dialog, html body .bc-dialog *, html body .bc-dialog *::before, html body .bc-dialog *::after { box-sizing: border-box; }

/* ===== Closing block ===== */
html body .bc-close {
	position: relative; isolation: isolate; overflow: hidden; display: block; margin: 0; width: 100%;
	background:
		radial-gradient(120% 140% at 0% 0%, #2B4C63 0%, rgba(43,76,99,0) 55%),
		linear-gradient(165deg, var(--bcc-navy-2) 0%, var(--bcc-navy) 48%, var(--bcc-navy-deep) 100%);
	color: #fff;
	font-family: var(--bcc-font);
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
	padding: clamp(64px,6.5vw,104px) clamp(20px,5.5vw,80px) clamp(64px,6.5vw,104px);
}
/* hairline highlight along the top edge */
html body .bc-close::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; z-index: 1;
	background: linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.22) 30%,rgba(255,255,255,.22) 70%,rgba(255,255,255,0) 100%);
}
/* very fine grain, kills banding in the gradient */
html body .bc-close::after {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .07;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
html body .bc-close .bc-close__rainbow {
	position: absolute; z-index: 0; pointer-events: none;
	width: min(1320px,104vw); aspect-ratio: 1400/667;
	right: -12%; top: 50%; transform: translateY(-36%);
	background: url("/wp-content/themes/bifrostconnect/assets/close/official-rainbow-crop.webp") center/contain no-repeat;
	opacity: .92;
	-webkit-mask-image: radial-gradient(62% 78% at 62% 50%,#000 38%,rgba(0,0,0,.6) 60%,transparent 84%);
	        mask-image: radial-gradient(62% 78% at 62% 50%,#000 38%,rgba(0,0,0,.6) 60%,transparent 84%);
}
html body .bc-close .bc-close__inner {
	position: relative; z-index: 2; max-width: 1200px; margin: 0 auto;
	display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); align-items: center;
	gap: clamp(32px,6vw,96px);
}
html body .bc-close .bc-close__title {
	margin: 0; padding: 0; font-family: var(--bcc-font); font-weight: 800; letter-spacing: -.03em; line-height: 1;
	font-size: clamp(40px,5.6vw,86px); white-space: nowrap; color: #fff; text-transform: none; text-shadow: none;
}
html body .bc-close .bc-close__title .bcc-nb { white-space: nowrap; font: inherit; color: inherit; }
html body .bc-close .bc-close__line {
	margin: clamp(18px,1.8vw,26px) 0 0; padding: 0;
	font-family: var(--bcc-font); font-size: clamp(17px,1.45vw,21px); line-height: 1.5; font-weight: 400;
	color: var(--bcc-muted-on-navy); max-width: 34ch;
}
html body .bc-close .bc-close__rule {
	display: block; width: 56px; height: 3px; border-radius: 2px; margin: 0 0 clamp(22px,2.4vw,32px);
	background: linear-gradient(90deg,var(--bcc-turq),var(--bcc-blue));
}
/* frosted action panel, the rainbow glows through it */
html body .bc-close .bc-close__panel {
	position: relative;
	padding: clamp(22px,2.4vw,32px);
	border-radius: 28px;
	background: linear-gradient(160deg,rgba(23,52,74,.62),rgba(19,44,63,.74));
	-webkit-backdrop-filter: blur(28px) saturate(140%); backdrop-filter: blur(28px) saturate(140%);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.16),inset 0 0 0 1px rgba(255,255,255,.08),0 40px 80px -40px rgba(4,16,26,.8);
	display: flex; flex-direction: column; gap: 12px;
}
html body .bc-close .bc-close__panel .bcc-btn { width: 100%; justify-content: space-between; }
html body .bc-close .bc-close__panel .bcc-btn--quiet { justify-content: flex-start; margin-top: 6px; padding: 0 30px 0 22px; min-height: 60px; }
html body .bc-close .bc-close__panel .bcc-divider { display: block; height: 1px; margin: 8px 8px 0; background: linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.16) 20%,rgba(255,255,255,.16) 80%,rgba(255,255,255,0)); }
@media (min-width: 1200px) { html body .bc-close .bc-close__panel .bcc-btn { --bcc-h: 60px; font-size: 18px; } }
@media (min-width: 900px) and (max-width: 1199px) {
	html body .bc-close .bc-close__inner { grid-template-columns: minmax(0,1fr) minmax(360px,.9fr); gap: clamp(28px,4vw,48px); }
	html body .bc-close .bc-close__panel .bcc-btn { padding: 0 24px 0 26px; }
}

/* buttons */
html body :is(.bc-close, .bc-dialog) .bcc-btn {
	--bcc-h: 56px;
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: var(--bcc-h); height: auto; margin: 0; padding: 0 26px 0 30px; border-radius: 999px;
	font: 700 17px/1 var(--bcc-font); letter-spacing: .005em; text-transform: none; text-shadow: none;
	text-decoration: none; cursor: pointer; border: 0; white-space: nowrap; outline: none;
	transition: background-color .25s var(--bcc-ease),border-color .25s var(--bcc-ease),color .25s var(--bcc-ease),transform .25s var(--bcc-ease),box-shadow .25s var(--bcc-ease);
}
html body :is(.bc-close, .bc-dialog) .bcc-btn svg { flex: none; width: 18px; height: 18px; transition: transform .3s var(--bcc-ease); }
html body :is(.bc-close, .bc-dialog) .bcc-btn:hover svg.bcc-arrow { transform: translateX(3px); }
html body .bc-close .bcc-btn:focus-visible { outline: 3px solid var(--bcc-focus); outline-offset: 3px; }

html body :is(.bc-close, .bc-dialog) .bcc-btn--primary {
	background: var(--bcc-btn); color: #fff;
	box-shadow: 0 1px 0 rgba(255,255,255,.25) inset,0 10px 30px -10px rgba(41,168,224,.65);
}
html body :is(.bc-close, .bc-dialog) .bcc-btn--primary:hover { background: var(--bcc-btn-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset,0 16px 36px -12px rgba(41,168,224,.75); }

html body .bc-close .bcc-btn--ghost {
	background: rgba(255,255,255,.04); color: #fff;
	box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
html body .bc-close .bcc-btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }

html body .bc-close .bcc-btn--quiet { background: transparent; color: #fff; padding: 0 18px 0 14px; box-shadow: none; }
html body .bc-close .bcc-btn--quiet:hover { background: transparent; color: #fff; }
html body .bc-close .bcc-btn--quiet .bcc-ico {
	display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
	box-shadow: inset 0 0 0 1.5px rgba(25,204,163,.75); color: var(--bcc-turq);
	transition: background-color .25s var(--bcc-ease);
}
html body .bc-close .bcc-btn--quiet .bcc-ico svg { width: 16px; height: 16px; }
html body .bc-close .bcc-btn--quiet .bcc-lbl { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: rgba(255,255,255,.4); transition: text-decoration-color .25s var(--bcc-ease); }
html body .bc-close .bcc-btn--quiet:hover .bcc-lbl { text-decoration-color: #fff; }
html body .bc-close .bcc-btn--quiet:hover .bcc-ico { background: rgba(25,204,163,.14); }

/* ===== Dialog ===== */
html body dialog.bc-dialog {
	border: 0; padding: 0; margin: auto;
	width: min(520px,calc(100vw - 24px)); max-width: none; height: fit-content; min-height: 0; max-height: calc(100dvh - 24px);
	border-radius: 20px; background: #fff; color: var(--bcc-ink);
	font-family: var(--bcc-font); font-size: 16px; line-height: 1.5; text-align: left;
	-webkit-font-smoothing: antialiased;
	box-shadow: 0 40px 100px -20px rgba(10,28,42,.55),0 0 0 1px rgba(27,58,82,.06);
	overflow: auto; overscroll-behavior: contain;
}
html body dialog.bc-dialog:not([open]) { display: none; }
html body dialog.bc-dialog::backdrop { background: rgba(12,30,44,.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
html body dialog.bc-dialog[open] { animation: bccDlgIn .35s cubic-bezier(.2,.7,.2,1); }
html body dialog.bc-dialog[open]::backdrop { animation: bccFade .35s cubic-bezier(.2,.7,.2,1); }
@keyframes bccDlgIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes bccFade { from { opacity: 0; } to { opacity: 1; } }

html body .bc-dialog .bcc-dlg__head {
	position: relative; overflow: hidden;
	padding: 28px 64px 26px 28px;
	background: linear-gradient(160deg,var(--bcc-navy-2),var(--bcc-navy) 70%); color: #fff;
}
html body .bc-dialog .bcc-dlg__head::after {
	content: ""; position: absolute; right: 64px; top: 50%; transform: translateY(-50%); width: 112px; aspect-ratio: 1400/667;
	background: url("/wp-content/themes/bifrostconnect/assets/close/official-rainbow-crop.webp") center/contain no-repeat; opacity: .6; pointer-events: none;
}
html body .bc-dialog .bcc-dlg__title { position: relative; z-index: 1; margin: 0; padding: 0; font-family: var(--bcc-font); font-weight: 800; font-size: clamp(22px,5.2vw,27px); letter-spacing: -.015em; line-height: 1.15; color: #fff; text-transform: none; }
html body .bc-dialog .bcc-dlg__close {
	position: absolute; z-index: 2; top: 12px; right: 12px; width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0; border-radius: 50%;
	display: grid; place-items: center; border: 0; cursor: pointer; color: #fff;
	background: rgba(255,255,255,.1); box-shadow: none; transition: background-color .2s var(--bcc-ease);
}
html body .bc-dialog .bcc-dlg__close:hover { background: rgba(255,255,255,.2); color: #fff; }
html body .bc-dialog .bcc-dlg__close:focus-visible { outline: 3px solid var(--bcc-focus); outline-offset: 2px; }
html body .bc-dialog .bcc-dlg__close svg { width: 18px; height: 18px; }

html body .bc-dialog .bcc-dlg__body { padding: 26px 28px 28px; }
html body .bc-dialog .bcc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; margin: 0; }
html body .bc-dialog .bcc-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; }
html body .bc-dialog .bcc-field--full { grid-column: 1/-1; }
html body .bc-dialog .bcc-field label { display: block; margin: 0; padding: 0; font-family: var(--bcc-font); font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--bcc-ink); text-transform: none; letter-spacing: normal; }
html body .bc-dialog .bcc-field input {
	display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px; border-radius: 10px;
	border: 1.5px solid #B8C9D6; background: #fff; color: var(--bcc-ink); box-shadow: none;
	font: 400 16px var(--bcc-font);
	transition: border-color .2s var(--bcc-ease),box-shadow .2s var(--bcc-ease);
}
html body .bc-dialog .bcc-field input:hover { border-color: #8FA8BA; }
html body .bc-dialog .bcc-field input:focus { background: #fff; color: var(--bcc-ink); }
html body .bc-dialog .bcc-field input:focus-visible { outline: 3px solid var(--bcc-navy); outline-offset: 3px; border-color: var(--bcc-navy); }
html body .bc-dialog .bcc-field input[aria-invalid="true"] { border-color: #B3261E; }
html body .bc-dialog .bcc-err { font-size: 13px; line-height: 1.4; color: #B3261E; min-height: 0; }
html body .bc-dialog .bcc-err--block { display: block; }
html body .bc-dialog .bcc-err:empty { display: none; }

html body .bc-dialog .bcc-consent { grid-column: 1/-1; display: flex; gap: 12px; align-items: flex-start; margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: #3E5668; }
html body .bc-dialog .bcc-consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; padding: 0; accent-color: var(--bcc-navy); cursor: pointer; }
html body .bc-dialog .bcc-consent input:focus-visible { outline: 3px solid var(--bcc-navy); outline-offset: 3px; }
html body .bc-dialog .bcc-consent label { display: inline; margin: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-transform: none; letter-spacing: normal; }
html body .bc-dialog .bcc-consent a { color: #1B6E9A; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
html body .bc-dialog .bcc-consent a:focus-visible { outline: 3px solid var(--bcc-navy); outline-offset: 3px; border-radius: 3px; }
html body .bc-dialog .bcc-nb { white-space: nowrap; }

html body .bc-dialog .bcc-form__submit { grid-column: 1/-1; margin-top: 8px; width: 100%; }
html body .bc-dialog .bcc-btn:focus-visible, html body .bc-dialog .bcc-success__title:focus-visible { outline: 3px solid var(--bcc-navy); outline-offset: 3px; }
html body .bc-dialog .bcc-success__title:focus { outline: none; }
html body .bc-dialog .bcc-form__submit.bcc-btn--primary { box-shadow: 0 10px 24px -12px rgba(41,168,224,.8); }
html body .bc-dialog .bcc-form__submit[aria-disabled="true"] { opacity: .6; cursor: wait; transform: none; }

html body .bc-dialog .bcc-success { display: none; text-align: center; padding: 12px 4px 4px; }
html body .bc-dialog .bcc-success__mark { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(25,204,163,.12); color: #0E8A6D; }
html body .bc-dialog .bcc-success__mark svg { width: 28px; height: 28px; }
html body .bc-dialog .bcc-success__title { margin: 0 0 8px; padding: 0; font-family: var(--bcc-font); font-size: 24px; line-height: 1.25; font-weight: 800; color: var(--bcc-ink); letter-spacing: -.015em; }
html body .bc-dialog .bcc-success__text { margin: 0 auto 6px; padding: 0; max-width: 34ch; font-size: 16px; line-height: 1.55; color: #3E5668; }
html body .bc-dialog .bcc-form-error { grid-column: 1/-1; margin: 0; padding: 12px 14px; border-radius: 10px; background: #FCEEEE; color: #8C1D18; font-size: 14.5px; line-height: 1.5; }
html body .bc-dialog .bcc-form-error[hidden] { display: none; }
html body .bc-dialog .bcc-form-error a { color: #8C1D18; font-weight: 700; }
html body .bc-dialog .is-done .bcc-form { display: none; }
html body .bc-dialog .is-done .bcc-success { display: block; }

/* ===== responsive ===== */
@media (max-width: 899px) {
	html body .bc-close { padding-bottom: 56px; }
	html body .bc-close .bc-close__inner { grid-template-columns: 1fr; gap: clamp(32px,6vw,48px); }
	html body .bc-close .bc-close__panel { max-width: 560px; }
	/* recognisable piece of the arch, bottom right; crown about 40 px below the panel */
	html body .bc-close .bc-close__rainbow { width: 560px; right: -96px; top: auto; bottom: -101px; transform: none; opacity: .8;
		-webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 479px) {
	html body .bc-close .bc-close__title { font-size: clamp(34px,10vw,44px); }
	html body .bc-close .bc-close__panel { padding: 16px; border-radius: 24px; }
	html body .bc-close .bc-close__rainbow { display: none; }
	html body .bc-dialog .bcc-form { grid-template-columns: 1fr; }
	html body .bc-dialog .bcc-dlg__head { padding: 24px 60px 22px 22px; }
	html body .bc-dialog .bcc-dlg__body { padding: 22px 22px 24px; }
	html body .bc-dialog .bcc-dlg__head::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	html body :is(.bc-close, .bc-dialog), html body :is(.bc-close, .bc-dialog) *, html body :is(.bc-close, .bc-dialog) *::before, html body :is(.bc-close, .bc-dialog) *::after,
	html body dialog.bc-dialog::backdrop { animation: none !important; transition: none !important; }
	html body :is(.bc-close, .bc-dialog) .bcc-btn:hover { transform: none; }
}
