/* Apple reference: clear hierarchy, neutral answer buttons, 44px+ targets and tactile states.
   MJF keeps its own Poppins typography, blue and restrained gold. */
.contact-flow { position: relative; width: 100%; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--color-border); border-radius: 28px; background: var(--color-white); box-shadow: var(--shadow-sm); text-align: center; scroll-margin-top: calc(var(--header-h) + 24px); }
.contact-flow__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-bottom: 24px; }
.contact-flow__label { font-size: .875rem; color: var(--color-brand); font-weight: 500; }
.contact-flow__count { font-size: .875rem; color: var(--color-text-muted); white-space: nowrap; }
.contact-flow__progress { height: 3px; background: var(--color-brand-tint); border-radius: 4px; overflow: hidden; margin: -12px 0 32px; }
.contact-flow__progress span { display: block; height: 100%; background: var(--color-accent); transition: width 180ms ease; }
.contact-flow__body { max-width: 800px; margin-inline: auto; min-height: 235px; }
.contact-flow__title { max-width: 760px; margin: 0 auto 16px; font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.25; color: var(--color-brand); outline: none; }
.contact-flow__help { max-width: 620px; margin: 0 auto 28px; font-size: 1rem; line-height: 1.65; }
.contact-flow__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 740px; margin: 28px auto 0; }
.contact-choice { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 22px; border: 1px solid var(--color-border); border-radius: 16px; background: var(--color-surface-light); color: var(--color-brand); text-align: left; font: inherit; font-size: 1rem; font-weight: 500; cursor: pointer; transition: background 150ms ease, border-color 150ms ease, transform 150ms ease; }
.contact-choice::after { content: '→'; opacity: .6; flex: none; }
.contact-choice:hover { background: var(--color-brand-tint); border-color: var(--color-control-border); }
.contact-choice:active { transform: scale(.98); background: #dde7ee; }
.contact-choice[data-selected="true"] { border-color: var(--color-brand); background: var(--color-brand-tint); }
.contact-flow__options--start .contact-choice { min-height: 100px; font-size: 1.125rem; padding: 24px; }
.contact-flow__back, .contact-flow__reset { min-height: 44px; border: 0; background: transparent; color: var(--color-brand); font: inherit; font-size: .875rem; cursor: pointer; padding: 8px 12px; border-radius: 10px; }
.contact-flow__back:hover, .contact-flow__reset:hover { background: var(--color-brand-soft); }
.contact-flow__back[disabled] { visibility: hidden; }
.contact-flow__footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--color-border); font-size: .875rem; color: var(--color-text-secondary); }
.contact-flow__footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-brand); text-decoration: underline; text-underline-offset: 4px; }
.contact-flow__form { max-width: 480px; margin: 24px auto 0; text-align: left; }
.contact-flow__form label { display: block; margin-bottom: 8px; font-size: .875rem; font-weight: 500; }
.contact-flow__form .input { width: 100%; min-height: 56px; font-size: 1rem; }
.contact-flow__consent { display: flex !important; align-items: flex-start; gap: 10px; margin: 20px 0 !important; font-weight: 400 !important; line-height: 1.6; }
.contact-flow__consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--color-brand); }
.contact-flow__summary { margin: 20px auto; text-align: left; max-width: 640px; padding: 18px 22px; background: var(--color-surface-light); border-radius: 16px; }
.contact-flow__summary summary { cursor: pointer; min-height: 44px; display: list-item; align-content: center; color: var(--color-brand); font-size: .875rem; }
.contact-flow__summary dl { display: grid; gap: 12px; padding-top: 12px; font-size: .875rem; }
.contact-flow__summary dt { color: var(--color-text-secondary); }
.contact-flow__summary dd { margin: 3px 0 0; color: var(--color-brand); font-weight: 500; }
.contact-flow__error { color: var(--color-error); margin-top: 16px; font-size: .875rem; }
.contact-flow__error:empty { display: none; }
.contact-flow__success { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 24px; border-radius: 50%; background: var(--color-brand-tint); color: var(--color-brand); font-size: 1.75rem; }
.contact-dialog { width: min(960px, calc(100% - 48px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 0; border-radius: 28px; overflow: auto; background: white; color: var(--color-text-primary); box-shadow: var(--shadow-lg); }
.contact-dialog::backdrop { background: rgba(10,27,40,.65); }
.contact-dialog .contact-flow { box-shadow: none; border: 0; border-radius: inherit; }
.contact-dialog__close { position: absolute; top: 10px; right: 10px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--color-surface-light); color: var(--color-brand); font-size: 1.5rem; cursor: pointer; }
.contact-dialog .contact-flow__top { padding-right: 28px; }
body:has(.contact-dialog[open]) { overflow: hidden; }
.home-contact-section .contact-flow { background: white; }
@media (max-width: 560px) {
  .contact-flow { padding: 20px; border-radius: 22px; }
  .contact-flow__top { margin-bottom: 20px; gap: 8px; }
  .contact-flow__body { min-height: 280px; }
  .contact-flow__options { grid-template-columns: 1fr; gap: 10px; }
  .contact-flow__options--start .contact-choice { min-height: 84px; padding: 20px; }
  .contact-flow__title { font-size: 1.65rem; }
  .contact-choice { min-height: 58px; padding: 14px 16px; }
  .contact-flow__footer { gap: 0 16px; margin-top: 24px; padding-top: 16px; }
  .contact-flow__footer > span { flex-basis: 100%; }
  .contact-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 22px; }
  .contact-flow__label { font-size: .8125rem; }
  .contact-flow__summary { padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) { .contact-choice, .contact-flow__progress span { transition: none; } .contact-choice:active { transform: none; } }
/* Keep the modal close action on its own line, clear of progress and labels. */
.contact-dialog .contact-flow { padding-top: 64px; }
.contact-dialog .contact-flow__top { padding-right: 0; }
