/* Accessibility Services & Contract Work Inquiry -- styles.
   Relative units throughout so 200%/400% browser zoom reflows instead
   of clipping or forcing horizontal scroll. No fixed pixel heights on
   any container that holds user-generated or variable-length content. */

:root {
  --color-text: #1a1a1a;
  --color-bg: #ffffff;
  --color-border: #6b6b6b;
  --color-focus: #0b5fff;
  --color-error: #b3261e;
  --color-error-bg: #fdecea;
  --color-warning: #7a5b00;
  --color-warning-bg: #fff6e0;
  --color-notice-bg: #eef3f8;
  --color-success-bg: #e8f5e9;
  --max-content-width: 44rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%; /* honors user/browser zoom and base font settings */
}

body {
  margin: 0;
  padding: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

.skip-link {
  position: absolute;
  left: -999rem;
  top: 0;
  background: #000;
  color: #fff;
  padding: 0.75em 1em;
  z-index: 100;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-header {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.site-header__org {
  margin: 0;
  font-weight: 700;
}

.page {
  max-width: var(--max-content-width);
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
  overflow-wrap: break-word; /* long unbroken strings (e.g. the future-route
    URL in <code> below) must wrap at high zoom / narrow widths instead of
    forcing horizontal scroll -- see 400% zoom reflow test fix */
}

code {
  overflow-wrap: break-word;
  word-break: break-word;
}

h1 {
  font-size: 1.5rem;
  line-height: 1.3;
}

.intro {
  font-size: 1rem;
}

.cross-route {
  margin-top: 1.5rem;
}
.cross-route__note {
  font-size: 0.875rem;
  color: #444;
}

.notice {
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  padding: 1rem;
  margin: 1.5rem 0;
  background: var(--color-notice-bg);
}
.notice__heading {
  font-size: 1.1rem;
  margin-top: 0;
}
.notice--disclaimer {
  background: #f4f4f4;
  font-size: 0.9rem;
}

fieldset.field-group,
.field-group {
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  padding: 1rem;
  margin: 1.5rem 0;
  min-width: 0; /* prevents fieldset default min-width from forcing overflow at high zoom */
}
legend,
.field-group__heading {
  font-weight: 700;
  padding: 0 0.25rem;
  font-size: 1rem;
}

.required {
  color: var(--color-error);
  font-weight: 400;
  font-size: 0.85em;
}
.optional {
  color: #555;
  font-weight: 400;
  font-size: 0.85em;
}

.field {
  margin: 1rem 0;
}
.field--nested {
  margin-left: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.5em 0.6em;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.2rem;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

.radio-row,
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  margin: 0.5em 0;
}
.radio-row label,
.checkbox-row label {
  font-weight: 400;
  margin-bottom: 0;
}
.radio-row input,
.checkbox-row input {
  margin-top: 0.3em;
  flex-shrink: 0;
}

.field-hint {
  font-size: 0.85rem;
  color: #444;
  margin: 0.25rem 0;
}

.field-error {
  display: block;
  color: var(--color-error);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}
.field-error:empty {
  display: none;
}

.field-warning {
  display: block;
  color: var(--color-warning);
  background: var(--color-warning-bg);
  border: 1px solid #e0c060;
  border-radius: 0.2rem;
  padding: 0.4em 0.6em;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}
.field-warning:empty {
  display: none;
  padding: 0;
  border: none;
}

input.has-error,
textarea.has-error {
  border-color: var(--color-error);
  outline: 1px solid var(--color-error);
}

/* Honeypot: hidden from sighted users and from assistive tech, but
   still present in normal DOM order so a non-rendering bot still
   encounters and often fills it. Never display:none / visibility:hidden,
   both of which some bots specifically detect and skip. */
.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.error-summary {
  border: 2px solid var(--color-error);
  background: var(--color-error-bg);
  border-radius: 0.25rem;
  padding: 1rem;
  margin: 1.5rem 0;
}
.error-summary__heading {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--color-error);
}
.error-summary a {
  color: var(--color-error);
  text-decoration: underline;
}

.success-panel {
  border: 2px solid #1b5e20;
  background: var(--color-success-bg);
  border-radius: 0.25rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.turnstile-container {
  border: 1px dashed var(--color-border);
  padding: 1rem;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
}
.turnstile-placeholder {
  margin: 0;
  font-size: 0.85rem;
  color: #444;
}
.turnstile-fallback {
  font-size: 0.85rem;
}

button#submit-button {
  font-size: 1.05rem;
  padding: 0.7em 1.4em;
  border: none;
  border-radius: 0.25rem;
  background: #0b5fff;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
button#submit-button:disabled {
  background: #7a9fe0;
  cursor: not-allowed;
}

.submit-status {
  min-height: 1.5em;
  font-size: 0.9rem;
}

/* Visible focus indicator on every interactive element -- never removed,
   only ever restyled. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* Never rely on color alone: required/optional markers also carry text
   ("(required)" / "(optional)"), and error/warning states carry an icon-
   free but explicitly labeled text prefix via the JS-inserted content,
   not color alone. */

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* Reflow at narrow / high-zoom widths: no horizontal scrollbar, content
   stacks to single column already (no multi-column layout exists), and
   the honeypot's off-screen negative positioning never contributes to
   layout width because it's absolutely positioned out of flow. */
@media (max-width: 480px) {
  .page {
    padding: 0.75rem 0.75rem 2.5rem;
  }
}
