/* Spectrum conversational property form (chat layer), v1.0.0, 17 Oct 2026.
   Loaded only when the shortcode is [spectrum_lead_form chat="1"]. Sits on top of the classic form:
   the classic fieldsets are hidden and the chat fills the real inputs. Mobile first; big type, big targets. */

#sef-app.sef-chat .sef-title, #sef-app.sef-chat .sef-title-rule { display: none; }
#sef-app.sef-chat .sef-card { padding-top: 10px; }
#sef-app.sef-chat #sef-form > .sef-fs { display: none; }
#sef-app.sef-chat #sef-form > .sef-fs.sefc-roof-live { display: block; border: 0; padding: 0; margin: 16px 0 0; } /* 17 Oct 2026 (Mitch): breathing room between the quick questions and the two roof buttons */
#sef-app.sef-chat #sef-form > .sef-fs.sefc-roof-live > legend, #sef-app.sef-chat #sef-form > .sef-fs.sefc-roof-live > .sef-mode-q { display: none; }
#sef-app.sef-chat #sef-submit, #sef-app.sef-chat .sef-privacy { display: none; }
#sef-app.sef-chat #sef-error { display: none !important; }

.sefc { --sefc-navy: #17304A; --sefc-cyan: #3AC3E9; --sefc-ink: #1f2d3d; --sefc-muted: #5f6f7f; --sefc-line: #dfe4ee; --sefc-bg: #f4f7fa; --sefc-ok: #1F8A5A;
  font-family: inherit; color: var(--sefc-ink); font-size: 18px; line-height: 1.45; }
