/* Contact actions stay with their instructions and form, rather than covering them. */
html:has(body.contact-flow) {
  --contact-safe-area: env(safe-area-inset-bottom, 0px);
  scroll-behavior: auto;
  scroll-padding-block-start: 100px;
  scroll-padding-block-end: calc(24px + var(--contact-safe-area));
}

body.contact-flow {
  padding-bottom: var(--contact-safe-area, 0px);
}

body.contact-flow .cw-launcher {
  display: none !important;
}

body.contact-flow .ct26-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.contact-flow .ct26-choice-card {
  border: 1px solid #D8E3F5;
  border-radius: 12px;
  padding: 14px 16px;
  background: #F8FAFD;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

body.contact-flow .ct26-choice-card strong {
  font-size: 15px;
  color: #0F3D8C;
  font-weight: 600;
}

body.contact-flow .ct26-choice-card span {
  font-size: 14px;
  line-height: 1.6;
  color: #617089;
}

@media (max-width: 640px) {
  body.contact-flow .ct26-choice {
    grid-template-columns: 1fr;
  }
}

body.contact-flow .ct26-choice-chat {
  background: #FFF4ED;
  border-color: #FFC7AB;
}

body.contact-flow .ct26-email-row {
  flex-wrap: wrap;
  gap: 6px 12px;
}

body.contact-flow .ct26-email-row > span:first-child {
  flex-shrink: 0;
  white-space: nowrap;
}

body.contact-flow .ct26-email-row > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 375px) {
  body.contact-flow .ct26-email-action {
    padding-inline: 20px !important;
  }
}

body.contact-flow #project-form,
body.contact-flow .ct26 :is(input, select, textarea, summary, button, a) {
  scroll-margin-block: 16px;
}

/* The fragment points to the form below its 44px disclosure title and gap. */
body.contact-flow #project-form {
  scroll-margin-block-start: 64px;
}

body.contact-flow .ct26 :is(input, select, textarea, summary, button, a):focus-visible {
  outline: 2px solid var(--brand, #073B8E);
  outline-offset: 3px;
}
