/* ===== Contact page ===== */
.ct {
  --ct-navy: #15306b;
  --ct-ink: #0f172a;
  --ct-muted: #64748b;
  --ct-line: #e6e9f0;
  --ct-soft: #f4f7fc;
  --ct-r: 10px;
  --ct-r-sm: 6px;
  --ct-r-lg: 12px;
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(37, 99, 235, .07), transparent 55%),
    #f8fafc;
  padding-bottom: 48px;
}

.ct-hero { padding: 40px 0 20px; }
.ct-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .14);
  font-size: 11px;
  font-weight: 750;
  color: #1d4ed8;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.ct-pill svg { width: 12px; height: 12px; }
.ct-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
  margin: 0 0 12px;
  max-width: 820px;
  color: var(--ct-ink);
  text-wrap: balance;
}
.ct-hero h1 em {
  font-style: normal;
  color: #2563eb;
}
.ct-hero .lead {
  margin: 0;
  font-size: 15.5px;
  color: var(--ct-muted);
  line-height: 1.55;
  max-width: 640px;
}

/* Channels */
.ct-channels { padding: 20px 0 36px; }
.ct-ch-grid,
.ct-ch-grid.is-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.ct-ch {
  background: #fff;
  border: 1px solid var(--ct-line);
  border-radius: var(--ct-r-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 168px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ct-ch:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 24px rgba(15, 48, 107, .07);
  transform: translateY(-1px);
}
.ct-ch-ic {
  width: 40px;
  height: 40px;
  border-radius: var(--ct-r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ct-ch-ic svg { width: 18px; height: 18px; display: block; }
.ct-ch-ic.blue { background: #eff6ff; color: #2563eb; }
.ct-ch-ic.green { background: #ecfdf5; color: #059669; }
.ct-ch-ic.navy { background: #e8eefc; color: #1e3a8a; }
.ct-ch h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.ct-ch p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ct-muted);
  line-height: 1.45;
  flex: 1;
}
.ct-ch-val {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ct-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ct-ch-val svg { width: 14px; height: 14px; }
.ct-ch.is-live .ct-ch-val { color: #059669; }
.ct-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, .45);
  animation: ct-pulse 1.8s infinite;
}
@keyframes ct-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .45); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Main: map left + form right (50/50, equal height) */
.ct-main { padding: 0 0 40px; }
.ct-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.ct-map-panel,
.ct-form {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ct-line);
  border-radius: var(--ct-r-lg);
  padding: 20px;
  box-shadow: 0 10px 28px rgba(15, 48, 107, .05);
  box-sizing: border-box;
}
.ct-map-panel .ct-map-head { margin-bottom: 12px; }
.ct-map-panel .ct-map-frame {
  flex: 1 1 auto;
  min-height: 360px;
  aspect-ratio: auto;
  border-radius: var(--ct-r);
}
.ct-form-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.ct-fields { flex: 1 1 auto; }
.ct-field-grow { flex: 1 1 auto; display: flex; flex-direction: column; }
.ct-field-grow textarea {
  flex: 1 1 auto;
  min-height: 140px;
}
.ct-ai-inline {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 750;
  color: #1e3a8a;
  text-decoration: none;
}
.ct-ai-inline svg { width: 14px; height: 14px; }
.ct-ai-inline:hover { text-decoration: underline; }
.ct-form h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.ct-form .sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ct-muted);
}
.ct-alert {
  border-radius: var(--ct-r-sm);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.ct-alert.ok { background: #ecfdf5; border: 1px solid rgba(16, 185, 129, .28); color: #065f46; }
.ct-alert.err { background: #fef2f2; border: 1px solid rgba(220, 38, 38, .28); color: #991b1b; }

.ct-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.ct-topic {
  appearance: none;
  border: 1.5px solid var(--ct-line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.ct-topic svg { width: 13px; height: 13px; flex-shrink: 0; }
.ct-topic:hover { border-color: #93c5fd; color: #1d4ed8; }
.ct-topic.is-on {
  background: var(--ct-navy);
  border-color: var(--ct-navy);
  color: #fff;
}

.ct-fields { display: grid; gap: 12px; }
.ct-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ct-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ct-field label {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}
.ct-field .req { color: #dc2626; }
.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--ct-line);
  border-radius: var(--ct-r-sm);
  padding: 11px 12px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ct-ink);
  background: #fff;
  outline: none;
}
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus { border-color: #2563eb; }
.ct-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
  width: 100%;
  box-sizing: border-box;
}
.ct-field .hint { font-size: 11px; color: var(--ct-muted); }
.ct-field .val-err { font-size: 11.5px; color: #dc2626; }

.ct-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #eef2f7;
}
.ct-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--ct-muted);
  line-height: 1.4;
  max-width: 420px;
  margin: 0;
}
.ct-check input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: #2563eb;
}
.ct-check a { color: #2563eb; font-weight: 650; }
.ct-submit {
  appearance: none;
  border: 0;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--ct-r);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .24);
  white-space: nowrap;
}
.ct-submit:hover { filter: brightness(1.04); }
.ct-submit svg { width: 16px; height: 16px; }

