/* ═══════════════════════════════════════════════════════════════════
   7AZZANI Contact & Dispatch Console — Signal Design System
   Hardware-specular, console aesthetic for direct transmission & communications.
   Scoped to .sg and .cnt- to preserve strict style isolation.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Ambient Glow & Page Backdrop ─── */
.sg.cnt-root {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(52, 211, 153, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 85% 15%, rgba(103, 232, 249, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 15% 45%, rgba(52, 211, 153, 0.04) 0%, transparent 40%),
    linear-gradient(to bottom, transparent, var(--bg));
  position: relative;
}

.sg.cnt-root::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 50%, transparent 100%);
}

.cnt-container {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(6rem, 10vw, 9rem);
}

/* ─── Hero Section ─── */
.cnt-hero {
  text-align: center;
  max-width: 58rem;
  margin-inline: auto;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 3.5vw, 3rem);
}

.cnt-hero .sg-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.22);
  font: 600 0.68rem/1 var(--mono);
  letter-spacing: 0.2em;
  color: var(--green);
  text-transform: uppercase;
}

.cnt-hero .sg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  display: inline-block;
  animation: cnt-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes cnt-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.cnt-hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
  margin-bottom: 1.25rem;
}

.cnt-hero h1 .cnt-gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--green-2) 80%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cnt-hero p.cnt-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 44rem;
  margin-inline: auto;
}

/* ─── Telemetry Ribbon ─── */
.cnt-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: clamp(2.5rem, 4.5vw, 3.5rem);
}

.cnt-telemetry-item {
  padding: 1.1rem 1.25rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(10, 17, 25, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.05) inset;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
  transition: border-color 0.25s, transform 0.25s;
}

.cnt-telemetry-item:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.cnt-telemetry-item .cnt-tel-label {
  font: 600 0.64rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.cnt-telemetry-item .cnt-tel-value {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cnt-telemetry-item .cnt-tel-value .cnt-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.cnt-telemetry-item .cnt-tel-desc {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ─── Two-Column Layout ─── */
.cnt-grid-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* ─── Terminal Dispatch Console (Form) ─── */
.cnt-console-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.07) inset, 0 20px 45px -10px rgba(0, 0, 0, 0.55);
  transition: border-color 0.3s;
}

.cnt-console-card:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
}

