/* ============================================================
   Contact page — redesign port (Split cream shell + ember scheduler)
   Namespaced under .p-contact so nothing leaks into the shell.
   Source: Frontend ReDesign / DealArena Contact design handoff.
   ============================================================ */

.p-contact { font-family: var(--sans); color: var(--ink); }
.p-contact .cx-inner { max-width: 1200px; margin: 0 auto; padding: 0 28px; width: 100%; }

@keyframes cx-pulse { 0% { box-shadow: 0 0 0 0 rgba(63,179,127,.5); } 70% { box-shadow: 0 0 0 8px rgba(63,179,127,0); } 100% { box-shadow: 0 0 0 0 rgba(63,179,127,0); } }

/* crumbs (site pattern, matches other ported pages) */
.p-contact .cx-crumbs {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.08em;
  display: flex; gap: 8px; align-items: center; margin-bottom: 18px;
}
.p-contact .cx-crumbs a { color: inherit; text-decoration: none; }
.p-contact .cx-crumbs a:hover { color: var(--green); }
.p-contact .cx-crumbs .sep { color: var(--ink-4); }
.p-contact .cx-crumbs .here { color: var(--green); }

/* hero */
.p-contact .cx-hero { padding: 72px 0 10px; background: radial-gradient(680px 320px at 10% -34%, rgba(239,89,32,.09), transparent 62%); }
.p-contact .cx-hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5.4vw, 60px); line-height: .98; letter-spacing: -.03em; color: var(--ink); margin: 0 0 16px; }
.p-contact .cx-hero h1 span { color: var(--green); }
.p-contact .cx-hsub { font-size: 16px; color: var(--ink-2); line-height: 1.62; max-width: 470px; margin: 0; }
.p-contact .cx-reply { font-family: var(--mono); font-size: 12.5px; color: #8a9089; margin-top: 18px; }
.p-contact .cx-reply b { color: #1f8a5b; font-weight: 700; }

/* who's on the other end */
@keyframes who-glow { 0%, 100% { box-shadow: 0 0 0 3px rgba(239,89,32,.25), 0 0 24px 2px rgba(239,89,32,.35), 0 18px 40px -18px rgba(13,16,14,.45); } 50% { box-shadow: 0 0 0 3px rgba(239,89,32,.45), 0 0 38px 6px rgba(239,89,32,.5), 0 18px 40px -18px rgba(13,16,14,.45); } }
.p-contact .who-wrap { display: flex; align-items: center; gap: 26px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 18px; padding: 28px 32px; box-shadow: 0 18px 40px -32px rgba(13,16,14,.4); }
.p-contact .who-pic { position: relative; flex-shrink: 0; }
.p-contact .who-av { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center 22%; border: 3px solid var(--green); animation: who-glow 3.2s ease-in-out infinite; display: block; }
.p-contact .who-badge { position: absolute; right: -4px; bottom: -4px; width: 32px; height: 32px; border-radius: 9px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 5px; box-shadow: 0 6px 16px rgba(13,16,14,.18); }
.p-contact .who-name { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); }
.p-contact .who-role { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-2); margin-top: 3px; }
.p-contact .who-joke { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin: 10px 0 0; max-width: 560px; }

/* shared primitives */
.p-contact .cx-sec { padding: 58px 0; }
.p-contact .cx-h2 { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: -.02em; color: var(--ink); margin: 0; line-height: 1.05; }
.p-contact .cx-lede { font-size: 15.5px; color: var(--ink-2); line-height: 1.62; }
.p-contact .cx-lede a { color: var(--green); text-decoration: none; font-weight: 600; }
.p-contact .cx-lede a:hover { text-decoration: underline; }
.p-contact .cx-mono { font-family: var(--mono); }
.p-contact .cx-fieldlab { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8a9089; margin-bottom: 7px; display: block; }
.p-contact .cx-fieldlab .opt { color: #a8aca4; font-weight: 500; }
.p-contact .cx-input, .p-contact .cx-textarea { width: 100%; font-family: var(--sans); font-size: 14px; color: var(--ink); background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .14s, box-shadow .14s; box-sizing: border-box; }
.p-contact .cx-input::placeholder, .p-contact .cx-textarea::placeholder { color: #a8aca4; }
.p-contact .cx-input:focus, .p-contact .cx-textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(239,89,32,.13); }
.p-contact .cx-textarea { resize: vertical; min-height: 118px; line-height: 1.55; }
.p-contact .cx-chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.p-contact .cx-chip { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--bg-1); border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; cursor: pointer; transition: all .13s; display: inline-block; }
.p-contact .cx-chip input { position: absolute; opacity: 0; pointer-events: none; }
.p-contact .cx-chip:hover { border-color: var(--green-2); color: var(--green-2); }
.p-contact .cx-chip:has(input:checked) { background: linear-gradient(180deg, var(--green), var(--green-2)); border-color: var(--green); color: #fff; box-shadow: 0 4px 14px rgba(239,89,32,.28); }
.p-contact .cx-solid { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--mono); font-size: 13.5px; font-weight: 700; color: #fff; background: linear-gradient(180deg, var(--green), var(--green-2)); border: none; border-radius: 10px; padding: 13px 22px; cursor: pointer; text-decoration: none; box-shadow: 0 0 0 1px var(--green), 0 8px 22px rgba(239,89,32,.3); transition: transform .12s; }
.p-contact .cx-solid:hover { transform: translateY(-2px); }
.p-contact .cx-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--green); background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; padding: 11px 18px; cursor: pointer; text-decoration: none; transition: all .13s; }
.p-contact .cx-ghost:hover { border-color: var(--green); }

