/* =========================================================
   contact.css — /contact page
   Uses the tokens from the base CSS (:root).
   Every class is prefixed .cn- so nothing clashes with other page CSS.
   Input styling mirrors .ct-calc input/select in copytrading.css so form
   controls look consistent across the site.
   Hero title/lead/eyebrow spacing comes from the shared .hero-standard
   class (base.css).
   ========================================================= */

/* =========================================================
   FORM + CONTACT INFO
   ========================================================= */
.cn-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
}

.cn-form-card,
.cn-info {
  padding: clamp(24px, 4vw, 34px);
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--surface);
}

.cn-form-card h2,
.cn-info h2 {
  margin-bottom: .4em;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}

/* ---------- Alerts ---------- */
.cn-alert {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: .88rem;
  line-height: 1.5;
}

.cn-alert .icon {
  margin-right: 6px;
}

.cn-alert-ok {
  border: 1px solid var(--green-32);
  background: var(--green-12);
  color: var(--text);
}

.cn-alert-err {
  border: 1px solid var(--brand-a-32);
  background: var(--brand-a-12);
  color: var(--text);
}

.cn-alert-err p {
  margin: 0 0 6px;
  font-weight: 650;
}

.cn-alert-err ul {
  margin: 0;
  padding-left: 1.3em;
  list-style: disc;
}

.cn-alert-err li {
  margin-bottom: 2px;
}

/* ---------- Form fields ---------- */
.cn-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.cn-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.cn-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.cn-field:focus-within {
  border-color: var(--blue-65);
  box-shadow: 0 0 0 3px var(--blue-14);
}

.cn-field>.icon {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 1rem;
}

.cn-field input,
.cn-field select {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: .92rem;
  appearance: none;
}

.cn-field select {
  cursor: pointer;
  color-scheme: dark;
}

/* Native dropdown list: inherit the dark theme so options stay readable */
.cn-field select option {
  background: var(--surface-2);
  color: var(--text);
}

.cn-field select option:disabled {
  color: var(--muted);
}

.cn-field select option:checked,
.cn-field select option:hover {
  background: var(--blue-14);
  color: var(--text);
}

.cn-field input::placeholder {
  color: var(--muted);
}

.cn-textarea {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.cn-textarea:focus-within {
  border-color: var(--blue-65);
  box-shadow: 0 0 0 3px var(--blue-14);
}

.cn-textarea>.icon {
  flex: 0 0 auto;
  margin-top: .25em;
  color: var(--muted);
}

.cn-textarea textarea {
  flex: 1;
  min-width: 0;
  min-height: 96px;
  border: 0;
  outline: 0;
  resize: vertical;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: .92rem;
  line-height: 1.6;
}

.cn-textarea textarea::placeholder {
  color: var(--muted);
}

/* Honeypot: kept in the tab order out of view, off-screen rather than
   display:none, so simple bots that skip hidden fields still fill it in. */
.cn-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cn-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
}

.cn-terms input {
  margin-top: .25em;
  accent-color: var(--brand-b);
}

.cn-terms a {
  color: var(--brand-b);
  font-weight: 600;
  text-decoration: none;
}

.cn-terms a:hover {
  text-decoration: underline;
}

.cn-submit {
  justify-self: start;
}

/* ---------- Info panel ---------- */
.cn-info-note {
  margin: 18px 0 14px;
  font-size: .85rem;
  color: var(--muted);
}

.cn-info-list {
  display: grid;
  gap: 16px;
  margin: 0 0 24px;
}

.cn-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.5;
}

.cn-info-list .icon {
  flex: 0 0 auto;
  margin-top: .2em;
  color: var(--brand-b);
}

.cn-info-list a {
  color: var(--text);
  font-weight: 600;
}

.cn-info-list a:hover {
  color: var(--brand-b);
}

.cn-follow-label {
  margin: 0 0 10px;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--head);
}

/* =========================================================
   OFFICE + MAP
   ========================================================= */
/* Section title uses the shared .sec-head (common.css). */
.cn-office {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

.cn-office-card {
  padding: clamp(24px, 4vw, 32px);
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cn-office-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.cn-office-top h3 {
  margin: 0;
}

.cn-office-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    linear-gradient(135deg, var(--brand-a), var(--blue)) border-box;
  border: 1px solid transparent;
  color: var(--brand-b);
  font-size: 1.2rem;
}

.cn-office-card h3 {
  margin: 0 0 10px;
}

.cn-office-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
}

.cn-office-card p a {
  color: var(--text);
  font-weight: 600;
}

.cn-office-card p a:hover {
  color: var(--brand-b);
}

.cn-map {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
}

.cn-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.15) contrast(1.05);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 640px) {
  .cn-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .cn-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
  }

  .cn-office {
    grid-template-columns: 1fr 1.3fr;
  }
}

/* .cn-map {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
}

.cn-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(92%) hue-rotate(180deg) brightness(.95) contrast(.9);
  transition: filter .2s ease;
}

[data-theme="light"] .cn-map iframe {
  filter: none;
} */