/* V11.3 Contact page styles (loaded only on /contact). */

.contact-hero {
  padding-block: clamp(96px, 12vw, 160px) clamp(28px, 4vw, 48px);
}

.contact-hero h1 {
  max-width: none;
}

.contact-lede {
  text-transform: none;
}

.contact-section {
  padding-block: 0 var(--section);
}

.contact-form,
.contact-success,
.contact-failure {
  max-width: 720px;
}

.contact-field {
  margin-bottom: 26px;
}

.contact-field label,
.contact-services legend {
  display: block;
  margin-bottom: 10px;
  color: var(--white);
  font-family: "Syne", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-required {
  color: var(--orange);
}

.contact-optional {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: "Inter", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.contact-field textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-color: var(--orange);
}

.contact-field input[aria-invalid="true"],
.contact-field textarea[aria-invalid="true"] {
  border-color: var(--orange);
}

.contact-hint {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 13px;
}

.contact-field-error {
  margin: 8px 0 0;
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
}

.contact-services {
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}

.contact-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 640px) {
  .contact-checkbox-grid {
    grid-template-columns: 1fr;
  }
}

.contact-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
  font-size: 14px;
  line-height: 1.45;
  transition: border-color 160ms ease, background 160ms ease;
}

.contact-checkbox:hover {
  border-color: var(--line);
}

.contact-checkbox:has(input:checked) {
  border-color: var(--orange);
  background: var(--surface-raised);
}

.contact-checkbox input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--orange);
}

.contact-checkbox input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.contact-counter {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 13px;
  text-align: right;
}

.contact-counter--over {
  color: var(--orange);
  font-weight: 600;
}

.contact-privacy {
  margin: 0 0 26px;
  padding: 14px 16px;
  border-left: 2px solid var(--orange);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  gap: 12px;
}

.contact-actions .button {
  cursor: pointer;
}

.contact-actions .button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.contact-error-summary {
  margin-bottom: 26px;
  padding: 14px 16px;
  border: 1px solid var(--orange);
  border-radius: 4px;
  background: var(--surface);
}

.contact-error-summary-title {
  margin: 0 0 8px;
  color: var(--orange);
  font-weight: 600;
}

.contact-error-summary ul {
  margin: 0;
  padding-left: 20px;
}

.contact-success,
.contact-failure {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--surface);
}

.contact-success-heading,
.contact-failure-heading {
  font-size: clamp(24px, 3vw, 34px);
}

.contact-success p,
.contact-failure p {
  margin: 14px 0 0;
  color: var(--muted);
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
