/* P&C Inquiry Experience: the "Book a consultation" pop-up (includes/consultation.php).
 * Loaded only where the pop-up is on. Everything is scoped to #pcx-cp-root or .pcx-cp-pill, and the
 * Gravity Forms rules carry !important where the theme forces its own (found on the valuation launch).
 * Design: Operations/Client-Experience/mockups/consultation-panel.html.
 */

.pcx-cp-root, .pcx-cp-pill {
	--cp-midnight: #1B1E2A; --cp-midnight-alt: #262A39; --cp-turq: #55C3BB; --cp-turq-dark: #3FA79F;
	--cp-stone: #4D6370; --cp-pale: #B7DFE1; --cp-grey: #748293; --cp-off: #F5F6F7; --cp-line: #E2E5E9; --cp-err: #B14A40;
	--cp-display: "Anton", Impact, sans-serif; --cp-body: "Montserrat", system-ui, sans-serif;
}
html.pcx-cp-open, html.pcx-cp-open body { overflow: hidden !important; }

/* ---------- frame ---------- */
.pcx-cp-root { position: fixed; inset: 0; z-index: 100000; visibility: hidden; transition: visibility 0s .34s; font-family: var(--cp-body); color: var(--cp-midnight); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-align: left; }
.pcx-cp-root *, .pcx-cp-root *::before, .pcx-cp-root *::after { box-sizing: border-box; }
html.pcx-cp-open .pcx-cp-root { visibility: visible; transition: none; }
.pcx-cp-scrim { position: absolute; inset: 0; background: rgba(27,30,42,.6); opacity: 0; transition: opacity .25s; }
html.pcx-cp-open .pcx-cp-scrim { opacity: 1; }
.pcx-cp { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: #fff; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; transform: translateX(103%); transition: transform .34s cubic-bezier(.2,.8,.2,1); box-shadow: -20px 0 60px rgba(0,0,0,.35); }
html.pcx-cp-open .pcx-cp { transform: none; }
.pcx-cp :where(h2, h3, p, ol, li) { margin: 0; padding: 0; }
.pcx-cp :where(ol) { list-style: none; }
.pcx-cp img { display: block; max-width: none; }
.pcx-cp a { text-decoration: none; }

/* ---------- top ---------- */
.pcx-cp-top { position: relative; background: var(--cp-midnight); color: #fff; padding: 32px 36px 24px; }
.pcx-cp-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; line-height: 0; cursor: pointer; padding: 0; display: grid; place-items: center; }
/* A drawn X, not the × character: a text glyph sits above the middle of its line, so it never looks centred in the circle. */
.pcx-cp-x svg { display: block; width: 16px; height: 16px; }
.pcx-cp-x:hover { border-color: var(--cp-turq); color: var(--cp-turq); }
.pcx-cp-eyebrow { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--cp-turq); padding-right: 44px; }
.pcx-cp .pcx-cp-title { font: 400 46px/1.02 var(--cp-display); text-transform: uppercase; letter-spacing: .02em; color: #fff; margin: 8px 0 10px; padding-right: 40px; }
.pcx-cp-lead { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.85); }
.pcx-cp-alt { margin-top: 12px !important; font-size: 13.5px; color: rgba(255,255,255,.75); }
.pcx-cp-alt a { color: var(--cp-pale) !important; font-weight: 700; border-bottom: 1px solid rgba(183,223,225,.5); }
.pcx-cp-who { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.pcx-cp-faces { display: flex; flex: none; }
.pcx-cp-faces img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: center 15%; border: 2px solid var(--cp-midnight); margin-left: -11px; background: var(--cp-midnight-alt); }
.pcx-cp-faces img:first-child { margin-left: 0; border-color: var(--cp-turq); }
.pcx-cp-who p { font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,.8); }
.pcx-cp-who b { color: #fff; }
.pcx-cp-stars { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--cp-turq); font-weight: 700; font-size: 12px; }
.pcx-cp-starrow { display: inline-flex; gap: 1px; }
.pcx-cp-starrow svg { width: 12px; height: 12px; fill: var(--cp-turq); }

