/* Let's talk dialog (contact.js). Wide screens show both routes side by side;
   narrower screens open on a choice between them, and the choice becomes a
   switch once made, so the visitor can change their mind at any point. */
html:has(.contact-dialog[open]) { overflow: hidden; }
.contact-dialog { width: min(1120px, calc(100% - 48px)); max-width: none; max-height: calc(100svh - 48px); padding: 0; border: 0; border-radius: 12px; background: var(--white); color: var(--ink); box-shadow: 0 30px 120px #0005; overflow: auto; overscroll-behavior: contain; }
.contact-dialog::backdrop { background: #101827d9; }
.contact-dialog button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.contact-dialog button:focus-visible, .contact-dialog input:focus-visible, .contact-dialog textarea:focus-visible { outline: 3px solid #ef872e; outline-offset: 2px; }
.contact-dialog a:not(.button) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.contact-top { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 26px 32px 22px; background: var(--white); border-bottom: 1px solid var(--line); }
.contact-top .eyebrow { color: var(--blue); }
.contact-top h2 { margin: 6px 0 0; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; font-weight: 500; letter-spacing: -.04em; }
.contact-top h2:focus { outline: none; }
.contact-close { flex: 0 0 auto; min-height: 44px; padding: 10px 16px; font-size: .8125rem; font-weight: 600; line-height: 1.5; color: var(--ink); background: var(--white); border: 1px solid #cdd4de; border-radius: 6px; }
.contact-close:hover { border-color: var(--ink); }
.contact-switch { display: none; }
.contact-panels { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.contact-panel { padding: 28px 32px 32px; min-width: 0; }
.contact-panel--message { border-left: 1px solid var(--line); background: var(--paper); }
.contact-panel-head h3 { margin: 0 0 6px; font-size: 1.25rem; line-height: 1.4; font-weight: 600; letter-spacing: -.02em; }
.contact-panel-head p { margin: 0; font-size: .9375rem; line-height: 1.7; color: var(--muted); }
/* Meeting length: a three-way switch above the calendar, in the same visual
   language as the phone route switch. */
.contact-length { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; }
.contact-length-label { font-size: .875rem; font-weight: 600; line-height: 1.5; }
.contact-length-options { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: #eef0f5; border: 1px solid #dce0e7; border-radius: 8px; }
.contact-length-options button { min-height: 40px; padding: 8px 14px; font-size: .875rem; font-weight: 600; line-height: 1.4; white-space: nowrap; color: #536071; background: transparent; border: 1px solid transparent; border-radius: 5px; }
.contact-length-options button:hover { color: var(--ink); }
.contact-length-options button[aria-pressed="true"] { color: var(--ink); background: var(--white); border-color: #dce0e7; box-shadow: 0 1px 2px #17202c08; }
/* --cal-fit is the height Calendly reports (contact.js); each breakpoint's own
   height holds until that first report. */
.contact-cal { position: relative; margin-top: 16px; height: var(--cal-fit, clamp(560px, calc(100svh - 300px), 700px)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); }
.contact-cal iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact-cal-loading { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); margin: 0; text-align: center; font-size: .875rem; color: var(--muted); }
.contact-foot { margin: 12px 0 0; font-size: .8125rem; line-height: 1.6; color: var(--muted); }
.contact-form { display: grid; gap: 18px; margin-top: 22px; }
.contact-form[hidden], .contact-sent[hidden], .contact-direct[hidden] { display: none; }
.contact-field label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 600; line-height: 1.5; }
.contact-field input, .contact-field textarea { display: block; width: 100%; min-height: 48px; padding: 11px 13px; font: inherit; font-size: 1rem; line-height: 1.5; color: var(--ink); background: var(--white); border: 1px solid #c4cbd6; border-radius: 6px; }
.contact-field textarea { min-height: 156px; resize: vertical; }
.contact-field input:hover, .contact-field textarea:hover { border-color: #8f99a8; }
.contact-field [aria-invalid="true"] { border-color: #b3261e; }
.contact-error { margin: 6px 0 0; font-size: .8125rem; line-height: 1.5; color: #b3261e; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.contact-submit .button { border: 0; }
.contact-submit .button:disabled { background: #5c6470; cursor: progress; }
.contact-note { margin: 0; font-size: .8125rem; line-height: 1.6; color: var(--muted); }
.contact-status { margin: 0; font-size: .875rem; line-height: 1.65; }
.contact-status:empty { display: none; }
.contact-status.is-error { color: #8c1d18; }
.contact-sent, .contact-direct { margin-top: 22px; padding: 22px 24px; border: 1px solid #cdd5ff; border-radius: 8px; background: #eef1fd; }
.contact-sent:focus { outline: none; }
.contact-sent p, .contact-direct p { margin: 0; font-size: .9375rem; line-height: 1.7; }
.contact-sent .contact-sent-title { margin-bottom: 4px; font-size: 1.0625rem; font-weight: 600; }
.contact-inline-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 0; font-size: .875rem; font-weight: 550; color: var(--blue); background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; }
.contact-panels .contact-sent-book { display: none; }

@media (max-width: 959px) {
  .contact-dialog { width: 100%; height: 100%; max-height: none; margin: 0; border-radius: 0; }
  .contact-top { padding: 18px 20px 16px; }
  .contact-switch { display: grid; gap: 12px; padding: 20px 20px 4px; }
  .contact-switch button { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 84px; padding: 18px 20px; text-align: left; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
  .contact-switch button:hover { border-color: var(--blue); }
  .contact-switch strong { font-size: 1.125rem; line-height: 1.4; font-weight: 600; letter-spacing: -.02em; }
  .contact-switch span { font-size: .9375rem; line-height: 1.5; color: var(--muted); }
  /* Once a route is chosen the cards become a two-way switch. */
  .contact-dialog:not([data-active=""]) .contact-switch { grid-template-columns: 1fr 1fr; gap: 4px; margin: 16px 20px 0; padding: 4px; background: #eef0f5; border: 1px solid #dce0e7; border-radius: 8px; }
  .contact-dialog:not([data-active=""]) .contact-switch button { min-height: 44px; padding: 9px 10px; align-items: center; justify-content: center; text-align: center; border-color: transparent; border-radius: 5px; background: transparent; color: #536071; }
  .contact-dialog:not([data-active=""]) .contact-switch button[aria-pressed="true"] { color: var(--ink); background: var(--white); border-color: #dce0e7; box-shadow: 0 1px 2px #17202c08; }
  .contact-dialog:not([data-active=""]) .contact-switch strong { font-size: .875rem; font-weight: 600; }
  .contact-dialog:not([data-active=""]) .contact-switch span { display: none; }
  .contact-panels { grid-template-columns: minmax(0, 1fr); }
  .contact-dialog[data-active=""] .contact-panel,
  .contact-dialog[data-active="book"] .contact-panel--message,
  .contact-dialog[data-active="message"] .contact-panel--book { display: none; }
  .contact-panel { padding: 20px 20px 28px; }
  .contact-panel--message { border-left: 0; background: var(--white); }
  .contact-panel-head h3 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .contact-cal { height: var(--cal-fit, 780px); }
  .contact-panels .contact-sent-book { display: inline-flex; }
}
@media (max-width: 559px) {
  .contact-top h2 { font-size: 1.375rem; }
  .contact-cal { height: var(--cal-fit, 940px); margin-top: 16px; }
  .contact-length-options { width: 100%; }
  .contact-length-options button { min-height: 44px; }
  .contact-submit .button { width: 100%; }
}