/* channel cards */
.p-contact .cx-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.p-contact .cx-method { display: flex; flex-direction: column; gap: 12px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 15px; padding: 24px; box-shadow: 0 18px 40px -32px rgba(13,16,14,.4); transition: transform .16s, box-shadow .16s, border-color .16s; text-decoration: none; }
.p-contact .cx-method:hover { transform: translateY(-4px); box-shadow: 0 26px 52px -30px rgba(13,16,14,.42); border-color: #d3d1c8; }
.p-contact .cx-mico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: #fbeadf; color: var(--green-2); flex-shrink: 0; }
.p-contact .cx-mtitle { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); }
.p-contact .cx-mdesc { font-size: 13px; color: var(--ink-3); line-height: 1.55; flex: 1; }
.p-contact .cx-mcta { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--green); }

/* scheduler — dark ember (matches Pricing calculator) */
.p-contact .cx-demo { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.p-contact .sd-card { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid #58401f; background: radial-gradient(560px 300px at 18% -16%, rgba(239,89,32,.18), transparent 58%), linear-gradient(180deg, #1f160c, #161009); box-shadow: 0 24px 50px -22px rgba(122,62,22,.42), 0 60px 110px -50px rgba(13,16,14,.55); }
.p-contact .sd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid #3a2a17; }
.p-contact .sd-title { font-family: var(--display); font-weight: 700; font-size: 16px; color: #f3e9da; }
.p-contact .sd-tz { font-family: var(--mono); font-size: 10.5px; color: #8a7860; }
.p-contact .sd-split { display: grid; grid-template-columns: 1fr 158px; align-items: stretch; }
.p-contact .sd-form { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.p-contact .sd-days { display: flex; gap: 7px; }
.p-contact .sd-day { flex: 1; min-width: 0; text-align: center; border: 1px solid #3a2a17; border-radius: 10px; padding: 8px 3px 9px; cursor: pointer; transition: all .14s; background: rgba(42,29,16,.5); }
.p-contact .sd-day .dw { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a7860; }
.p-contact .sd-day .dn { font-family: var(--display); font-weight: 700; font-size: 15px; color: #f3e9da; margin-top: 2px; }
.p-contact .sd-day:hover { border-color: #58401f; transform: translateY(-2px); }
.p-contact .sd-day.on { border-color: var(--green); background: rgba(239,89,32,.13); box-shadow: 0 0 0 1px var(--green), 0 8px 22px -8px rgba(239,89,32,.5); }
.p-contact .sd-day.on .dn { color: #ffd23f; }
.p-contact .sd-times { display: flex; flex-wrap: wrap; gap: 7px; }
.p-contact .sd-time { font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: #c4b39b; border: 1px solid #3a2a17; border-radius: 99px; padding: 7px 12px; cursor: pointer; transition: all .14s; background: rgba(22,16,9,.5); }
.p-contact .sd-time:hover { border-color: #58401f; color: #ffd23f; transform: translateY(-1px); }
.p-contact .sd-time.on { background: linear-gradient(180deg, var(--green), var(--green-2)); border-color: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(239,89,32,.4); }
.p-contact .sd-rail { border-left: 1px solid #3a2a17; background: rgba(22,16,9,.45); display: flex; flex-direction: column; min-width: 0; }
.p-contact .sd-rail-hd { padding: 11px 14px 10px; border-bottom: 1px solid #3a2a17; }
.p-contact .sd-rail-hd .rdw { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ffae3c; }
.p-contact .sd-rail-hd .rdn { font-family: var(--display); font-weight: 700; font-size: 24px; color: #f3e9da; line-height: 1.1; }
.p-contact .sd-tl { position: relative; flex: 1; margin: 12px 12px 14px 10px; min-height: 238px; }
.p-contact .sd-hr { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(138,120,96,.3); }
.p-contact .sd-hr span { position: absolute; top: -6px; left: 0; font-family: var(--mono); font-size: 8.5px; color: #8a7860; background: transparent; line-height: 1; }
.p-contact .sd-evt { position: absolute; left: 26px; right: 0; height: 36px; border-radius: 8px; background: linear-gradient(180deg, var(--green), var(--green-2)); box-shadow: 0 8px 20px rgba(239,89,32,.45); padding: 5px 9px; color: #fff; font-family: var(--mono); font-size: 9px; font-weight: 700; line-height: 1.45; transition: top .28s cubic-bezier(.2,.8,.3,1); overflow: hidden; white-space: nowrap; }
.p-contact .sd-evt .t { opacity: .8; font-weight: 500; }
.p-contact .sd-tl-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--mono); font-size: 9.5px; color: #8a7860; line-height: 1.7; padding: 0 8px; }
.p-contact .sd-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid #3a2a17; background: rgba(22,16,9,.55); min-height: 66px; }
.p-contact .sd-sum { font-family: var(--mono); font-size: 11.5px; color: #ffae3c; }
.p-contact .sd-in { width: 100%; font-family: var(--sans); font-size: 14px; color: #f3e9da; background: rgba(22,16,9,.6); border: 1px solid #3a2a17; border-radius: 10px; padding: 12px 14px; transition: border-color .14s, box-shadow .14s; box-sizing: border-box; }
.p-contact .sd-in::placeholder { color: #8a7860; }
.p-contact .sd-in:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(239,89,32,.18); }
.p-contact .sd-lab { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8a7860; margin-bottom: 7px; display: block; }
.p-contact .sd-confirm:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 0 0 0 1px #58401f; }
.p-contact .sd-bookedwrap { padding: 24px 22px; }
.p-contact .sd-bookedcard { display: flex; align-items: flex-start; gap: 16px; background: rgba(63,179,127,.09); border: 1px solid rgba(63,179,127,.35); border-radius: 14px; padding: 20px; }
.p-contact .sd-bookedcard .hd { font-family: var(--display); font-weight: 700; font-size: 18px; color: #f3e9da; }
.p-contact .sd-bookedcard p { font-size: 13.5px; color: #c4b39b; line-height: 1.6; margin: 7px 0 13px; }
.p-contact .sd-bookedcard p b { color: #ffd23f; font-weight: 600; }

/* SLA + form */
.p-contact .cx-fs { display: grid; grid-template-columns: 1.08fr .92fr; gap: 38px; align-items: start; }
.p-contact .cx-sla { background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.p-contact .cx-slarow { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 18px; border-bottom: 1px solid #f0efe9; }
.p-contact .cx-slarow:last-child { border-bottom: none; }
.p-contact .cx-slach { font-size: 13.5px; color: var(--ink-2); }
.p-contact .cx-slat { font-family: var(--mono); font-size: 12px; font-weight: 700; color: #1f8a5b; white-space: nowrap; }
.p-contact .cx-slalab { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); margin: 0 0 12px; }
.p-contact .cx-sent { display: flex; align-items: flex-start; gap: 16px; background: rgba(31,138,91,.07); border: 1px solid rgba(31,138,91,.3); border-radius: 14px; padding: 24px; }
.p-contact .cx-sentic { width: 44px; height: 44px; border-radius: 12px; background: #1f8a5b; color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.p-contact .cx-formerr { margin-top: 4px; padding: 10px 14px; border-radius: 8px; background: rgba(196,71,26,.08); border: 1px solid rgba(196,71,26,.4); font-family: var(--mono); font-size: 12px; color: var(--green-2); display: none; }
.p-contact .cx-formerr.visible { display: block; }

/* final cta */
.p-contact .cx-final { text-align: center; border-radius: 20px; padding: 52px 28px; border: 1px solid var(--line); background: var(--bg-1); box-shadow: 0 24px 56px -36px rgba(13,16,14,.4); }
.p-contact .cx-final h2 { font-family: var(--display); font-weight: 700; font-size: 38px; letter-spacing: -.025em; color: var(--ink); margin: 0 0 10px; text-wrap: balance; }
.p-contact .cx-final p { font-size: 16px; color: var(--ink-2); max-width: 520px; margin: 0 auto 26px; line-height: 1.6; }

@media (max-width: 900px) {
  .p-contact .cx-methods { grid-template-columns: 1fr; }
  .p-contact .cx-demo { grid-template-columns: 1fr; }
  .p-contact .cx-fs { grid-template-columns: 1fr; }
}

/* ── live-chat dock (design cd-* block, verbatim) ─────────────────── */
@keyframes cd-bounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
@keyframes cd-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes cd-attn { 0%,100% { box-shadow: 0 14px 34px -14px rgba(13,16,14,.45), 0 0 0 0 rgba(239,89,32,.5); } 55% { box-shadow: 0 14px 34px -14px rgba(13,16,14,.45), 0 0 0 10px rgba(239,89,32,0); } }
.cd-dock { position: fixed; right: 24px; bottom: 22px; z-index: 400; display: flex; flex-direction: column; align-items: flex-end; }
/* The dock's JS opens and closes by toggling .hidden. Every piece it toggles
   carries an author `display` below, which outranks the UA sheet's
   [hidden] { display: none } — so hiding the panel did nothing and the open
   chat, the chip and the teaser all stacked in the corner at once. Re-assert
   it for the dock's own subtree. */
.cd-dock [hidden] { display: none !important; }
.cd-panel { animation: cd-in .45s cubic-bezier(.2,.9,.3,1.15) both; width: 344px; background: #fff; border: 1px solid #e0dfd8; border-radius: 16px; box-shadow: 0 34px 80px -30px rgba(13,16,14,.5); overflow: hidden; display: flex; flex-direction: column; }
.cd-head { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-bottom: 1px solid #eeede7; }
.cd-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: center 22%; }
.cd-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; color: #0d100e; line-height: 1.1; }
.cd-status { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #1f8a5b; display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.cd-status.off { color: #8a9089; }
.cd-x { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; border: none; background: none; display: grid; place-items: center; color: #8a9089; cursor: pointer; }
.cd-x:hover { background: #f5f4ef; color: #0d100e; }
.cd-body { height: 282px; overflow-y: auto; display: flex; flex-direction: column; align-items: stretch; padding: 15px; background: #faf9f6; }
.cd-m { max-width: 80%; padding: 10px 13px; border-radius: 13px; font-size: 13.5px; line-height: 1.5; margin-top: 9px; }
.cd-m.tyler { align-self: flex-start; background: #fff; border: 1px solid #e8e6de; color: #0d100e; border-bottom-left-radius: 4px; }
.cd-m.me { align-self: flex-end; background: linear-gradient(180deg,#ef5920,#d94e1c); color: #fff; border-bottom-right-radius: 4px; box-shadow: 0 4px 12px rgba(239,89,32,.22); }
.cd-tag { align-self: flex-start; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: #8a9089; margin: 4px 0 0 4px; }
.cd-typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 14px; background: #fff; border: 1px solid #e8e6de; border-radius: 13px; border-bottom-left-radius: 4px; margin-top: 9px; }
.cd-typing span { width: 6px; height: 6px; border-radius: 50%; background: #c9c6bd; animation: cd-bounce 1.2s infinite; }
.cd-typing span:nth-child(2) { animation-delay: .15s; }
.cd-typing span:nth-child(3) { animation-delay: .3s; }
.cd-prompts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.cd-prompt { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; color: #c4471a; background: #fff; border: 1px solid #f0cdbb; border-radius: 99px; padding: 6px 11px; cursor: pointer; transition: all .13s; }
.cd-prompt:hover { background: #fbeadf; }
.cd-compose { display: flex; gap: 9px; padding: 12px 12px 8px; border-top: 1px solid #eeede7; background: #fff; }
.cd-in { flex: 1; border: 1px solid #e0dfd8; border-radius: 10px; padding: 10px 12px; font-family: 'Inter', sans-serif; font-size: 13px; color: #0d100e; min-width: 0; }
.cd-in:focus { outline: none; border-color: #ef5920; box-shadow: 0 0 0 3px rgba(239,89,32,.13); }
.cd-send { width: 40px; height: 40px; flex-shrink: 0; border: none; border-radius: 10px; background: linear-gradient(180deg,#ef5920,#c4471a); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px rgba(239,89,32,.3); transition: transform .12s; }
.cd-send:hover { transform: translateY(-1px); }
.cd-foot { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: #a8aca4; text-align: center; padding: 0 12px 10px; background: #fff; }
.cd-chipbtn { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e0dfd8; border-radius: 99px; padding: 6px 16px 6px 6px; box-shadow: 0 14px 34px -14px rgba(13,16,14,.45); cursor: pointer; transition: transform .13s; }
.cd-chipbtn:hover { transform: translateY(-2px); }
.cd-chipbtn.attn { animation: cd-attn 1.9s infinite; border-color: #f0cdbb; }
.cd-teaser { font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 600; color: #0d100e; background: #fff; border: 1px solid #e0dfd8; border-radius: 12px 12px 4px 12px; padding: 9px 13px; margin-bottom: 9px; box-shadow: 0 14px 34px -14px rgba(13,16,14,.4); cursor: pointer; animation: cd-in .4s cubic-bezier(.2,.9,.3,1.15) both; }
.cd-teaser:hover { border-color: #f0cdbb; }
.cx-chipav { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: center 22%; }
.cx-chipdot { width: 8px; height: 8px; border-radius: 50%; background: #3fb37f; animation: cx-pulse 2.2s infinite; }