/* ---------- body and the form ---------- */
.pcx-cp-body { padding: 26px 36px 8px; }
#pcx-cp .gform_wrapper { margin: 0 !important; padding: 0 !important; background: none !important; }
#pcx-cp .gform_heading, #pcx-cp .gform_required_legend { display: none !important; }
#pcx-cp .gform_fields { row-gap: 20px !important; column-gap: 12px !important; grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
#pcx-cp .gfield { margin: 0 !important; padding: 0 !important; }
#pcx-cp .gfield_label, #pcx-cp legend.gfield_label { position: static !important; top: auto !important; left: auto !important; transform: none !important; display: block; float: none; width: 100%; font: 700 14px/1.4 var(--cp-body) !important; color: var(--cp-midnight) !important; text-transform: none !important; letter-spacing: 0 !important; margin: 0 0 8px !important; padding: 0 !important; transition: none !important; background: none !important; }
#pcx-cp .gfield_required { color: var(--cp-turq-dark) !important; }
#pcx-cp .gfield--type-consent .gfield_label { display: none !important; }
#pcx-cp .gfield_description { font-size: 12.5px !important; font-style: normal !important; color: var(--cp-grey) !important; line-height: 1.5; padding: 6px 0 0 !important; }
#pcx-cp input[type=text], #pcx-cp input[type=email], #pcx-cp input[type=tel], #pcx-cp textarea {
	width: 100% !important; height: auto !important; min-height: 48px; padding: 12px 14px !important; border: 1px solid #CDD3DA !important; border-radius: 6px !important;
	background: #fff !important; font: 500 16px/1.4 var(--cp-body) !important; color: var(--cp-midnight) !important; box-shadow: none !important; transition: border-color .15s, box-shadow .15s; }
#pcx-cp textarea { min-height: 84px !important; max-height: 200px; resize: vertical; }
#pcx-cp input:focus, #pcx-cp textarea:focus { outline: none !important; border-color: var(--cp-turq) !important; box-shadow: 0 0 0 3px rgba(85,195,187,.22) !important; }
#pcx-cp input::placeholder, #pcx-cp textarea::placeholder { color: #9AA5B1 !important; opacity: 1; }

/* Optional fields say so (everything without a required marker) */
#pcx-cp .pcx-cp-tiles:not(.gfield_contains_required) .gfield_label::after, #pcx-cp .pcx-cp-chips:not(.pcx-cp-how) .gfield_label::after, #pcx-cp .pcx-cp-msg .gfield_label::after { content: "Optional"; font-weight: 500; color: var(--cp-grey); font-size: 12px; margin-left: 6px; }

/* Radio choices as tap-to-select tiles (topic) and chips (how, when) */
#pcx-cp .pcx-cp-tiles .gfield_radio { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 8px; }
#pcx-cp .pcx-cp-chips .gfield_radio { display: flex !important; flex-wrap: wrap; gap: 8px; }
#pcx-cp .gchoice { position: relative; margin: 0 !important; padding: 0 !important; display: block !important; }
#pcx-cp .gchoice input { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; margin: 0 !important; }
#pcx-cp .pcx-cp-chips .gchoice label { display: inline-flex !important; align-items: center; gap: 7px; max-width: none !important; margin: 0 !important; font: 500 13.5px/1.3 var(--cp-body) !important; color: var(--cp-midnight) !important; background: var(--cp-off) !important; border: 1px solid var(--cp-line) !important; border-radius: 30px !important; padding: 9px 15px !important; cursor: pointer; transition: all .15s; }
#pcx-cp .pcx-cp-tiles .gchoice label { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 7px; height: 100%; min-height: 72px; max-width: none !important; margin: 0 !important; text-align: center; font: 600 12.5px/1.25 var(--cp-body) !important; color: var(--cp-midnight) !important; background: var(--cp-off) !important; border: 1px solid var(--cp-line) !important; border-radius: 6px !important; padding: 12px 6px 10px !important; cursor: pointer; transition: all .15s; }
#pcx-cp .gchoice label::before { content: ""; flex: none; background-color: currentColor; -webkit-mask: var(--cp-ic) center / contain no-repeat; mask: var(--cp-ic) center / contain no-repeat; }
#pcx-cp .pcx-cp-tiles .gchoice label::before { width: 22px; height: 22px; }
#pcx-cp .pcx-cp-how .gchoice label::before { width: 16px; height: 16px; }
#pcx-cp .pcx-cp-chips:not(.pcx-cp-how) .gchoice label::before { display: none; }
#pcx-cp .gchoice label:hover { border-color: var(--cp-turq) !important; }
#pcx-cp .gchoice input:checked + label { background: var(--cp-midnight) !important; border-color: var(--cp-midnight) !important; color: #fff !important; }
#pcx-cp .pcx-cp-tiles .gchoice input:checked + label::before { background-color: var(--cp-turq); }
#pcx-cp .gchoice input:focus-visible + label { outline: 2px solid var(--cp-turq); outline-offset: 2px; }
#pcx-cp .pcx-cp-howhelp { display: block; font-size: 12.5px; color: var(--cp-grey); line-height: 1.5; margin-top: 8px; min-height: 0; }
#pcx-cp .pcx-cp-howhelp:empty { display: none; }

