/* Conversation modal (talk.js): the page's single form, centred and nearly full screen. The headline sits
   left, the form sits in a soft card right, and submissions go to Formspree. */
.talk-scrim { position: fixed; inset: 0; z-index: 40; background: rgb(14 23 39 / .5); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.talk { position: fixed; inset: clamp(10px, 2.4vw, 32px); z-index: 41; margin: auto; max-width: 1320px; max-height: 920px; display: flex; flex-direction: column; border-radius: 28px; background: var(--adaptum-bone); box-shadow: 0 40px 90px -40px rgb(14 23 39 / .6); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.985); transition: opacity .3s ease, transform .4s cubic-bezier(.2, .8, .2, 1), visibility 0s .4s; }
.talk-open .talk-scrim { opacity: 1; pointer-events: auto; }
.talk-open .talk { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .4s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.talk-top { display: flex; justify-content: space-between; align-items: center; padding: clamp(18px, 2.4vw, 28px) clamp(20px, 4vw, 56px) 0; }
.talk-x { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgb(24 37 59 / .06); color: var(--adaptum-ink); cursor: pointer; transition: background .2s; }
.talk-x:hover { background: rgb(24 37 59 / .12); }
.talk-x:focus-visible { outline: 2px solid var(--adaptum-viridian); outline-offset: 2px; }
.talk-x svg { width: 16px; height: 16px; }
.talk-body { flex: 1; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(24px, 3vw, 40px) clamp(20px, 4vw, 56px) clamp(28px, 4vw, 56px); }
.talk-head h2 { font-size: clamp(36px, 4.6vw, 64px); margin: 0 0 22px; }
.talk-head p { margin: 0; max-width: 26em; color: var(--adaptum-ink-muted); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; }

.talk-card { background: #FBF8F1; border-radius: 26px; padding: clamp(22px, 3vw, 40px); box-shadow: inset 0 0 0 1px rgb(24 37 59 / .05); }
.talk-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; margin-bottom: 26px; border-radius: 999px; background: var(--adaptum-bone-deep); }
.talk-seg::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: #fff; box-shadow: 0 2px 8px -3px rgb(24 37 59 / .2); transition: translate .35s cubic-bezier(.2, .8, .2, 1); }
.talk-seg:has(#aud-clients:checked)::before { translate: 100% 0; }
.talk-seg input { position: absolute; opacity: 0; pointer-events: none; }
.talk-seg label { position: relative; z-index: 1; height: 44px; display: grid; place-items: center; border-radius: 999px; font: 500 15px/1 var(--adaptum-font-text); color: var(--adaptum-ink-muted); cursor: pointer; transition: color .25s; }
.talk-seg input:checked + label { color: var(--adaptum-ink); }
.talk-seg input:focus-visible + label { outline: 2px solid var(--adaptum-viridian); outline-offset: 1px; }

.talk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.talk-grid .full { grid-column: 1 / -1; }
.talk-grid label { display: block; margin-bottom: 9px; font: 500 14px/1.3 var(--adaptum-font-text); color: var(--adaptum-ink); }
.talk-grid input, .talk-grid textarea { box-sizing: border-box; width: 100%; padding: 13px 15px; border: 0; border-radius: 13px; background: #fff; box-shadow: inset 0 0 0 1px rgb(24 37 59 / .08), 0 1px 2px rgb(24 37 59 / .04); font: 400 16px/1.45 var(--adaptum-font-text); color: var(--adaptum-ink); transition: box-shadow .2s; }
.talk-grid input { height: 52px; }
.talk-grid textarea { min-height: 128px; resize: vertical; }
.talk-grid ::placeholder { color: rgb(74 85 104 / .75); }
.talk-grid input:focus, .talk-grid textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--adaptum-viridian), 0 0 0 4px rgb(18 77 62 / .1); }
.talk-grid [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #B4412A; }
.talk-check { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; font: 400 15px/1.4 var(--adaptum-font-text); color: var(--adaptum-ink-muted); cursor: pointer; }
.talk-check input { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px rgb(24 37 59 / .22); cursor: pointer; transition: background .2s, box-shadow .2s; }
.talk-check input:checked { background: var(--adaptum-viridian) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: none; }
.talk-check input:focus-visible { outline: 2px solid var(--adaptum-viridian); outline-offset: 2px; }
.talk-send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 26px; }
.talk-send .btn { height: 52px; padding: 0 30px; font-size: 16px; background: var(--adaptum-ink); color: #fff; transition: background .25s; }
.talk-send .btn:hover, .talk-send .btn:focus-visible { background: var(--adaptum-signal); color: #fff; }
.talk-send .btn[disabled] { opacity: .6; cursor: progress; }
.talk-send small { flex: 1 1 220px; font-size: 12.5px; line-height: 1.5; color: var(--adaptum-ink-muted); }
.talk-send small a { color: inherit; }
.talk-err { margin: 14px 0 0; font-size: 14px; color: #B4412A; }
.talk-err:empty { display: none; }
.talk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Sent: the card swaps to a thank-you note. */
.talk-done { display: none; text-align: left; padding: 12px 0; }
.talk-done i { display: block; width: 44px; height: 22px; margin-bottom: 26px; border-radius: 44px 44px 0 0; background: var(--adaptum-signal); }
.talk-done h3 { margin: 0 0 12px; font: 500 clamp(26px, 2.6vw, 34px)/1.15 var(--adaptum-font-headline); color: var(--adaptum-ink); letter-spacing: -.01em; }
.talk-done p { margin: 0 0 26px; color: var(--adaptum-ink-muted); font-size: 16.5px; line-height: 1.6; max-width: 30em; }
.talk-card.sent form { display: none; }
.talk-card.sent { display: grid; align-content: center; }  /* keeps the form's height (talk.js), so the card doesn't jump */
.talk-card.sent .talk-done { display: block; animation: talkIn .45s ease both; }
@keyframes talkIn { from { opacity: 0; } }

@media (max-width: 900px) {
  .talk { max-height: none; border-radius: 22px; }
  .talk-body { grid-template-columns: 1fr; align-items: start; gap: 28px; }
}
@media (max-width: 560px) {
  .talk { inset: 8px; }
  .talk-grid { grid-template-columns: 1fr; }
  .talk-seg label { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .talk, .talk-scrim, .talk-seg::before { transition: none; } .talk-card.sent .talk-done { animation: none; } }
