/* JPG Insurance 2026 theme: WordPress additions on top of Concept D's site.css (lead builder; read-only for builders).
   Loads after site.css and pages-base.css, before the builders' d-*.css files. */

/* ---------- WordPress basics ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
main:focus { outline: none; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 14px; color: var(--muted); }

/* Reviewer notes in page text, [TIM: …] and [VERIFY …] (same handling as the old theme) */
.jpg-review-note { background: #fff3b0; color: #5a4300; padding: 1px 4px; border-radius: 3px; font-weight: 600; }
/* An agent story still waiting for Tim's answers is only shown to logged-in editors (old theme behaviour) */
.svc-from-agents[data-pending="true"] { display: none; }
body.logged-in .svc-from-agents[data-pending="true"] { display: block; outline: 2px dashed #b26b00; outline-offset: 4px; }

/* ---------- Default content (page.php and stub templates) ---------- */
.prose { max-width: 760px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--r-lg); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose blockquote { margin: 0 0 1em; padding: 12px 20px; border-left: 4px solid var(--blue-100); background: var(--tint); border-radius: 0 var(--r) var(--r) 0; }

/* ---------- Header/dialog buttons (inline styles in the concept) ---------- */
.qd-close, .sd-close { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; }
.qd-close:hover, .sd-close:hover { background: var(--tint); }
.dd-agent p a { color: inherit; text-decoration: none; }
.dd-agent p a:hover { text-decoration: underline; }

/* Quote dialog on the real site: the footer note is plain, not a yellow demo badge */
.qd-foot .demo-note { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 500; }
.qd-consent { margin-top: 4px; }
.qd-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--muted); }
.qd-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); }
.qd-check a { color: var(--blue-700); }
[data-q="submit"][disabled] { opacity: .6; cursor: progress; }

