/* The live site's contact dialog (contact.js + components.contactDialog), in the pencil-field look. Self-contained: works with or without the live style.css. */
.fv-contact-open { overflow: hidden; }
.fv-contact-dialog {
  --surface: #11281d; --field: #0d2118; --line: #2b4a37; --text: #f0efe6; --muted: #a3b3a9; --accent: #e8b04a; --error: #f08a7e;
  --display-font: "Fraunces", Georgia, serif;
  font-family: "Work Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px;
  margin: auto; padding: 0; width: 540px; max-width: calc(100% - 32px); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.fv-contact-dialog *, .fv-contact-dialog *::before, .fv-contact-dialog *::after { box-sizing: border-box; margin: 0; }
.fv-contact-dialog::backdrop { background: rgba(4, 12, 8, .68); backdrop-filter: blur(3px); }
.fv-contact-dialog[open] { animation: pf-dialog-in 220ms cubic-bezier(.23, 1, .32, 1); }
.fv-contact-dialog[open]::backdrop { animation: pf-fade-in 220ms ease-out; }
@keyframes pf-dialog-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes pf-fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fv-contact-dialog[open], .fv-contact-dialog[open]::backdrop { animation: none; } }

.fv-contact-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 1; }
.fv-contact-header h2 { font: 400 28px/1.2 var(--display-font); letter-spacing: -0.01em; color: var(--text); }
.fv-contact-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; transition: color 160ms, background-color 160ms; }
.fv-contact-close svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .fv-contact-close:hover { background: rgba(240, 239, 230, .06); color: var(--text); } }
.fv-contact-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.fv-contact-body { padding: 22px 24px 24px; }
.fv-contact-fields { border: 0; padding: 0; display: grid; gap: 16px; min-width: 0; }
.fv-contact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.fv-contact-fields label { display: grid; gap: 7px; font-size: 13px; color: var(--muted); min-width: 0; }
.fv-contact-fields input, .fv-contact-fields textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 16px; line-height: 1.5;
  color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 8px; transition: border-color 160ms;
}
.fv-contact-fields textarea { min-height: 128px; resize: vertical; }
.fv-contact-fields input:focus, .fv-contact-fields textarea:focus { outline: none; border-color: var(--accent); }
.fv-contact-fields :disabled { opacity: .6; }
.fv-contact-hint { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 6px; }
.fv-contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.fv-contact-verification { margin-top: 16px; min-width: 0; }
.fv-contact-verification:empty { display: none; }
.fv-contact-note, .fv-contact-alternative, .fv-contact-status { font-size: 12.5px; line-height: 1.65; margin-top: 14px; }
.fv-contact-note, .fv-contact-alternative { color: var(--muted); }
.fv-contact-note a, .fv-contact-alternative a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.fv-contact-status { color: var(--text); }
.fv-contact-status:empty { display: none; }
.fv-contact-status[data-error="true"] { color: var(--error); }
.fv-contact-actions { display: flex; justify-content: flex-end; margin-top: 18px; }

.fv-contact-dialog .fv-button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px; font: 500 15px "Work Sans", system-ui, sans-serif;
  color: var(--text); background: transparent; border: 1px solid var(--accent); border-radius: 999px; cursor: pointer;
  transition: background-color 160ms, transform 160ms cubic-bezier(.23, 1, .32, 1);
}
.fv-contact-dialog .fv-button svg { width: 17px; height: 17px; }
.fv-contact-dialog .fv-button:active:not(:disabled) { transform: scale(.97); }
.fv-contact-dialog .fv-button:disabled { opacity: .45; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .fv-contact-dialog .fv-button:hover:not(:disabled) { background: rgba(232, 176, 74, .12); } }
.fv-contact-dialog .fv-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.fv-contact-success { padding-block: 12px; }
.fv-contact-success > svg { color: var(--accent); width: 32px; height: 32px; margin-bottom: 14px; }
.fv-contact-success h3 { font: 400 24px/1.2 var(--display-font); color: var(--text); }
.fv-contact-success p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.fv-contact-success button { margin-top: 20px; }
@media (max-width: 460px) {
  .fv-contact-row { grid-template-columns: minmax(0, 1fr); }
  .fv-contact-header { padding: 10px 10px 10px 18px; }
  .fv-contact-body { padding: 18px; }
}
