/* Keep the complete logo artwork inside every shared mark container. */
.hero-art {
  position: absolute;
  inset: 0;
}

.logo-mark img,
.logo-mark > img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: none;
}

.contact-warning {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.contact-body {
  max-width: 900px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: clamp(28px, 6vw, 64px);
  background: radial-gradient(circle at 96% 4%, #0a84ff1f, transparent 28%), var(--white);
  box-shadow: 0 24px 80px #10223a12;
}

.contact-card h2 {
  margin: 0;
}

.contact-form {
  display: grid;
  gap: 22px;
  margin-top: 30px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label,
.form-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.required-mark {
  color: #b42318;
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
}

.form-field textarea {
  min-height: 190px;
  resize: vertical;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--blue);
  outline: 3px solid #0a84ff33;
  outline-offset: 1px;
}

.form-field [aria-invalid="true"] {
  border-color: #b42318;
}

.form-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.character-count {
  flex: none;
  font-variant-numeric: tabular-nums;
}

.field-error {
  min-height: 1.4em;
  margin: 0;
  color: #b42318;
  font-size: 13px;
  line-height: 1.4;
}

.field-error[hidden] {
  display: none;
}

.turnstile-container {
  min-height: 116px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 18px;
  background: #f8fafc;
}

.turnstile-container .form-label {
  margin-bottom: 10px;
}

.turnstile-container .form-help {
  margin: 10px 0 0;
}

.form-help {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 2px;
}

.contact-form button {
  min-width: 170px;
  min-height: 54px;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: .62;
  transform: none;
}

.required-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.submission-status {
  min-height: 24px;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.submission-status[data-state="error"] {
  color: #b42318;
}

.submission-status[data-state="success"] {
  color: #18794e;
}

.submission-status[data-state="sending"] {
  color: var(--muted);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (width <= 520px) {
  .contact-card {
    border-radius: 24px;
    padding: 28px 20px;
  }

  .form-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .contact-form button {
    width: 100%;
  }
}

@media (prefers-color-scheme: dark) {
  .contact-page {
    --ink: #f3f6fb;
    --muted: #aeb8c8;
    --line: #344257;
    --paper: #0d1625;
    --white: #152238;
    background: var(--paper);
  }

  .contact-page .info-header {
    border-color: var(--line);
  }

  .contact-page .info-header .brand,
  .contact-page .form-field label,
  .contact-page .form-label {
    color: var(--ink);
  }

  .contact-page .contact-card {
    background: radial-gradient(circle at 96% 4%, #0a84ff2b, transparent 28%), var(--white);
    box-shadow: 0 24px 80px #0000002e;
  }

  .contact-page .form-field input,
  .contact-page .form-field textarea,
  .contact-page .turnstile-container {
    background: #0f1b2e;
    color: var(--ink);
  }
}
