/* Contact page */
.contact-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 110px));
}
.contact-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact-hero__copy .lead { margin-top: 22px; }
.contact-hero__lines { margin-top: 32px; max-width: 460px; }

.contact-form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 36px); }
.contact-form > .small { margin-top: -6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0;
}
.field em { font-style: normal; text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.97rem;
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(var(--pa-rgb), 0.7);
  background: rgba(var(--pa-rgb), 0.05);
  box-shadow: 0 0 0 4px rgba(var(--pa-rgb), 0.12);
}
.field input[aria-invalid="true"] { border-color: rgba(255, 107, 107, 0.7); }
.pill-checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pill-checks label { position: relative; cursor: pointer; }
.pill-checks input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill-checks span {
  display: inline-flex; align-items: center; min-height: 38px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.86rem; color: var(--text-2);
  transition: all 0.25s;
}
.pill-checks input:checked + span { color: #04060a; background: var(--pa); border-color: transparent; font-weight: 550; }
.pill-checks input:focus-visible + span { outline: 2px solid var(--pa); outline-offset: 2px; }
.form-error { color: var(--bad); font-size: var(--fs-sm); }
.contact-form .btn { justify-self: start; }

.next-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  position: relative;
}
.next-steps::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 22px; height: 1px;
  background: linear-gradient(90deg, var(--pa), var(--pa-2));
  transform-origin: left; transform: scaleX(min(1, calc(var(--p, 1) * 1.6)));
  opacity: 0.6;
}
.next-step {
  position: relative;
  padding: 0 4px;
}
.next-step__num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg); border: 1px solid rgba(var(--pa-rgb), 0.5);
  color: var(--pa); font-size: var(--fs-xs); margin-bottom: 18px;
  position: relative; z-index: 1;
}
.next-step .icon-box { display: none; }
.next-step h3 { margin-bottom: 6px; }
.next-step p { color: var(--text-2); font-size: 0.95rem; }

.explore__card { display: flex; flex-direction: column; gap: 10px; transition: transform 0.5s var(--ease-out), border-color 0.3s; }
.explore__card .chip { align-self: flex-start; }
.explore__card h3 { margin: 6px 0 0; }
.explore__card .link-arrow { margin-top: auto; padding-top: 8px; }
.explore__card:hover { transform: translateY(-4px); border-color: rgba(var(--pa-rgb), 0.45); }

@media (max-width: 960px) {
  .contact-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .next-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .next-steps::before { display: none; }
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .next-step__num { width: 36px; height: 36px; margin-bottom: 12px; }
  .next-step p { font-size: 0.86rem; }
  .explore { gap: 10px; }
}

/* Web3Forms states */
.form-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-status { padding: 14px 16px; border-radius: 12px; font-size: 0.92rem; line-height: 1.5; border: 1px solid var(--line); }
.form-status strong { display: block; margin-bottom: 2px; color: var(--text); }
.form-status--ok { border-color: rgba(62, 230, 154, 0.4); background: rgba(62, 230, 154, 0.08); color: var(--text-2); }
.form-status--err { border-color: rgba(255, 107, 107, 0.45); background: rgba(255, 107, 107, 0.08); color: var(--text-2); }
.form-status a { color: var(--pa); text-decoration: underline; text-underline-offset: 3px; }
.btn-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(4, 6, 10, 0.25); border-top-color: #04060a; animation: btn-spin 0.8s linear infinite; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
.contact-form button[disabled] { opacity: 0.85; cursor: progress; }
