/* Two messages make the invitation and the visitor's next step one conversation. */
.contact-cta.contact-conversation.container { --type-size-cta-title: clamp(38px, min(5.3vw, 8svh), 82px); overflow: hidden; }
.contact-cta.contact-conversation.container .contact-cta-main { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: clamp(28px, 4svh, 52px); padding-block: clamp(24px, 4svh, 52px); flex: 1 1 auto; min-height: 0; }
.contact-conversation .contact-bubble { position: relative; border-radius: clamp(26px, 3.5vw, 54px); }
.contact-conversation .contact-bubble--question { align-self: flex-start; display: block; width: fit-content; max-width: 78%; padding: clamp(24px, 3.4vw, 52px); background: var(--black); color: #fff; border-bottom-left-radius: 8px; transform-origin: bottom left; }
.contact-conversation .contact-bubble--question::after { content: ''; position: absolute; bottom: -12px; left: 0; width: 28px; height: 26px; background: var(--black); clip-path: polygon(0 0, 100% 0, 0 100%); }
.contact-cta.contact-conversation.container .contact-bubble :is(h1, h2) { margin: 0; max-width: none; color: #fff; text-wrap: wrap; white-space: normal; word-break: normal; }
.contact-cta.contact-conversation.container .contact-cta-action { align-self: flex-end; width: fit-content; min-height: 72px; padding: clamp(20px, 2.4vw, 34px) clamp(28px, 3vw, 48px); gap: clamp(28px, 4vw, 64px); color: var(--black); background: #fff; font-size: calc(var(--type-size-cta-title) * .8); border-bottom-right-radius: 8px; transform-origin: bottom right; transition: background-color .2s ease; }
.contact-conversation .contact-bubble--reply::after { content: ''; position: absolute; bottom: -12px; right: 0; width: 28px; height: 26px; background: inherit; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.contact-cta.contact-conversation.container .contact-cta-action:hover { gap: clamp(28px, 4vw, 64px); background: var(--paper); }
.contact-conversation .contact-reply-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.contact-conversation .contact-cta-action .arrow { width: 30px; height: 30px; transition: transform .25s ease; }
.contact-conversation .contact-cta-action:hover .arrow { transform: translate(3px, -3px); }
.contact-cta.contact-conversation.container .contact-cta-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding-top: 0; }
.contact-conversation .contact-cta-bottom .brand-mark { grid-column: 2; justify-self: end; display: block; width: clamp(46px, 6vw, 86px); height: auto; color: var(--black); }
@media (max-width: 767px) {
  .contact-conversation .contact-bubble--question { max-width: 92%; }
  .contact-cta.contact-conversation.container .contact-cta-main { gap: 32px; }
  .contact-cta.contact-conversation.container .contact-cta-bottom { gap: 20px; }
  .contact-conversation .contact-cta-bottom .brand-mark { width: 42px; }
}
@media (max-height: 600px) {
  .contact-cta.contact-conversation.container { min-height: 100svh; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-cta.contact-conversation.container .contact-bubble { animation: none; transition: none; }
}

/* The form route starts directly with a plain introduction and the enquiry form. */
main.contact-page .contact-intro { grid-template-rows: auto auto; align-content: center; }
main.contact-page .contact-form-title { color: var(--coral); font-size: clamp(48px, 5.8vw, 88px); font-weight: 700; line-height: 1.12; letter-spacing: -.055em; }
@media (min-width: 768px) and (min-height: 900px) {
  main.contact-page .contact-layout { padding-bottom: 80px; }
}

/* Keep the complete enquiry form, including Send, within a typical phone screen. */
@media (max-width: 767px) {
  main.contact-page .contact-layout { min-height: 100svh; grid-template-rows: auto 1fr; padding-top: calc(var(--chapter-header, 70px) + 12px); padding-bottom: 24px; gap: 20px; }
  main.contact-page .contact-intro { gap: 10px; }
  main.contact-page .contact-form-title { font-size: clamp(32px, 9vw, 40px); }
  main.contact-page .contact-intro .contact-intro__body.type-page-lead { font-size: 16px; line-height: 1.4; }
  main.contact-page .contact-layout__form { display: flex; min-width: 0; }
  main.contact-page .contact-form { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 16px; padding-top: 0; }
  main.contact-page .contact-form > * { flex-shrink: 0; }
  main.contact-page .form-field--message { display: flex; flex-direction: column; flex: 1; }
  main.contact-page .contact-form__row { gap: 16px; }
  main.contact-page .form-field { margin-bottom: 0; }
  main.contact-page .form-field label { margin-bottom: 3px; font-size: 13px; line-height: 1.35; }
  main.contact-page .form-field input,
  main.contact-page .form-field textarea { min-height: 44px; padding: 8px 0; font-size: 16px; }
  main.contact-page .form-field textarea { flex: 1 1 auto; height: 88px; min-height: 88px; }
  main.contact-page .contact-form__privacy { max-width: none; margin: 0; line-height: 1.45; }
  main.contact-page .contact-form__submit { min-height: 48px; padding: 12px 18px; }
  main.contact-page .contact-form__status { margin-top: 0; }
  main.contact-page .contact-form__status:empty { display: none; }
}
@media (max-width: 767px) and (max-height: 740px) {
  main.contact-page .contact-layout { padding-top: calc(var(--chapter-header, 70px) + 8px); gap: 14px; }
  main.contact-page .contact-intro { gap: 8px; }
  main.contact-page .contact-form-title { font-size: 32px; }
  main.contact-page .contact-form,
  main.contact-page .contact-form__row { gap: 12px; }
  main.contact-page .form-field label { margin-bottom: 2px; }
  main.contact-page .form-field textarea { height: 64px; min-height: 64px; }
  main.contact-page .contact-form__submit { min-height: 44px; padding-block: 10px; }
}

/* Match the optional attachment to the existing underlined form fields. */
main.contact-page .contact-form__row > .form-field { min-width: 0; }
main.contact-page .form-field input[type="file"] { min-width: 0; font-size: 13px; cursor: pointer; }
main.contact-page .form-field input[type="file"]::file-selector-button { margin-right: 10px; padding: 3px 8px; border: 1px solid currentColor; border-radius: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
main.contact-page .form-field__help { margin: 6px 0 0; font-size: 11px; line-height: 1.45; color: #737373; }
main.contact-page .contact-form__remove-attachment { display: block; margin-top: 6px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