/* Icons (choice order is fixed by forms/build_consultation.py) */
#pcx-cp .pcx-cp-tiles .gchoice:nth-child(1) { --cp-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5'/%3E%3C/svg%3E"); }
#pcx-cp .pcx-cp-tiles .gchoice:nth-child(2) { --cp-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E"); }
#pcx-cp .pcx-cp-tiles .gchoice:nth-child(3) { --cp-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h13l-3-3M20 16H7l3 3'/%3E%3C/svg%3E"); }
#pcx-cp .pcx-cp-tiles .gchoice:nth-child(4) { --cp-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 20h20'/%3E%3Cpath d='M4 20l5-8 4 5 3-3 4 6'/%3E%3Ccircle cx='17' cy='6' r='2'/%3E%3C/svg%3E"); }
#pcx-cp .pcx-cp-tiles .gchoice:nth-child(5) { --cp-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.7.3-1 .8-1 1.5V14'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E"); }
#pcx-cp .pcx-cp-how .gchoice:nth-child(1) { --cp-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
#pcx-cp .pcx-cp-how .gchoice:nth-child(2) { --cp-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='13' height='12' rx='2'/%3E%3Cpath d='M16 10l5-3v10l-5-3'/%3E%3C/svg%3E"); }
#pcx-cp .pcx-cp-how .gchoice:nth-child(3) { --cp-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
#pcx-cp .pcx-cp-how .gchoice:nth-child(4) { --cp-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }

/* Consent */
#pcx-cp .ginput_container_consent { display: grid !important; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
#pcx-cp .ginput_container_consent input { position: static !important; opacity: 1 !important; width: 18px !important; height: 18px !important; margin: 2px 0 0 !important; accent-color: var(--cp-turq-dark); }
#pcx-cp .gfield_consent_label, #pcx-cp .gfield--type-consent .gform-field-label { font: 400 12px/1.5 var(--cp-body) !important; color: var(--cp-stone) !important; text-transform: none !important; letter-spacing: 0 !important; }
#pcx-cp .gfield_consent_label a { color: var(--cp-turq-dark) !important; }

/* Errors */
#pcx-cp .gform_validation_errors { display: none !important; } /* each field says what's wrong, right where it is */
#pcx-cp .gfield_error { background: none !important; border: 0 !important; outline: 0 !important; }
#pcx-cp .gfield_error input[type=text], #pcx-cp .gfield_error input[type=email], #pcx-cp .gfield_error input[type=tel] { border-color: #C2564B !important; }
#pcx-cp .gfield_validation_message, #pcx-cp .validation_message { display: block !important; background: none !important; border: 0 !important; padding: 6px 0 0 !important; margin: 0 !important; font: 600 12.5px/1.4 var(--cp-body) !important; color: var(--cp-err) !important; }
#pcx-cp .gfield_error.pcx-cp-chips .gfield_radio, #pcx-cp .gfield_error.pcx-cp-tiles .gfield_radio { outline: 1px dashed #C2564B; outline-offset: 5px; border-radius: 4px; }
#pcx-cp .gfield_error.pcx-cp-chips .validation_message, #pcx-cp .gfield_error.pcx-cp-tiles .validation_message { margin-top: 10px !important; }