.ct-map-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
  flex-shrink: 0;
}
.ct-map-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.025em;
}
.ct-map-head p {
  margin: 0;
  font-size: 13px;
  color: var(--ct-muted);
}
.ct-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 750;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
}
.ct-map-link svg { width: 14px; height: 14px; }
.ct-map-link:hover { text-decoration: underline; }
.ct-map-frame {
  overflow: hidden;
  border: 1px solid var(--ct-line);
  background: #e8edf5;
}
.ct-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 360px;
}

/* Departments — premium directory panel (no section title) */
.ct-deps {
  padding: 8px 0 12px;
}
.ct-dep-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background:
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(21, 48, 107, .1);
  border-radius: var(--ct-r-lg);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 48, 107, .06);
}
.ct-dep {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  padding: 18px 16px;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(21, 48, 107, .07);
  border-bottom: 1px solid rgba(21, 48, 107, .07);
  min-height: 88px;
  box-sizing: border-box;
  transition: background .15s ease;
}
.ct-dep:nth-child(3n) { border-right: 0; }
.ct-dep:nth-child(n+4) { border-bottom: 0; }
.ct-dep::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: #2563eb;
  transition: width .15s ease;
}
.ct-dep:hover {
  background: #f4f8ff;
}
.ct-dep:hover::before { width: 3px; }
.ct-dep-ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .15s ease;
}
.ct-dep:hover .ct-dep-ic { transform: scale(1.04); }
.ct-dep-ic svg { width: 18px; height: 18px; display: block; }
.ct-dep-ic.green { background: #ecfdf5; color: #059669; }
.ct-dep-ic.navy { background: #e8eefc; color: #1e3a8a; }
.ct-dep-ic.amber { background: #fffbeb; color: #d97706; }
.ct-dep-ic.rose { background: #fff1f2; color: #e11d48; }
.ct-dep-ic.slate { background: #f1f5f9; color: #475569; }
.ct-dep-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ct-dep-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ct-ink);
  letter-spacing: -.015em;
  line-height: 1.2;
}
.ct-dep-desc {
  font-size: 11.5px;
  color: var(--ct-muted);
  line-height: 1.3;
}
.ct-dep-mail {
  margin-top: 3px;
  font-size: 12px;
  color: #2563eb;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ct-dep-go {
  width: 18px;
  height: 18px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .15s ease, transform .15s ease;
}
.ct-dep-go svg { width: 16px; height: 16px; }
.ct-dep:hover .ct-dep-go {
  color: #2563eb;
  transform: translateX(2px);
}

@media (max-width: 1100px) {
  .ct-ch-grid,
  .ct-ch-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .ct-split { grid-template-columns: 1fr; }
  .ct-map-panel,
  .ct-form { height: auto; }
  .ct-map-panel .ct-map-frame,
  .ct-map-frame iframe { min-height: 280px; }
}
@media (max-width: 900px) {
  .ct-dep-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-dep:nth-child(3n) { border-right: 1px solid rgba(21, 48, 107, .07); }
  .ct-dep:nth-child(2n) { border-right: 0; }
  .ct-dep:nth-child(n+4) { border-bottom: 1px solid rgba(21, 48, 107, .07); }
  .ct-dep:nth-child(n+5) { border-bottom: 0; }
}
@media (max-width: 600px) {
  .ct-ch-grid,
  .ct-ch-grid.is-4 { grid-template-columns: 1fr; }
  .ct-dep-panel { grid-template-columns: 1fr; }
  .ct-dep {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(21, 48, 107, .07);
    min-height: 0;
  }
  .ct-dep:last-child { border-bottom: 0; }
  .ct-row { grid-template-columns: 1fr; }
  .ct-map-panel,
  .ct-form { padding: 16px; }
  .ct-foot { flex-direction: column; align-items: stretch; }
  .ct-submit { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-pulse { animation: none; }
  .ct-ch, .ct-submit { transition: none; }
}
