/* ===== Contact Page: Comms Hub ===== */
.comms-hub {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  margin-top: 40px;
  align-items: flex-start;
}

.comms-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 100px; /* offset for header */
}

.comms-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--glass-bg);
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--muted);
  transition: all 0.25s ease;
}
.comms-channel svg {
  width: 22px;
  height: 22px;
  stroke: var(--muted);
  flex-shrink: 0;
  transition: stroke 0.25s ease;
}
.comms-channel:hover {
  color: var(--ink);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(0,0,0,0.1);
}
.comms-channel.is-active {
  color: var(--ink);
  background: var(--accent-base);
  border-color: var(--accent-base);
  box-shadow: 0 5px 20px -5px var(--accent-glow);
}
.comms-channel.is-active svg { stroke: var(--ink); }

.comms-display {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 40px;
}

.comms-content { display: none; animation: fadeIn 0.4s ease; }
.comms-content.is-active { display: block; }
.comms-content h3 { font-size: 1.6rem; margin-bottom: 10px; color: var(--ink); }
.comms-content p { margin-bottom: 25px; line-height: 1.7; color: var(--muted); }

/* Form styling */
.contact-form .form-group { margin-bottom: 18px; }
.contact-form label {
  display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 12px 16px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg);
  font-family: 'Inter', sans-serif; font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--accent-base); box-shadow: 0 0 0 3px var(--accent-glow);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

/* BELOW-FIELD messages */
.field-msg {
  margin-top: 6px;
  font-size: .93rem;
  line-height: 1.28;
  min-height: 1.1em; /* no layout shift when empty */
}
.field-msg[data-tone="error"]   { color: #c53030; }
.field-msg[data-tone="success"] { color: #1f9d55; }
.field-msg[data-tone="info"]    { color: #4a5568; }

/* Global form status (centered) */
.mx-form .form-status {
  margin-top: .8rem; font-size: .95rem; text-align: center; min-height: 1.1em;
}
.mx-form .form-status[data-tone="success"] { color: #1f9d55; }
.mx-form .form-status[data-tone="error"]   { color: #c53030; }
.mx-form .form-status[data-tone="info"]    { color: #4a5568; }
.mx-form button.is-loading { opacity: .7; pointer-events: none; }

/* Hide invisible Turnstile footprint */
.cf-turnstile { width:0; height:0; overflow:hidden; }

/* Simple fadeIn used above */
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px);} to { opacity: 1; transform: none;} }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .comms-display { padding: 25px 30px; }
}
@media (max-width: 992px) {
  .comms-hub { grid-template-columns: 1fr; }
  .comms-selector {
    flex-direction: row; overflow-x: auto; top: auto; position: relative;
    gap: 10px; margin-bottom: 15px; padding-bottom: 8px;
  }
  .comms-channel { flex-shrink: 0; white-space: nowrap; }
}
@media (max-width: 600px) {
  .comms-channel { padding: 12px 14px; font-size: 0.9rem; }
  .comms-display { padding: 20px; }
  .comms-content h3 { font-size: 1.4rem; }
}
