:root {
  color-scheme: light;
  --ink: #0f1c1f;
  --green: #37c50c;
  --focus: #267c11;
  --muted: #4c5c58;
  --line: #c9d2cd;
  font: 100%/1.5 Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: white;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.landing {
  position: relative; isolation: isolate; display: grid; place-items: center;
  min-height: 100vh; min-height: 100svh; padding: 2rem 1.25rem;
  background-color: white;
}
.landing::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: url('./pattern.svg') repeat center center / 410px auto;
  opacity: .48; pointer-events: none;
}
.contact-card {
  position: relative; width: min(100%, 29.5rem); padding: clamp(2.4rem, 5vw, 3.75rem) 1.25rem;
  border: 1px solid #d5dfd6; border-radius: 1.5rem; background: white;
  box-shadow: 0 3px 0 #e4ede3, 0 14px 42px -20px #234d253d;
  text-align: center;
}
.brand { display: block; width: 10.1rem; height: auto; margin: 0 auto; }
h1, h2 { font-weight: 720; text-wrap: balance; }
h1 { margin: 2rem 0 .85rem; font-size: clamp(2.65rem, 5.3vw, 3.45rem); line-height: 1.02; letter-spacing: -.061em; }
.intro { margin: 0; color: var(--muted); font-size: 1.02rem; }
.primary, .secondary, .pick-file {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 3rem; padding: .65rem 1.3rem; border: 1px solid transparent;
  border-radius: .65rem; font-weight: 650; line-height: 1.25; text-align: center;
}
.primary { background: var(--ink); color: white; }
.primary:hover { background: #243a36; }
.primary:disabled { cursor: progress; opacity: .72; }
button:disabled, input:disabled + .pick-file { cursor: default; }
.landing-action { margin-top: 1.8rem; min-height: 3.15rem; padding-inline: 1.4rem; }
.landing-action svg { color: #82e957; width: 1.2rem; height: 1.2rem; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.legal-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .6rem; font-size: .875rem; }
.contact-card .legal-links { justify-content: center; margin-top: 1.15rem; }
.legal-links a { display: inline-flex; align-items: center; min-height: 2rem; color: var(--muted); text-underline-offset: .2em; }
.legal-links a:hover { color: var(--ink); }
noscript { display: block; margin-top: 1rem; }
#contact-dialog {
  padding: 0; color: var(--ink); background: white; border: 1px solid #d0dad1;
  border-radius: 1.3rem; width: min(calc(100% - 1.5rem), 32rem);
  max-width: none; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem);
  margin: auto; overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 18px 90px -24px #0f201f60;
}
#contact-dialog::backdrop { background: rgb(15 28 31 / .38); }
.dialog-inner { padding: clamp(1.25rem, 4vw, 2rem); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.dialog-brand { width: 7.5rem; height: auto; }
.icon-button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; color: var(--ink); background: #f0f3f0; }
.icon-button:hover { background: #e6ece6; }
.icon-button svg { width: 1.25rem; height: 1.25rem; }
#step-progress { margin: 1.6rem 0 1.3rem; }
.step-count { margin: 0 0 .45rem; color: #456042; font-size: .86rem; font-weight: 650; }
.progress-bars { display: flex; gap: .3rem; }
.progress-bars i { flex: 1; height: .3rem; border-radius: 1rem; background: #e7ece7; }
.progress-bars .filled { background: var(--green); }
h2 { margin: 0 0 1.1rem; font-size: clamp(1.65rem, 5.5vw, 2.1rem); line-height: 1.13; letter-spacing: -.042em; }
h2:focus { outline: none; }
form, fieldset { margin: 0; }
.step label:not(.pick-file), legend { display: block; margin-bottom: .35rem; font-size: .94rem; font-weight: 620; }
label span, legend span { color: var(--muted); font-weight: 400; }
input:not([type="file"]), textarea {
  width: 100%; padding: .7rem .82rem; min-height: 2.95rem; border: 1px solid #aebdb4;
  border-radius: .5rem; color: var(--ink); background: white; font-size: 1rem;
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #aa322f; }
textarea { display: block; resize: vertical; }
textarea::placeholder { color: #586760; }
.step > input + label { margin-top: .9rem; }
.address-grid { display: grid; grid-template-columns: minmax(6.3rem, .45fr) 1fr; gap: .75rem; }
.attachment-box { min-width: 0; border: 0; padding: 0; margin-top: 1.05rem; }
legend { padding: 0; }
.helper, .privacy-note { margin: 0; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.pickers { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.pickers > div { position: relative; }
.pick-file, .secondary { color: var(--ink); background: white; border-color: var(--line); }
.pick-file { min-height: 2.75rem; padding: .5rem .85rem; gap: .42rem; font-size: .9rem; cursor: pointer; }
.pick-file span { color: inherit; font-weight: inherit; }
.pick-file svg { width: 1.15rem; height: 1.15rem; }
.pick-file:hover, .secondary:hover { background: #f2f6f1; }
.file-input:focus-visible + .pick-file { outline: 3px solid var(--focus); outline-offset: 2px; }
.file-list { padding: 0; margin: .35rem 0 0; list-style: none; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .875rem; border-bottom: 1px solid #e6ebe7; }
.file-list li span { overflow-wrap: anywhere; }
.remove-file { min-width: 2.75rem; min-height: 2.75rem; flex-shrink: 0; font-size: 1.25rem; border: 0; color: var(--ink); background: transparent; }
.privacy-note { margin-top: .95rem; }
.form-actions { display: flex; gap: .6rem; margin-top: 1.4rem; }
#next { margin-left: auto; min-width: 7rem; }
#form-error { background: #fff3ef; color: #76241c; border-left: 3px solid #b84035; padding: .65rem .8rem; font-size: .95rem; border-radius: .2rem; }
.trap, .screen-reader, .file-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.reference { overflow-wrap: anywhere; }
.reference strong { display: block; font-size: 1.12rem; }
.receipt-text { color: var(--muted); }
#step-progress[hidden] + h2 { margin-top: 1.6rem; }
@media (max-width: 420px) {
  .landing { padding: 1.6rem; }
  .landing::before { background-size: 345px auto; }
  .contact-card { padding: 2.8rem .75rem; border-radius: 1.15rem; }
  .brand { width: 8.7rem; }
  h1 { font-size: clamp(2.1rem, 10.8vw, 2.85rem); }
  .dialog-inner { padding: 1.1rem; }
  #step-progress { margin-top: 1.1rem; }
}
@media (max-width: 320px) { .address-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) {
  @keyframes open-dialog { from { opacity: 0; transform: translateY(5px); } }
  #contact-dialog[open] { animation: open-dialog .16s ease-out; }
}
