/* Floating contact actions and accessible native dialog. */
.contact-widget { position: fixed; z-index: 30; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.contact-widget svg, .inquiry-dialog svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.floating-toggle { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--btn); background: var(--btn); color: var(--btn-arrow); box-shadow: 0 6px 24px var(--shadow); transition: background-color 180ms ease, transform 180ms ease; }
.floating-toggle:hover { background: var(--btn-hover); transform: translateY(-2px); }
.floating-toggle svg { width: 28px; height: 28px; }
.floating-toggle .toggle-close { display: none; }
.floating-toggle[aria-expanded=true] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.floating-toggle[aria-expanded=true] .toggle-chat { display: none; }
.floating-toggle[aria-expanded=true] .toggle-close { display: block; }
.floating-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; padding-right: 4px; }
.floating-action { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 0; border: 0; background: transparent; }
.action-label { background: var(--surface); color: var(--ink); padding: 9px 14px; border-radius: 12px; box-shadow: 0 2px 16px var(--shadow); font-size: 13px; }
.action-circle { display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 3px 16px var(--shadow); transition: background-color 180ms ease; }
.floating-action:not(:disabled):hover .action-circle { background: var(--accent); color: var(--on-accent); }
.floating-action:disabled { cursor: default; }
.floating-action:disabled .action-circle { color: var(--muted); background: var(--stone); }
.inquiry-dialog { width: min(100% - 32px, 500px); max-height: calc(100dvh - 40px); margin: auto; padding: 32px; border: 1px solid var(--line); border-radius: 28px; background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain; box-shadow: 0 24px 100px var(--shadow); }
.inquiry-dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(4px); }
body:has(.inquiry-dialog[open]) { overflow: hidden; }
.dialog-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; background: var(--stone); border: 0; border-radius: 50%; }
.dialog-close:hover { background: var(--line); }
.inquiry-symbol { display: grid; place-items: center; width: 48px; height: 48px; background: var(--accent); color: var(--on-accent); border-radius: 50%; margin-bottom: 18px; }
.inquiry-heading .eyebrow { font-size: 10px; margin-bottom: 8px; }
.inquiry-heading h2 { font-size: 31px; letter-spacing: -.04em; }
.inquiry-heading > p:last-child { margin-top: 12px; font-size: 14px; color: var(--muted); }
.inquiry-fields { display: grid; gap: 18px; margin-top: 26px; }
.form-field { display: grid; gap: 7px; min-width: 0; }
.form-field label, .channel-choice legend { font-size: 13px; font-weight: 600; }
.form-field input { min-width: 0; width: 100%; min-height: 50px; background: var(--surface); color: var(--ink); border: 1px solid var(--field-line); border-radius: 12px; padding: 12px 14px; font: 16px/1.4 var(--sans); }
.form-field input::placeholder { color: var(--muted); opacity: 1; }
.inquiry-form input:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.form-field input[aria-invalid=true] { border-color: var(--danger-line); }
.channel-choice { min-width: 0; border: 0; padding: 0; margin: 0; }
.channel-choice legend { padding: 0; margin-bottom: 10px; }
.channel-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.channel-options label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--field-line); border-radius: 12px; background: var(--surface); font-size: 14px; cursor: pointer; }
.channel-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.channel-options label:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.channel-options label:has(input:focus-visible) { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.consent-label { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding-block: 5px; cursor: pointer; }
.consent-label input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.consent-label span { font-size: 12px; line-height: 1.65; color: var(--muted); }
.consent-label a { text-decoration: underline; text-underline-offset: 3px; }
.inquiry-submit { width: 100%; border: 0; }
.inquiry-submit:disabled { background: var(--stone); color: var(--muted); cursor: not-allowed; }
.inquiry-submit:disabled .button-arrow { background: var(--line); color: var(--muted); }
.inquiry-status { margin-top: 16px; font-size: 13px; color: var(--muted); }
.inquiry-status:empty { display: none; }
.inquiry-status[data-state=error], .field-error { color: var(--danger); }
.field-error { font-size: 12px; margin-top: 4px; }
.inquiry-status[data-state=success] { padding: 24px; background: var(--stone); color: var(--ink); border-radius: 16px; font-size: 16px; }
/* Anti-spam check: a quiet line that turns into a confirmation while the visitor types. */
.human-check { display: flex; align-items: center; gap: 10px; min-height: 24px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.human-check::before { content: ''; display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; font-weight: 700; line-height: 1; }
.human-check[data-state=checking]::before { border: 2px solid var(--line); border-top-color: var(--accent-ink); animation: human-check-spin 800ms linear infinite; }
.human-check[data-state=passed] { color: var(--ink); }
.human-check[data-state=passed]::before { content: '✓'; background: var(--accent-ink); color: var(--paper); }
.human-check[data-state=failed] { color: var(--danger); }
.human-check[data-state=failed]::before { content: '!'; background: var(--danger); color: var(--paper); }
@keyframes human-check-spin { to { transform: rotate(360deg); } }
.inquiry-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 599px) {
  .contact-widget { right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); }
  .floating-toggle { width: 60px; height: 60px; }
  .floating-actions { padding-right: 2px; }
  .inquiry-dialog { width: 100%; max-width: 100%; max-height: calc(100dvh - 16px); margin: auto 0 0; border-radius: 24px 24px 0 0; padding: 26px 24px max(24px, env(safe-area-inset-bottom)); }
  .inquiry-heading h2 { font-size: 28px; }
  .site-footer { padding-bottom: 100px; }
}
