/* Contact us, matched to the live site (/contact-us). */

/* This page's footer has no CTA band. */
.no-cta .cta-band { display: none; }
.no-cta .site-footer > .rule-t { border-top: 0; }

/* Live frame: side hairlines inside the 1400 column on desktop, none below 1200. */
main.frame { position: relative; border-left: 0; border-right: 0; }
main.frame::after { content: ""; position: absolute; inset: 0; border-left: 1px solid var(--border-primary); border-right: 1px solid var(--border-primary); pointer-events: none; z-index: 2; }

.h1-sm { font-weight: 500; font-size: 24px; line-height: 28px; letter-spacing: .12px; }

/* 1208px column on Framer's dot fill (1.5px squares, 8px grid). Rules are
   inset shadows, so they take no layout space, as in Framer. */
.contact-page {
  padding: 0 96px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect x='4' y='4' width='1.5' height='1.5' fill='%23001441' fill-opacity='0.08'/%3E%3C/svg%3E");
}
.contact-col { display: flex; flex-direction: column; gap: 40px; padding: 40px 0; background: var(--bg-primary); box-shadow: inset 1px 0 0 var(--border-primary), inset -1px 0 0 var(--border-primary); }
.contact-card, .contact-info { box-shadow: inset 0 1px 0 var(--border-primary), inset 0 -1px 0 var(--border-primary); }
.contact-card { display: flex; }
.contact-card > * { flex: 0 0 50%; min-width: 0; }
.contact-intro { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 32px; }
.contact-intro .head { display: flex; flex-direction: column; gap: 12px; }
.contact-intro .also { font-size: 12px; line-height: 16px; color: var(--text-secondary); }

.contact-form { display: flex; flex-direction: column; gap: 24px; padding: 32px; background: var(--surface-subtle); box-shadow: inset 1px 0 0 var(--border-primary), inset 0 1px 0 var(--border-primary), inset 0 -1px 0 var(--border-primary), inset -1px 0 0 var(--border-primary); }
.fields { display: flex; flex-direction: column; gap: 12px; }
.pair { display: flex; gap: 20px; }
.pair .field { flex: 1 1 0; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > span { font-weight: 500; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.field input, .field textarea {
  width: 100%; height: 40px; padding: 0 12px; margin: 0;
  background: var(--surface-subtle); border: 1px solid var(--border-primary); border-radius: 8px;
  color: var(--text-primary); font: 400 14px/20px var(--font-sans); outline: none; resize: none;
  transition: border-color .2s;
}
.field textarea { height: 116px; padding: 10px 12px; display: block; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-tertiary); opacity: 1; }
.field input:focus, .field textarea:focus { border-color: var(--border-secondary); }
.field .err { font-style: normal; font-size: 12px; line-height: 16px; color: var(--red); opacity: 0; transition: opacity .2s; }
.field .invalid { border-color: var(--red); }
.field .invalid ~ .err { opacity: 1; }

.actions { display: flex; align-items: center; gap: 20px; }
.actions .btn { width: 100px; }
.form-status { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.form-status.error { color: var(--red); }
.actions .btn:disabled { opacity: .6; cursor: progress; }
.agree { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--text-secondary); cursor: pointer; }
.agree a { color: var(--text-primary); text-decoration: underline; }
.agree input {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 16px; height: 16px; margin: 0;
  background: var(--surface-subtle); border: 1px solid var(--border-primary); border-radius: 4px; cursor: pointer;
}
.agree input:checked { background: var(--btn-primary-bg); border-color: var(--btn-primary-bg); }
.agree input:checked::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid var(--btn-primary-fg); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.agree input.invalid { border-color: var(--red); }

.contact-info { display: flex; align-items: flex-end; justify-content: space-between; padding: 32px; }
.emails { margin: 0; display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 12px; row-gap: 4px; font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 16px; }
.emails > div { display: contents; }
.emails dt { color: var(--text-secondary); }
.emails dd { margin: 0; white-space: nowrap; }
.emails a:hover { color: var(--text-secondary); }
.socials { display: flex; gap: 8px; }
.socials a { display: flex; padding: 7px; background: var(--surface-primary); border: 1px solid var(--border-primary); border-radius: 8px; transition: background-color .2s; }
.socials a:hover { background: var(--bg-tertiary); }
.socials img { width: 16px; height: 16px; }

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
  main.frame::after { display: none; }
  .contact-page { padding: 0; background: none; }
  .contact-col { box-shadow: none; }
  .contact-intro, .contact-info { padding: 30px; }
  .pair { flex-direction: column; gap: 12px; }
}

/* ---------- Phone ---------- */
@media (max-width: 809px) {
  .contact-card { flex-direction: column; }
  .contact-card > * { flex: none; }
  .contact-intro { justify-content: flex-start; padding: 32px 20px; }
  .contact-form { padding: 20px; box-shadow: inset 0 1px 0 var(--border-primary), inset 0 -1px 0 var(--border-primary); }
  .actions { flex-direction: column; align-items: stretch; gap: 24px; }
  .actions .btn { width: 100%; }
  .contact-info { flex-direction: column; align-items: stretch; gap: 24px; padding: 20px; }
  .emails { grid-template-columns: auto 1fr; }
  .emails dd { text-align: right; }
}

/* CoinSec: a Book a call button under the intro */
.contact-actions { display: flex; gap: 12px; margin-top: 8px; }
