/* City free-audit pop-up (V2-Popup-CityAudit / -Newcastle, desktop 1440 and mobile 390 boards). */
.fx-cpop { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.fx-cpop[hidden] { display: none; }
.fx-cpop__backdrop { position: absolute; inset: 0; background: rgba(23, 17, 46, .58); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fxCpopFade 300ms ease-out both; }
.fx-cpop__modal {
	position: relative; width: min(900px, 100%); min-height: min(660px, calc(100vh - 40px)); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); border-radius: 28px; background: var(--surface);
	box-shadow: 0 60px 120px -40px rgba(23, 17, 46, .7); display: grid; grid-template-columns: 360px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); overflow: hidden;
	animation: fxCpopIn 520ms var(--ease) both;
}
@keyframes fxCpopFade { from { opacity: 0; } }
@keyframes fxCpopIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }

/* Left panel */
.fx-cpop__side { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 36px 32px 32px; display: flex; flex-direction: column; gap: 22px; }
.fx-cpop__glow { position: absolute; right: -90px; top: -110px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(91, 43, 217, .65), transparent 70%); pointer-events: none; }
.fx-cpop__glow.is-coral { right: auto; top: auto; left: -110px; bottom: -120px; background: radial-gradient(circle, rgba(238, 90, 58, .35), transparent 70%); }
.fx-cpop__bob { position: absolute; right: 28px; bottom: 36px; width: 52px; height: 52px; border-radius: 12px; background: var(--coral); transform: rotate(18deg); animation: fxCpopBob 6s ease-in-out infinite; }
@keyframes fxCpopBob { 50% { transform: rotate(10deg) translateY(-8px); } }
.fx-cpop__logo { position: relative; }
.fx-cpop__card { position: relative; border-radius: 18px; background: #fff; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .6); }
.fx-cpop__search { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: 13.5px; }
.fx-cpop__search svg { flex: none; width: 15px; height: 15px; color: var(--ink); }
.fx-cpop__q { display: inline-block; white-space: nowrap; animation: fxCpopType 2.2s steps(18) 500ms both; }
@keyframes fxCpopType { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.fx-cpop__hint-m { display: none; }
.fx-cpop__res { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--violet-soft); border: 1.5px solid #CFC6F2; animation: fxCpopRes 500ms var(--ease) 2.8s both; }
@keyframes fxCpopRes { from { opacity: 0; transform: translateY(8px); } }
.fx-cpop__pin { position: relative; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--coral); color: #fff; display: flex; align-items: center; justify-content: center; }
.fx-cpop__pin svg { width: 16px; height: 16px; }
.fx-cpop__ping { position: absolute; inset: 0; border-radius: 8px; border: 2px solid var(--coral); animation: fxCpopPing 2s ease-out 3.2s infinite; }
@keyframes fxCpopPing { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.fx-cpop__rt { display: flex; flex-direction: column; gap: 1px; }
.fx-cpop__rn { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.fx-cpop__rm { font-size: 11.5px; color: var(--muted); }
.fx-cpop__covers { position: relative; display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.fx-cpop__clabel { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #A898FF; }
.fx-cpop__cover { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; color: #fff; }
.fx-cpop__tk { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; background: var(--violet); color: #fff; display: flex; align-items: center; justify-content: center; }
.fx-cpop__tk.is-coral { background: var(--coral); }
.fx-cpop__foot { position: relative; margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; gap: 10px; max-width: 230px; }
.fx-cpop__rating { display: flex; align-items: center; gap: 10px; }
.fx-cpop__rn2 { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1; }
.fx-cpop__rtxt { display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 1.35; color: var(--dark-muted, #A9A3C4); }
.fx-cpop__office { font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .78); }

/* Right panel */
.fx-cpop__main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.fx-cpop__x {
	position: absolute; right: 18px; top: 18px; z-index: 3; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
	color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 200ms var(--ease);
}
.fx-cpop__x:hover { transform: rotate(90deg); }
.fx-cpop__head { position: relative; padding: 36px 40px 0; display: flex; flex-direction: column; gap: 12px; }
.fx-cpop__head .fx-cpop__glow, .fx-cpop__head .fx-cpop__bob { display: none; }
.fx-cpop__tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px; background: #FFE8E2; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #AB2F1C; }
.fx-cpop__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.fx-cpop__h { margin: 0; padding-right: 48px; font-family: var(--font-display); font-weight: 800; font-size: 38px; line-height: 1.02; letter-spacing: -0.035em; color: var(--ink); text-wrap: wrap; }
.fx-cpop__h-form, .fx-cpop__h-done { display: block; }
.fx-cpop__v { display: block; color: var(--violet); }
.fx-cpop__lead { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.fx-cpop__h-done { display: none; }
.fx-cpop__body { padding: 20px 40px 32px; }
.fx-cpop__form { display: flex; flex-direction: column; gap: 16px; }
.fx-cpop__form[hidden] { display: none; }
.fx-cpop__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.fx-cpop__f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fx-cpop__f--website { grid-column: 1 / -1; }
.fx-cpop__f label, .fx-cpop__chips legend { font-size: 14px; font-weight: 600; color: var(--ink); }
.fx-cpop__opt { font-weight: 400; color: var(--muted); }
.fx-cpop__in { height: 48px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 15px; color: var(--ink); transition: border-color 150ms; }
.fx-cpop__in::placeholder { color: #8F8AA6; }
.fx-cpop__in:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(91, 43, 217, .15); }
.fx-cpop__in[aria-invalid="true"] { border-color: var(--cta); }
.fx-cpop__err { font-size: 13px; color: var(--cta); }
.fx-cpop__err:empty { display: none; }
.fx-cpop__chips { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.fx-cpop__chips legend { padding: 0; margin-bottom: 10px; }
.fx-cpop__chiplist { display: flex; flex-wrap: wrap; gap: 7px; }
.fx-cpop__chip {
	min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
	font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background-color 150ms, border-color 150ms, color 150ms;
}
.fx-cpop__chip:hover { border-color: #CFC6F2; }
.fx-cpop__chip[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.fx-cpop__status { margin: 0; padding: 10px 14px; border-radius: 10px; background: #FFE8E2; color: #AB2F1C; font-size: 14px; }
.fx-cpop__status[hidden] { display: none; }
.fx-cpop__submit { height: 56px; font-size: 17px; border-radius: 12px; }
.fx-cpop__submit[disabled] { opacity: .75; cursor: progress; }
.fx-cpop__fine { margin: -4px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.fx-cpop__fine a { color: var(--violet); text-decoration: underline; }

/* Thank-you state */
.fx-cpop.is-done .fx-cpop__head { display: none; }
.fx-cpop__done { padding-top: 64px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.fx-cpop__done[hidden] { display: none; }
.fx-cpop__ok { width: 64px; height: 64px; border-radius: 16px; background: var(--teal, #0B8574); color: #fff; display: flex; align-items: center; justify-content: center; animation: fxCpopPop 480ms cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes fxCpopPop { from { transform: scale(.4); opacity: 0; } }
.fx-cpop__done-h { margin: 6px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 38px; line-height: 1.05; letter-spacing: -0.035em; color: var(--ink); }
.fx-cpop__done-p { margin: 0; max-width: 430px; font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.fx-cpop__next { width: 100%; max-width: 430px; padding: 18px 20px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.fx-cpop__nlabel { margin: 0 0 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.fx-cpop__next ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fx-cpop__next li { display: flex; gap: 12px; font-size: 15px; color: var(--ink); }
.fx-cpop__next li span { font-family: var(--font-mono); color: #9A93B5; }
.fx-cpop__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fx-cpop__actions .fx-btn { height: 52px; }

/* Reopen pill */
.fx-cpop-pill {
	position: fixed; z-index: 150; right: max(24px, env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 10px; border: 0; border-radius: 999px; background: var(--ink); color: #fff;
	font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 20px 40px -18px rgba(23, 17, 46, .7); animation: fxCpopIn 400ms var(--ease) both;
}
.fx-cpop-pill[hidden] { display: none; }
.fx-cpop-pill__tk { width: 32px; height: 32px; border-radius: 9px; background: var(--coral); display: flex; align-items: center; justify-content: center; }
.fx-cpop-pill__m { display: none; }
body.fx-cpop-locked { overflow: hidden; }

/* Short laptop screens: tighter spacing so the whole form fits (the right side still scrolls if it must). */
@media (min-width: 961px) and (max-height: 820px) {
	.fx-cpop__side { padding: 26px 26px 24px; gap: 16px; }
	.fx-cpop__card { padding: 12px; gap: 8px; }
	.fx-cpop__covers { gap: 9px; margin-top: 0; }
	.fx-cpop__cover { font-size: 14px; }
	.fx-cpop__foot { padding-top: 14px; }
	.fx-cpop__head { padding: 26px 34px 0; gap: 8px; }
	.fx-cpop__h { font-size: 32px; }
	.fx-cpop__lead { font-size: 15px; }
	.fx-cpop__body { padding: 14px 34px 22px; }
	.fx-cpop__form { gap: 12px; }
	.fx-cpop__grid { gap: 10px 12px; }
	.fx-cpop__in { height: 42px; }
	.fx-cpop__chips legend { margin-bottom: 6px; }
	.fx-cpop__chip { min-height: 32px; font-size: 13px; }
	.fx-cpop__submit { height: 50px; }
	.fx-cpop__done { padding-top: 32px; gap: 14px; }
}
@media (min-width: 961px) and (max-height: 700px) {
	.fx-cpop__card { display: none; }
	.fx-cpop__head { padding-top: 22px; }
	.fx-cpop__h { font-size: 30px; }
	.fx-cpop__body { padding-top: 12px; padding-bottom: 16px; }
	.fx-cpop__form { gap: 10px; }
	.fx-cpop__f { gap: 4px; }
	.fx-cpop__in { height: 40px; }
	.fx-cpop__submit { height: 46px; }
}

/* Phones: header band, one-column form scrolling inside the modal, no example card. */
@media (max-width: 960px) {
	.fx-cpop { padding: 20px 12px; align-items: stretch; }
	.fx-cpop__modal { grid-template-columns: minmax(0, 1fr); min-height: 0; max-height: none; height: 100%; border-radius: 24px; }
	.fx-cpop__side { display: none; }
	.fx-cpop__main { overflow: hidden; }
	.fx-cpop__head { flex: none; overflow: hidden; padding: 22px 20px 20px; background: var(--ink); color: #fff; }
	.fx-cpop__head .fx-cpop__glow { display: block; }
	.fx-cpop__head .fx-cpop__bob { display: block; right: 24px; bottom: 20px; width: 34px; height: 34px; border-radius: 9px; }
	.fx-cpop__x { right: 14px; top: 14px; width: 44px; height: 44px; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
	.fx-cpop__tag { position: relative; background: rgba(255, 255, 255, .08); color: #FFD3C6; }
	.fx-cpop__h { position: relative; font-size: 28px; color: #fff; padding-right: 52px; }
	.fx-cpop__v { color: #A898FF; }
	.fx-cpop__lead { position: relative; font-size: 15px; color: rgba(255, 255, 255, .78); padding-right: 40px; }
	.fx-cpop__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px 22px; }
	.fx-cpop__grid { grid-template-columns: minmax(0, 1fr); }
	.fx-cpop__f--business { display: none; }
	.fx-cpop__hint-d { display: none; }
	.fx-cpop__hint-m { display: inline; }
	.fx-cpop__in { font-size: 16px; height: 50px; }
	.fx-cpop__chip { min-height: 40px; }
	.fx-cpop.is-done .fx-cpop__head { display: flex; }
	.fx-cpop.is-done .fx-cpop__h-form { display: none; }
	.fx-cpop.is-done .fx-cpop__h-done { display: block; }
	.fx-cpop__body:has(.fx-cpop__done:not([hidden])) { display: flex; flex-direction: column; }
	.fx-cpop__done { padding-top: 6px; flex: 1 0 auto; }
	.fx-cpop__actions { margin-top: auto; padding-top: 12px; }
	.fx-cpop__done-h { display: none; }
	.fx-cpop__actions { width: 100%; flex-direction: column; }
	.fx-cpop__actions .fx-btn { width: 100%; }
	.fx-cpop-pill { left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); justify-content: center; }
	.fx-cpop-pill__d { display: none; }
	.fx-cpop-pill__m { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
	.fx-cpop *, .fx-cpop-pill, .fx-cpop__backdrop { animation: none !important; transition: none !important; }
	.fx-cpop__q { clip-path: none !important; }
}
