/* ==========================================================================
   Onyx contact page
   Loads on top of legal-doc.css, which already provides the design tokens and
   the shared header/footer. Only the page body below the nav lives here.
   ========================================================================== */

.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--indigo-3); color: var(--indigo); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Page head ---------- */

.chead { padding: 72px 0 34px; text-align: center; }
.chead h1 { margin-top: 16px; font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 700; }
.chead p {
  margin: 16px auto 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  text-wrap: pretty;
}

/* ---------- Layout ---------- */

.cmain { padding: 0 0 80px; }
.cgrid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: start; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-sm);
  padding: 32px;
}
.card.form-card { box-shadow: var(--sh-md); padding: 36px; }
.card h2 { font-size: 1.32rem; }
.card h3 { font-size: 1.08rem; }
.card .card-title { margin-top: 10px; }

/* ---------- Form ---------- */

.form-grid { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--indigo-3);
}
.field label .req { color: var(--indigo-2); }
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: #a6abb7; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo-3);
  box-shadow: 0 0 0 3px rgba(74, 76, 160, .12);
}
.field.invalid input,
.field.invalid textarea { border-color: #c23b57; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236C6FB3' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Honeypot: off-screen rather than display:none, so bots that skip hidden
   fields still fill it in. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { grid-column: 1 / -1; margin-top: 4px; }
.form-status { margin-top: 12px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.form-status.is-error { color: #c23b57; }
.form-status:empty { display: none; }

.form-consent {
  grid-column: 1 / -1;
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
.form-consent a { color: var(--indigo-2); border-bottom: 1px solid var(--line); }
.form-consent a:hover { color: var(--indigo); border-color: var(--indigo-3); }

.form-success { display: none; text-align: center; padding: 20px 10px 6px; }
.form-success.on { display: block; }
.form-success .tick {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--tint);
  border: 1px solid var(--chip);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.form-success .tick svg { width: 24px; height: 24px; stroke: var(--indigo); }
.form-success p { margin-top: 10px; color: var(--muted); max-width: 38ch; margin-inline: auto; }

/* ---------- Aside ---------- */

.aside { display: flex; flex-direction: column; gap: 20px; }
.clist { margin-top: 18px; display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
.crow { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line-2); }
.crow:last-child { border-bottom: 0; }
.crow .ci {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--tint);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.crow .ci svg { width: 17px; height: 17px; stroke: var(--indigo-2); fill: none; stroke-width: 1.8; }
.crow > span:not(.ci) { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.crow .ck {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--indigo-3);
}
.crow .cv {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  font-size: .98rem;
  letter-spacing: -.01em;
  line-height: 1.4;
  word-break: break-word;
}
.crow a.cv:hover { color: var(--indigo); }

.demo-card p { margin-top: 8px; color: var(--muted); font-size: .94rem; }
.demo-card .btn { margin-top: 18px; }

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .cgrid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .card.form-card { padding: 26px 22px; }
}