.cnt-console-header {
  padding: 1.05rem 1.45rem;
  background: rgba(14, 23, 34, 0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cnt-console-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cnt-ctrl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cnt-ctrl-dot.red { background: #ef4444; opacity: 0.75; }
.cnt-ctrl-dot.yellow { background: #f59e0b; opacity: 0.75; }
.cnt-ctrl-dot.green { background: #10b981; opacity: 0.75; }

.cnt-console-title {
  font: 600 0.72rem/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cnt-console-badge {
  font: 600 0.62rem/1 var(--mono);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  background: rgba(52, 211, 153, 0.1);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cnt-console-badge .badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.cnt-console-body {
  padding: 2.2rem 2.2rem;
}

/* Topic Selector Pills */
.cnt-topic-selector {
  margin-bottom: 1.8rem;
}

.cnt-topic-label {
  display: block;
  font: 600 0.68rem/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.cnt-topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cnt-topic-pill {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font: 500 0.8rem/1 var(--body);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.cnt-topic-pill:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  color: #fff;
  background: rgba(52, 211, 153, 0.05);
}

.cnt-topic-pill.is-active {
  background: rgba(52, 211, 153, 0.12);
  border-color: var(--green);
  color: var(--green);
  font-weight: 600;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.18);
}

/* Form Fields */
.cnt-form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.cnt-form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 600 0.7rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.cnt-form-label span.req {
  color: var(--green);
}

.cnt-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cnt-input-icon {
  position: absolute;
  left: 1.1rem;
  color: var(--dim);
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.2s;
  z-index: 2;
}

.cnt-input,
.cnt-textarea {
  width: 100%;
  background: #060a10;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem 0.9rem 2.85rem;
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.95rem;
  transition: all 0.25s ease;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}

.cnt-textarea {
  padding: 1rem 1rem 1rem 2.85rem;
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.cnt-input:focus,
.cnt-textarea:focus {
  background: #08101a;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.14), inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.cnt-input:focus ~ .cnt-input-icon,
.cnt-textarea:focus ~ .cnt-input-icon {
  color: var(--green);
}

.cnt-input::placeholder,
.cnt-textarea::placeholder {
  color: #4b5563;
}

.cnt-form-help {
  font-size: 0.78rem;
  color: var(--dim);
  margin-top: 0.4rem;
}

.cnt-field-error {
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Transmit Button */
.cnt-submit-btn {
  width: 100%;
  padding: 1.1rem 1.6rem;
  border-radius: 0.75rem;
  border: 1px solid var(--green);
  background: var(--green);
  color: #04110c;
  font: 700 0.92rem/1 var(--body);
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(52, 211, 153, 0.25);
}

.cnt-submit-btn:hover {
  background: var(--green-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(52, 211, 153, 0.4);
}

.cnt-submit-btn:active {
  transform: translateY(0);
}

.cnt-submit-btn .cnt-btn-pulse {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(52, 211, 153, 0.7);
  animation: sg-pulse 2.2s infinite;
  pointer-events: none;
}

/* Success & Message Alerts */
.cnt-alert {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.5;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green-2);
}

.cnt-alert-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── Command Column (Right) ─── */
.cnt-command-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Studio & Clock Telemetry Card */
.cnt-studio-card {
  padding: 1.5rem 1.65rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(14, 23, 34, 0.9) 0%, rgba(10, 17, 25, 0.95) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.07) inset, 0 15px 35px rgba(0, 0, 0, 0.4);
}

.cnt-studio-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.12), transparent 70%);
  pointer-events: none;
}

.cnt-studio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cnt-studio-label {
  font: 600 0.65rem/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cnt-clock-wrapper {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.cnt-clock-digits {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
}

.cnt-clock-zone {
  font: 600 0.72rem/1 var(--mono);
  color: var(--muted);
  letter-spacing: 0.12em;
}

.cnt-clock-date {
  font: 500 0.75rem/1 var(--mono);
  color: var(--dim);
  margin-bottom: 0.85rem;
}

.cnt-duty-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.cnt-duty-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

/* Direct Channel Cards */
.cnt-channel-list {
  display: grid;
  gap: 0.9rem;
}

.cnt-channel-card {
  padding: 1.15rem 1.35rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.04) inset;
}

.cnt-channel-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  background: var(--panel-2);
}

.cnt-channel-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: var(--green);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.cnt-channel-card:hover .cnt-channel-icon-wrap {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(52, 211, 153, 0.1);
  color: var(--green-2);
}

.cnt-channel-meta {
  flex: 1;
  min-width: 0;
}

.cnt-channel-role {
  font: 600 0.62rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.35rem;
}

.cnt-channel-email {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.cnt-channel-email:hover {
  color: var(--green);
}

.cnt-channel-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cnt-copy-btn {
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font: 600 0.66rem/1 var(--mono);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cnt-copy-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(52, 211, 153, 0.08);
}

/* Social & Ecosystem Command Matrix */
.cnt-social-card {
  padding: 1.4rem 1.6rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.04) inset;
}

.cnt-social-card .cnt-social-label {
  font: 600 0.65rem/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cnt-social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.cnt-social-item {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s ease;
}

.cnt-social-item:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(52, 211, 153, 0.05);
  transform: translateY(-2px);
}

.cnt-social-item i {
  font-size: 1.25rem;
  color: var(--muted);
  transition: color 0.2s;
}

.cnt-social-item:hover i {
  color: var(--green);
}

.cnt-social-info b {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

.cnt-social-info span {
  font: 500 0.68rem/1 var(--mono);
  color: var(--dim);
}

/* ─── Section 02 · Pre-Flight Intelligence (Quick Triage FAQ) ─── */
.cnt-triage-section {
  margin-top: clamp(4.5rem, 8vw, 7rem);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.cnt-triage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.2rem;
}

.cnt-triage-card {
  padding: 1.6rem 1.75rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.04) inset;
}

.cnt-triage-card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.08) inset, 0 15px 30px rgba(0, 0, 0, 0.35);
}

.cnt-triage-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.cnt-triage-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.cnt-triage-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.cnt-triage-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.cnt-triage-link {
  font: 600 0.72rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  transition: gap 0.2s, color 0.2s;
}

.cnt-triage-link:hover {
  gap: 0.65rem;
  color: #fff;
}

/* ─── Section 03 · Direct Escalation Banner ─── */
.cnt-escalate-banner {
  margin-top: clamp(4.5rem, 8vw, 6.5rem);
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
  padding: clamp(2.2rem, 4.5vw, 3.2rem) clamp(2.2rem, 5vw, 3.8rem);
  border-radius: var(--r);
  border: 1px solid rgba(52, 211, 153, 0.25);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.09) 0%, rgba(10, 17, 25, 0.98) 60%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.8rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.08) inset, 0 20px 45px -10px rgba(0, 0, 0, 0.6);
}

.cnt-escalate-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.16), transparent 70%);
  pointer-events: none;
}

.cnt-escalate-content {
  position: relative;
  z-index: 1;
}

.cnt-escalate-content h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.cnt-escalate-content p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 38rem;
  line-height: 1.6;
}

.cnt-escalate-banner .sg-actions {
  position: relative;
  z-index: 1;
}

/* ─── Responsive Adjustments ─── */
@media (max-width: 1024px) {
  .cnt-grid-main {
    grid-template-columns: 1fr;
  }
  .cnt-telemetry-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cnt-telemetry-strip {
    grid-template-columns: 1fr;
  }
  .cnt-console-body {
    padding: 1.5rem 1.25rem;
  }
  .cnt-social-grid {
    grid-template-columns: 1fr;
  }
  .cnt-triage-grid {
    grid-template-columns: 1fr;
  }
  .cnt-escalate-banner {
    padding: 1.8rem 1.4rem;
  }
}