/* Submit, with the reply-time line under it */
#pcx-cp .gform_footer { display: block !important; background: #fff; padding: 14px 0 18px !important; margin: 8px 0 0 !important; border: 0 !important; }
#pcx-cp .gform_button { display: block !important; width: 100% !important; margin: 0 !important; background: var(--cp-turq) !important; color: var(--cp-midnight) !important; border: 0 !important; border-radius: 6px !important; font: 600 15px/1 var(--cp-body) !important; text-transform: none !important; letter-spacing: 0 !important; padding: 17px 24px !important; cursor: pointer; transition: transform .15s, background .15s; box-shadow: none !important; }
#pcx-cp .gform_button:hover { background: #6BCFC8 !important; transform: translateY(-1px); }
#pcx-cp .gform_ajax_spinner { display: none; }
.pcx-cp-reply { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 12.5px; color: var(--cp-stone); line-height: 1.5; margin-top: 10px !important; }
.pcx-cp-reply::before { content: ""; width: 18px; height: 18px; margin-top: 1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FA79F' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }
.pcx-cp-reply:empty { display: none; }

/* ---------- what happens next, footer ---------- */
.pcx-cp-next { margin: 6px 36px 0; background: var(--cp-off); border: 1px solid var(--cp-line); border-radius: 10px; padding: 20px 22px; }
.pcx-cp .pcx-cp-next h3 { font: 700 11px/1.4 var(--cp-body); letter-spacing: .16em; text-transform: uppercase; color: var(--cp-grey); margin-bottom: 12px; }
.pcx-cp-next ol { counter-reset: cpn; display: grid; gap: 12px; }
.pcx-cp-next li { counter-increment: cpn; display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--cp-stone); }
.pcx-cp-next li::before { content: counter(cpn); width: 26px; height: 26px; border-radius: 50%; background: var(--cp-pale); color: var(--cp-midnight); display: grid; place-items: center; font: 400 14px/1 var(--cp-display); }
.pcx-cp-next b { color: var(--cp-midnight); }
.pcx-cp-foot { padding: 20px 36px 30px; font-size: 13px; color: var(--cp-stone); }
.pcx-cp-foot a { font-weight: 700; color: var(--cp-midnight) !important; white-space: nowrap; }
.pcx-cp-admin { margin: 0 36px 30px !important; padding: 10px 12px; border-radius: 6px; background: #FFF6E0; border: 1px solid #F0D58A; font-size: 12px; line-height: 1.5; color: #6B5310; }
.pcx-cp-unavailable { font-size: 14px; color: var(--cp-stone); }
.pcx-cp-unavailable a { color: var(--cp-turq-dark) !important; font-weight: 700; }

/* ---------- the labelled phone button (shown by pcx-cp.js when the header button is hidden) ---------- */
.pcx-cp-pill { position: fixed; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 9990; display: none; align-items: center; gap: 9px; background: var(--cp-turq); color: var(--cp-midnight); font: 700 14px/1 var(--cp-body); padding: 13px 18px; border-radius: 40px; border: 0; box-shadow: 0 8px 24px rgba(0,0,0,.35); cursor: pointer; }
.pcx-cp-pill.is-on { display: inline-flex; }
.pcx-cp-pill svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html.pcx-cp-open .pcx-cp-pill { display: none; }
/* The theme's unlabelled speech-bubble button (bottom left on phones) is retired while this pop-up is on:
   the labelled pill replaces it (Craig, 2026-12-02). This file only loads when the pop-up is on, so turning
   the pop-up off brings the bubble back. Hidden, not removed, so the theme's own scripts still find it. */
.mobile-cta-link { display: none !important; }

/* ---------- phones ---------- */
@media (max-width: 640px) {
	.pcx-cp { width: 100%; box-shadow: none; }
	.pcx-cp-top { padding: 22px 18px 18px; }
	.pcx-cp-x { top: 10px; right: 10px; }
	.pcx-cp .pcx-cp-title { font-size: 34px; margin: 6px 0 8px; }
	.pcx-cp-lead { font-size: 14px; }
	.pcx-cp-who { margin-top: 14px; padding-top: 12px; gap: 10px; }
	.pcx-cp-faces img { width: 30px; height: 30px; margin-left: -9px; }
	.pcx-cp-who p { font-size: 11.5px; }
	.pcx-cp-body { padding: 20px 18px 0; }
	#pcx-cp .pcx-cp-tiles .gfield_radio { grid-template-columns: repeat(3, 1fr); }
	#pcx-cp .gfield--width-half { grid-column: span 12 !important; }
	#pcx-cp .gform_footer { position: sticky; bottom: 0; z-index: 3; margin: 8px -18px 0 !important; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)) !important; box-shadow: 0 -8px 20px rgba(27,30,42,.08); }
	.pcx-cp-next { margin: 16px 18px 0; }
	.pcx-cp-foot { padding: 18px 18px 30px; }
	.pcx-cp-admin { margin: 0 18px 30px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.pcx-cp, .pcx-cp-scrim, .pcx-cp-root { transition: none !important; }
}