/* ---------- Footer legal row ---------- */
.foot-legal { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.foot-cookie { border: 0; background: none; padding: 0; color: var(--blue); font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot-cookie[hidden] { display: none; }

/* ---------- Sarah: the real web agent in D's chat look ---------- */
.web-agent-panel .chat-head > div:nth-child(2) { min-width: 0; }
.web-agent-header-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.web-agent-header-tools .icon-btn { margin-left: 0; }
.web-agent-voice { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: none; color: #fff; font: 600 12px/1 var(--f-body); }
.web-agent-voice[hidden] { display: none; }
.web-agent-voice[aria-pressed="true"] { background: #fff; color: var(--blue-700); border-color: #fff; }
.web-agent-voice i { width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--vol) center/contain no-repeat; mask: var(--vol) center/contain no-repeat;
  --vol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H3v6h3l5 4z'/%3E%3Cpath d='m22 9-6 6M16 9l6 6'/%3E%3C/svg%3E"); }
.web-agent-voice i.fa-volume-up { --vol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H3v6h3l5 4z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M18.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E"); }
@media (max-width: 420px) { .web-agent-voice span { display: none; } }
.web-agent-message { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.web-agent-message-bot, .web-agent-message-agent, .web-agent-message-system { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.web-agent-message-visitor, .web-agent-message-user { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.web-agent-message-visitor a { color: #fff; }
.bot-sender-tag, .agent-sender-tag { display: block; font: 700 12px/1.3 var(--f-head); color: var(--blue-700); margin-bottom: 2px; }
.agent-sender-tag .fa { display: none; }
.web-agent-link { word-break: break-all; }
.web-agent-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; background: #fff; border-top: 1px solid var(--line); }
.web-agent-actions[hidden] { display: none; }
.web-agent-actions button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--blue-100); background: var(--blue-50); color: var(--blue-700); font-weight: 600; font-size: 13.5px; }
.web-agent-actions button:hover { border-color: var(--blue); }
.web-agent-callback { display: grid; gap: 6px; padding: 12px 14px; background: #fff; border-top: 1px solid var(--line); max-height: 60%; overflow-y: auto; } /* 60%: room for the reCAPTCHA notice (2026-11-29) */
.web-agent-callback[hidden] { display: none; }
.web-agent-callback label { font-weight: 600; font-size: 14px; }
.web-agent-callback input, .web-agent-callback select { min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); font-size: 16px; background: #fff; }
.web-agent-callback input:focus, .web-agent-callback select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-100); }
.web-agent-callback .btn { margin-top: 6px; justify-self: start; }
.web-agent-callback .recaptcha-note { margin: 0; }
.web-agent-status { margin: 0; font-size: 14px; color: var(--muted); }
.web-agent-status:empty { display: none; }
.web-agent-mic[hidden] { display: none !important; }
.chat-form .web-agent-mic { background: var(--tint); color: var(--ink); }
.chat-form .web-agent-mic.is-listening { background: var(--err); color: #fff; }

/* ---------- Old modals still used by the real forms (refer a friend, message a staff member) ---------- */
.quote-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.quote-modal-overlay { position: absolute; inset: 0; background: rgba(15, 30, 51, .55); }
.quote-modal-content { position: relative; width: min(620px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: #fff; border-radius: 20px; box-shadow: var(--sh-3); padding: 28px; }
.quote-modal-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; font-size: 28px; line-height: 1; color: var(--ink); }
.quote-modal-close:hover { background: var(--tint); }
.quote-modal-header h2 { font-size: 26px; padding-right: 40px; }
.quote-modal-header p { color: var(--muted); }
.quote-form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote-form-field { display: grid; gap: 6px; }
.quote-form-field label { font-weight: 600; font-size: 15px; }
.quote-form-field input, .quote-form-field textarea, .quote-form-field select { min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); font-size: 16px; background: #fff; }
.quote-form-field input:focus, .quote-form-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-100); }
.quote-form-field-full, .refer-friend-field-full { grid-column: 1 / -1; }
.staff-message-actions { margin-top: 16px; }
.staff-message-actions .quote-submit-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--action); color: var(--on-action); font: 700 16px/1 var(--f-head); }
.staff-message-actions .quote-submit-btn:hover { background: var(--action-700); }
.staff-message-status, .refer-friend-status { margin: 12px 0 0; font-weight: 600; color: var(--ink-2); }
.staff-message-status:empty, .refer-friend-status:empty { display: none; }
@media (max-width: 600px) { .quote-form-fields { grid-template-columns: 1fr; } .quote-modal-content { padding: 22px 18px; } }

/* ---------- jpg-forms plugin forms ([jpg_contact_form], [jpg_quote_form], [jpg_quick_quote]) ---------- */
.jpg-form { display: grid; gap: 14px; max-width: 640px; }
.jpg-form .form-row { display: grid; gap: 6px; }
.jpg-form label { font-weight: 600; font-size: 15px; }
.jpg-form input:not([type="checkbox"]):not([type="radio"]), .jpg-form select, .jpg-form textarea { min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); font-size: 16px; background: #fff; width: 100%; }
.jpg-form input:focus, .jpg-form select:focus, .jpg-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-100); }
.jpg-form .honeypot { position: absolute !important; left: -10000px !important; }
.jpg-form button[type="submit"] { justify-self: start; display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--action); color: var(--on-action); font: 700 16px/1 var(--f-head); }
.jpg-form button[type="submit"]:hover { background: var(--action-700); }
.form-privacy-note { font-size: 14px; color: var(--muted); margin: 0; }
.form-message { padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px; font-weight: 600; }
.form-message.success { background: var(--ok-50); color: var(--ok); }
.form-message.error { background: var(--err-50); color: var(--err); }

/* ---------- Cookie banner: above the phone bottom bar ---------- */
@media (max-width: 1023px) { .cookie-banner { bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* ---------- Old-theme templates not rebuilt yet (builders replace them): keep them readable ---------- */
.container { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.page-hero, .svc-hero { background: var(--band); border-bottom: 1px solid var(--band-line); padding: 40px 0 32px; }
.content-wrapper { padding: 40px 0 64px; }
.area-card-else { background: transparent; border-style: dashed; justify-content: center; }
.area-card-else strong { display: block; }

/* Kendall 2026-11-14: only the big headlines (page H1 and section H2) are Title Case. H2s that are card, box, panel
   or dialog titles stay in sentence case. Builders: an H2 inside a card/box gets class "h-sentence" (or use an H3). */
.finder h2, .qd h2, .chat-head h2, .placeholder-box h2, .success h2, .quote-modal-header h2,
.facts-box h2, .guide-box h2, .cookie-banner h2, .tool-card h2, .h-sentence { text-transform: none; }
/* Footer column titles keep Concept D's small uppercase labels ("GET IT DONE"), not sentence case. */
.site-footer h2 { text-transform: uppercase; }

/* Quote dialog step 1: title above the description on desktop too (concept only stacked it on phones) */
.big-card .txt { display: flex; flex-direction: column; gap: 4px; }
.web-agent-voice span { white-space: nowrap; }