.sefc * { box-sizing: border-box; }
.sefc-top { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.sefc-progress { flex: 1; height: 10px; background: var(--sefc-line); border-radius: 999px; overflow: hidden; }
.sefc-progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sefc-cyan), #1f9fcc); border-radius: 999px; transition: width .4s ease; }
.sefc-step { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* v1.2.1: count hidden from sight, kept for screen readers */
.sefc-top .sefc-progress { flex: 1 1 auto; }

.sefc-stage { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: start; margin: 6px 0 14px; }
.sefc-avatar { width: 76px; height: 76px; border-radius: 50%; background: #e9f6fb; border: 2px solid var(--sefc-cyan); overflow: hidden; }
.sefc-avatar canvas { width: 100%; height: 100%; display: block; }
.sefc-bubble { position: relative; background: #fff; border: 1px solid var(--sefc-line); border-radius: 18px 18px 18px 4px; padding: 14px 16px; min-height: 60px; box-shadow: 0 2px 10px rgba(23,48,74,.06); }
.sefc-bubble::before { content: ""; position: absolute; left: -9px; top: 22px; border: 8px solid transparent; border-right-color: var(--sefc-line); border-left: 0; }
.sefc-bubble::after { content: ""; position: absolute; left: -7px; top: 23px; border: 7px solid transparent; border-right-color: #fff; border-left: 0; }
.sefc-name { font-size: 13px; color: var(--sefc-muted); margin: 0 0 4px; letter-spacing: .02em; }
.sefc-text { margin: 0; font-size: 19px; color: var(--sefc-ink); min-height: 1.4em; }
.sefc-text .sefc-caret { display: inline-block; width: .5em; animation: sefc-blink 1s steps(1) infinite; color: var(--sefc-cyan); }
@keyframes sefc-blink { 50% { opacity: 0; } }
.sefc-sub { margin: 8px 0 0; font-size: 15px; color: var(--sefc-muted); }

.sefc-control { margin: 0 0 10px; }
.sefc-choices { display: grid; gap: 10px; grid-template-columns: 1fr; }
.sefc-choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px; border: 2px solid var(--sefc-line); background: #fff; border-radius: 14px; font: inherit; font-size: 18px; color: var(--sefc-ink); text-align: left; cursor: pointer; }
.sefc-choice:hover, .sefc-choice:focus-visible { border-color: var(--sefc-cyan); outline: none; box-shadow: 0 0 0 4px rgba(58,195,233,.18); background: #eef7fb; color: var(--sefc-ink); }
/* the site theme styles every button on hover/focus/active; keep ours as designed */
#sef-app.sef-chat .sefc button, #sef-app.sef-chat .sefc button:hover, #sef-app.sef-chat .sefc button:focus, #sef-app.sef-chat .sefc button:active { text-transform: none; letter-spacing: 0; transition: none; }
#sef-app.sef-chat .sefc .sefc-choice, #sef-app.sef-chat .sefc .sefc-choice:hover, #sef-app.sef-chat .sefc .sefc-choice:active { color: var(--sefc-ink); }
#sef-app.sef-chat .sefc .sefc-faq-chip, #sef-app.sef-chat .sefc .sefc-faq-chip:hover, #sef-app.sef-chat .sefc .sefc-faq-chip:active, #sef-app.sef-chat .sefc .sefc-faq-chip.is-open { color: var(--sefc-navy); background: #fff; }
#sef-app.sef-chat .sefc .sefc-faq-chip.is-open { background: #eef7fb; }
#sef-app.sef-chat .sefc .sefc-next, #sef-app.sef-chat .sefc .sefc-next:hover, #sef-app.sef-chat .sefc .sefc-next:active { color: #fff; }
#sef-app.sef-chat .sefc .sefc-back, #sef-app.sef-chat .sefc .sefc-back:hover { color: var(--sefc-muted); background: none; }
/* v2.28.2 (Mitch, 15 Nov 2026, screenshot): the skip button ("I'm on one rate") went the theme's red on hover; it had no hover rule of its own */
#sef-app.sef-chat .sefc-skip, #sef-app.sef-chat .sefc-skip:hover, #sef-app.sef-chat .sefc-skip:focus, #sef-app.sef-chat .sefc-skip:active { color: #1f2d3d; background: #fff; }
#sef-app.sef-chat .sefc-skip:hover, #sef-app.sef-chat .sefc-skip:focus-visible { border-color: #3AC3E9; background: #eef7fb; outline: none; box-shadow: 0 0 0 4px rgba(58,195,233,.18); }
.sefc-choice.is-on { border-color: var(--sefc-navy); background: #eef7fb; }
.sefc-choice .sefc-ico { font-size: 24px; width: 32px; text-align: center; flex: 0 0 auto; }
.sefc-choice small { display: block; font-size: 14px; color: var(--sefc-muted); }
.sefc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sefc-chips .sefc-choice { width: auto; min-height: 48px; padding: 10px 14px; font-size: 17px; }

.sefc-input { width: 100%; min-height: 58px; font: inherit; font-size: 20px; padding: 12px 16px; border: 2px solid var(--sefc-line); border-radius: 14px; background: #fff; color: var(--sefc-ink); }
.sefc-input:focus { outline: none; border-color: var(--sefc-cyan); box-shadow: 0 0 0 4px rgba(58,195,233,.18); }
.sefc-input.is-bad { border-color: #c0392b; }
.sefc-inputrow { display: flex; gap: 10px; align-items: stretch; }
.sefc-inputrow .sefc-input { flex: 1; min-width: 0; }
.sefc-unit { display: flex; align-items: center; padding: 0 12px; border: 2px solid var(--sefc-line); border-radius: 14px; background: var(--sefc-bg); color: var(--sefc-muted); font-size: 16px; white-space: nowrap; }
.sefc-textarea { min-height: 96px; resize: vertical; }
.sefc-hint { margin: 8px 0 0; font-size: 15px; color: var(--sefc-muted); }
.sefc-err { margin: 8px 0 0; font-size: 15px; color: #b03a2e; font-weight: 600; }

.sefc-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0 6px; }
.sefc-next { flex: 1 1 220px; min-height: 58px; border: 0; border-radius: 14px; background: var(--sefc-navy); color: #fff; font: inherit; font-size: 19px; font-weight: 700; cursor: pointer; padding: 12px 18px; }
.sefc-next:hover, .sefc-next:focus-visible { background: #1f4568; outline: none; box-shadow: 0 0 0 4px rgba(23,48,74,.18); }
.sefc-next[disabled] { opacity: .55; cursor: default; }
.sefc-send { background: var(--sefc-ok); }
.sefc-send:hover, .sefc-send:focus-visible { background: #19764c; }
.sefc-back { background: none; border: 0; color: var(--sefc-muted); font: inherit; font-size: 16px; text-decoration: underline; cursor: pointer; padding: 10px 4px; min-height: 44px; }
.sefc-skip { background: none; border: 2px solid var(--sefc-line); border-radius: 14px; color: var(--sefc-ink); font: inherit; font-size: 16px; cursor: pointer; padding: 10px 14px; min-height: 48px; }

.sefc-faq { margin: 4px 0 0; border-top: 1px dashed var(--sefc-line); padding-top: 8px; }
.sefc-faq-label { font-size: 12.5px; color: var(--sefc-muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px; }
.sefc-faq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sefc-faq-chip { background: #fff; border: 1px solid var(--sefc-line); border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 13.5px; color: var(--sefc-navy); cursor: pointer; min-height: 32px; }
.sefc-faq-chip:hover, .sefc-faq-chip:focus-visible { border-color: var(--sefc-cyan); outline: none; }
.sefc-faq-chip.is-open { background: #eef7fb; border-color: var(--sefc-cyan); }
.sefc-faq-answer { margin: 8px 0 0; padding: 10px 12px; background: var(--sefc-bg); border-left: 3px solid var(--sefc-cyan); border-radius: 0 10px 10px 0; font-size: 15px; color: var(--sefc-ink); }
.sefc-faq-answer p { margin: 0 0 6px; }
.sefc-faq-answer p:last-child { margin: 0; }
.sefc-faq-answer .sefc-close { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--sefc-muted); background: none; border: 0; text-decoration: underline; cursor: pointer; }

.sefc-summary { border: 1px solid var(--sefc-line); border-radius: 14px; background: #fff; padding: 6px 0; margin: 0 0 10px; }
.sefc-summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--sefc-bg); font-size: 15px; }
.sefc-summary-row:last-child { border-bottom: 0; }
.sefc-summary-row b { color: var(--sefc-muted); font-weight: 500; flex: 0 0 40%; }
.sefc-summary-row span { flex: 1; text-align: right; color: var(--sefc-ink); word-break: break-word; }
.sefc-summary-row button { background: none; border: 0; color: var(--sefc-navy); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; padding: 0 0 0 8px; }
.sefc-privacy { font-size: 13.5px; color: var(--sefc-muted); margin: 8px 0 0; }

.sefc-modal { position: fixed; inset: 0; background: rgba(23,48,74,.55); display: flex; align-items: flex-end; justify-content: center; z-index: 99999; padding: 0; }
@media (min-width: 640px) { .sefc-modal { align-items: center; padding: 20px; } }
.sefc-modal-card { background: #fff; width: 100%; max-width: 560px; max-height: 88vh; max-height: 88dvh; overflow: auto; border-radius: 18px 18px 0 0; padding: 0 0 max(24px, env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; }
.sefc-modal-head { position: sticky; top: 0; z-index: 2; background: #fff; display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px 16px; border-bottom: 1px solid #e6e9ee; }
.sefc-modal-head h3 { flex: 1 1 auto; min-width: 0; }
.sefc-modal-back { background: none; border: 0; color: var(--sefc-navy); font-size: 15px; font-weight: 600; cursor: pointer; padding: 6px 4px; white-space: nowrap; min-height: 44px; }
.sefc-modal-body { padding: 14px 16px 8px; }
@media (min-width: 640px) { .sefc-modal-card { border-radius: 18px; } }
.sefc-modal h3 { margin: 0; font-size: 19px; color: var(--sefc-navy); line-height: 1.25; }
.sefc-modal .sefc-asof { font-size: 13px; color: var(--sefc-muted); margin: 0 0 12px; }
.sefc-modal-x { flex: 0 0 auto; background: none; border: 0; font-size: 30px; line-height: 1; color: var(--sefc-muted); cursor: pointer; padding: 0 6px; min-width: 44px; min-height: 44px; }
.sefc-guide h4 { margin: 14px 0 6px; font-size: 16px; color: var(--sefc-navy); }
.sefc-guide ol { margin: 0 0 8px; padding-left: 22px; font-size: 16px; }
.sefc-guide li { margin: 0 0 4px; }
.sefc-guide p { margin: 0 0 8px; font-size: 15px; }
.sefc-guide .sefc-src { font-size: 12.5px; color: var(--sefc-muted); }
.sefc-suppliers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 10px; }
.sefc-suppliers[hidden], .sefc-modal-back[hidden], .sefc-guide[hidden], .sefc-asof[hidden] { display: none !important; } /* the grid's display:grid would otherwise beat the hidden attribute */
@media (max-width: 400px) { .sefc-suppliers { grid-template-columns: 1fr; } }

.sefc-done { text-align: center; padding: 20px 10px; }
.sefc-done .sefc-tick { width: 72px; height: 72px; border-radius: 50%; background: var(--sefc-ok); color: #fff; font-size: 40px; line-height: 72px; margin: 0 auto 12px; }

@media (max-width: 600px) {
  .sefc { font-size: 17px; }
  .sefc-stage { grid-template-columns: 60px 1fr; gap: 10px; }
  .sefc-avatar { width: 60px; height: 60px; }
  .sefc-text { font-size: 18px; }
  .sefc-choice { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .sefc-progress > i { transition: none; }
  .sefc-text .sefc-caret { animation: none; }
}

/* ---------- Charlie's strip: fixed across the top, slim, never over the form ---------- */
body.sefc-has-strip { padding-top: 104px !important; }
.sefc-strip { position: fixed; top: 0; left: 0; right: 0; height: 100px; z-index: 99990; background: linear-gradient(180deg, #ffffff 0%, #f1f6fa 100%); border-bottom: 2px solid #3AC3E9; box-shadow: 0 2px 10px rgba(23,48,74,.08); overflow: hidden; }
.sefc-strip::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #dfe4ee; }
.sefc-strip-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.sefc-strip-sound { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border: 1px solid #dfe4ee; border-radius: 999px; background: #fff; color: #17304A; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; z-index: 2; }
.sefc-strip-sound.is-muted { color: #6B7883; }
.sefc-strip-sound .sefc-strip-ico { font-size: 16px; }
#sef-app.sef-chat .sef-logo-wrap { margin-top: 8px !important; }
@media (max-width: 600px) {
  body.sefc-has-strip { padding-top: 82px !important; }
  .sefc-strip { height: 78px; }
  .sefc-strip-sound .sefc-strip-txt { display: none; }
  .sefc-strip-sound { padding: 6px 9px; min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .sefc-strip { box-shadow: none; } }
/* v1.2.1 (Mitch, 17 Oct 2026): Complianz's floating "Manage consent" tab sits over the form's corner on this page; hidden here only. The banner itself still shows on a first visit, and consent can still be changed from the footer link. */
body:has(#sef-app.sef-chat) .cmplz-manage-consent { display: none !important; }
/* v1.2.2: the just-moved-in box inside the FAQ answer */
.sefc-movedin { margin: 10px 0 6px; display: flex; flex-direction: column; gap: 8px; }
.sefc-check { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; cursor: pointer; }
.sefc-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--sefc-navy); }
.sefc-field-lab { font-size: 14px; color: var(--sefc-muted); margin: 4px 0 -4px; }
/* v1.2.3: the save-and-carry-on button that appears under the drawing / uploaded photo */
/* the button lives INSIDE the classic form, outside .sefc, so the chat's variables and overrides do not reach it and the
   theme's button colours did (Mitch, 17 Oct 2026: "isn't showing, wrong contrast"); literal colours, high specificity */
#sef-app.sef-chat #sef-form .sefc-roof-done, #sef-app.sef-chat #sef-form .sefc-roof-done:hover, #sef-app.sef-chat #sef-form .sefc-roof-done:focus, #sef-app.sef-chat #sef-form .sefc-roof-done:active { display: block; width: 100%; min-height: 58px; margin: 14px 0 4px; border: 0; border-radius: 14px; background: #17304A; color: #fff; font: inherit; font-size: 19px; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; padding: 12px 18px; box-shadow: 0 4px 14px rgba(23,48,74,.22); }
#sef-app.sef-chat #sef-form .sefc-roof-done[hidden] { display: none; }

/* v1.3.0 just moved in: bedrooms and people as taps (Mitch, 26 Oct 2026) */
.sefc-moved-picks[hidden] { display: none; }
.sefc-moved-picks { display: flex; flex-direction: column; gap: 10px; margin: 2px 0 4px; }
.sefc-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sefc-pills button { min-width: 48px; min-height: 46px; padding: 8px 14px; border: 2px solid #dfe4ee; border-radius: 12px; background: #fff; color: var(--sefc-navy); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; white-space: nowrap; text-transform: none; letter-spacing: normal; }
.sefc-pills button.is-on { border-color: var(--sefc-cyan); background: #eaf8fd; }
.sefc-movedin .sefc-next { flex: 0 0 auto; } /* the button's row basis (220px) became its height in this column box */
/* v2.23.0 battery only (Mitch, 31 Oct 2026): the address and photos step shows the classic battery fieldset under Charlie, like the roof step */
#sef-app.sef-chat #sef-form > .sef-fs.sefc-fs-live { display: block; border: 0; padding: 0; margin: 16px 0 0; }
#sef-app.sef-chat #sef-form > .sef-fs.sefc-fs-live > legend { display: none; }
/* v2.23.1 (Mitch, 31 Oct 2026): the roof and battery steps' buttons sit under the form, outside .sefc where --sefc-navy lives, so their
   "Next" ("I've shown you my roof, next" on the roof step) was white on white since the chat launched: literal colours, high specificity (as .sefc-roof-done) */
#sef-app.sef-chat .sefc-roof-actions .sefc-next, #sef-app.sef-chat .sefc-roof-actions .sefc-next:hover, #sef-app.sef-chat .sefc-roof-actions .sefc-next:focus, #sef-app.sef-chat .sefc-roof-actions .sefc-next:active { background: #17304A; color: #fff; border: 0; text-transform: none; letter-spacing: 0; }
#sef-app.sef-chat .sefc-roof-actions .sefc-next:hover { background: #1f4568; }
#sef-app.sef-chat .sefc-roof-actions .sefc-next:focus-visible { box-shadow: 0 0 0 4px rgba(23,48,74,.25); outline: none; }
/* v2.26.0 (7 Nov 2026): the theme gives buttons white-space:nowrap, so a long line under a choice (the backup hints) ran off a phone
   screen and the page scrolled sideways. Choice buttons wrap their words. */
#sef-app.sef-chat .sefc .sefc-choice { white-space: normal; overflow-wrap: anywhere; }
#sef-app.sef-chat .sefc .sefc-choice > span:last-child { min-width: 0; }
