/* ─────────────────────────────────────────────
   CONTACT PAGE  —  contact.css
───────────────────────────────────────────── */


/* ══ WRAPPER ═════════════════════════════════════════════════ */

.cn-wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 80px);
}


/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */

.cn-hero {
  padding-block: clamp(52px, 8vw, 88px);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}

.cn-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(37,99,235,.045) 0%, transparent 65%);
  pointer-events: none;
}

.cn-hero .cn-wrap {
  position: relative;
  z-index: 1;
}

.cn-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  border: 1px solid rgba(37,99,235,.18);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  margin-bottom: 20px;
}

.cn-hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
  flex-shrink: 0;
}

.cn-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -.03em;
  color: var(--c-title);
  margin: 0 0 16px;
}

.cn-hero__title strong {
  font-weight: 700;
  color: var(--c-primary);
}

.cn-hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(.9375rem, 1.6vw, 1.0625rem);
  line-height: 1.75;
  color: var(--c-muted);
  max-width: 52ch;
  margin: 0;
}


/* ══════════════════════════════════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════════════════════════════════ */

.cn-main {
  padding-block: clamp(52px, 8vw, 96px);
  background: var(--c-surface);
}

.cn-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}


/* ══════════════════════════════════════════════════════════════
   FORM
══════════════════════════════════════════════════════════════ */

.cn-form-col {
  min-width: 0;
}

.cn-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ── Rows ── */

.cn-form__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cn-form__row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* ── Fields ── */

.cn-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cn-form__label {
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--c-body);
  line-height: 1.4;
}

.cn-form__req {
  color: var(--c-accent);
  margin-left: 2px;
}

.cn-form__input {
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--c-title);
  background: var(--c-bg);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  width: 100%;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.cn-form__input::placeholder {
  color: var(--c-muted);
  opacity: .7;
}

.cn-form__input:hover {
  border-color: rgba(37,99,235,.35);
  background: var(--c-surface);
}

.cn-form__input:focus {
  border-color: var(--c-primary);
  background: var(--c-surface);
  box-shadow: var(--focus-ring);
}

.cn-form__textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.65;
}

/* ── Footer row ── */

.cn-form__footer {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-2);
}

.cn-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--c-primary);
  border: none;
  border-radius: var(--radius-full);
  padding: 13px 28px;
  cursor: pointer;
  transition: background .18s ease, transform .15s ease, box-shadow .18s ease;
  white-space: nowrap;
}

.cn-form__submit svg {
  transition: transform .18s ease;
  flex-shrink: 0;
}

.cn-form__submit:hover {
  background: var(--c-primary-dark);
  box-shadow: 0 4px 14px rgba(37,99,235,.28);
}

.cn-form__submit:hover svg {
  transform: translateX(3px);
}

.cn-form__submit:active {
  transform: scale(.98);
}

.cn-form__submit:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.cn-form__note {
  font-family: var(--font-body);
  font-size: .8rem;
  color: var(--c-muted);
  margin: 0;
}

/* ── Success state ── */

.cn-success {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: rgba(16,185,129,.07);
  border: 1px solid rgba(16,185,129,.22);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
}

.cn-success__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(16,185,129,.14);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cn-success__heading {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-title);
  margin: 0 0 4px;
}

.cn-success__body {
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--c-body);
  margin: 0;
}

/* ── Error state ── */

.cn-error {
  background: rgba(239,68,68,.07);
  border: 1px solid rgba(239,68,68,.22);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: .9rem;
  color: #b91c1c;
}


/* ══════════════════════════════════════════════════════════════
   INFO CARD
══════════════════════════════════════════════════════════════ */

.cn-info-col {
  position: sticky;
  top: 32px;
}

.cn-info__card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cn-info__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-block: var(--space-5);
}

.cn-info__item + .cn-info__item {
  border-top: 1px solid var(--c-border);
}

.cn-info__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.cn-info__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cn-info__label {
  font-family: var(--font-body);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--c-muted);
  line-height: 1.4;
}

.cn-info__value {
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--c-title);
  line-height: 1.5;
  text-decoration: none;
  word-break: break-word;
  transition: color .15s;
}

a.cn-info__value:hover {
  color: var(--c-primary);
}


/* ══ RESPONSIVE ══════════════════════════════════════════════ */

/* ── Tablet ≤ 860px ── */
@media (max-width: 860px) {

  .cn-layout {
    grid-template-columns: 1fr;
    gap: clamp(36px, 6vw, 56px);
  }

  .cn-info-col {
    position: static;
    order: -1;          
  }

  .cn-info__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: var(--space-5);
  }

  .cn-info__item {
    padding: var(--space-4);
  }

  .cn-info__item + .cn-info__item {
    border-top: none;
  }

  .cn-info__item:nth-child(n+3) {
    border-top: 1px solid var(--c-border);
  }

  .cn-info__item:nth-child(odd) {
    border-right: 1px solid var(--c-border);
  }
}

/* ── Tablet narrow ≤ 640px ── */
@media (max-width: 640px) {

  .cn-form__row--2col {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile ≤ 520px ── */
@media (max-width: 520px) {

  .cn-info__card {
    grid-template-columns: 1fr;
  }

  .cn-info__item:nth-child(odd) {
    border-right: none;
  }

  .cn-info__item:nth-child(n+3) {
    border-top: 1px solid var(--c-border);
  }

  .cn-info__item + .cn-info__item {
    border-top: 1px solid var(--c-border);
  }

  .cn-form__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .cn-form__submit {
    width: 100%;
    justify-content: center;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}