/* ============================================================
   Contact Page (GCI-TPs) — contact.css
   - Clean, professional, interactive
   - Accent colors STRICTLY Blue & Green (Logo Palette)
   - Remapped all legacy color classes to brand palette
   Namespace: contactx / cx-
   ============================================================ */

.contactx {
  /* --- Brand Palette Definitions --- */
  --cx-blue: #2880c2;   --cx-blue-rgb: 40, 128, 194;
  --cx-green: #81c241;  --cx-green-rgb: 129, 194, 65;

  /* Neutrals */
  --cx-bg: #f6f9fc;
  --cx-card: rgba(255,255,255,.78);
  --cx-border: rgba(18,38,63,.10);
  --cx-text: #0f172a;
  --cx-muted: rgba(15,23,42,.65);
  --cx-shadow: 0 18px 45px rgba(15,23,42,.10);
  --cx-shadow-soft: 0 10px 26px rgba(15,23,42,.08);
  --cx-radius: 20px;

  /* Default accent (Fallback to Blue) */
  --cx-accent: var(--cx-blue);
  --cx-accent-rgb: var(--cx-blue-rgb);
}

.contactx::before {
  position: fixed;
  inset: 0;
  z-index: -1;
}

/* --- Accent Helper Classes (Remapped to Blue/Green) --- */

/* Cool tones -> Blue */
.cx-accent-cyan { --cx-accent: var(--cx-blue);  --cx-accent-rgb: var(--cx-blue-rgb); }
.cx-accent-teal { --cx-accent: var(--cx-blue);  --cx-accent-rgb: var(--cx-blue-rgb); }

/* Warm/Nature tones -> Green */
.cx-accent-green { --cx-accent: var(--cx-green); --cx-accent-rgb: var(--cx-green-rgb); }
.cx-accent-olive { --cx-accent: var(--cx-green); --cx-accent-rgb: var(--cx-green-rgb); }
.cx-accent-amber { --cx-accent: var(--cx-green); --cx-accent-rgb: var(--cx-green-rgb); }
.cx-accent-orange{ --cx-accent: var(--cx-green); --cx-accent-rgb: var(--cx-green-rgb); }
.cx-accent-coral { --cx-accent: var(--cx-green); --cx-accent-rgb: var(--cx-green-rgb); }

/* --- Form-label Icon Colors (Remapped) --- */
.cx-i { width: 1.05em; text-align: center; margin-right: .45rem; }

/* Cool icons -> Blue */
.cx-i-cyan { color: var(--cx-blue); }
.cx-i-teal { color: var(--cx-blue); }

/* Warm icons -> Green */
.cx-i-green { color: var(--cx-green); }
.cx-i-olive { color: var(--cx-green); }
.cx-i-amber { color: var(--cx-green); }
.cx-i-orange{ color: var(--cx-green); }
.cx-i-coral { color: var(--cx-green); }


/* --- Layout & Components --- */

/* Toolbar */
.cx-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 14px;
}
.cx-search {
  flex: 1 1 320px;
  position: relative;
}
.cx-search input {
  width: 100%;
  border-radius: 999px;
  padding: 11px 14px 11px 40px;
  border: 1px solid var(--cx-border);
  background: rgba(255,255,255,.88);
  outline: none;
  box-shadow: var(--cx-shadow-soft);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.cx-search input:focus {
  border-color: rgba(var(--cx-blue-rgb), 0.4);
  box-shadow: 0 0 0 4px rgba(var(--cx-blue-rgb), 0.1);
}
.cx-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(15,23,42,.45);
}

.cx-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cx-chip {
  border-radius: 999px;
  border: 1px solid var(--cx-border);
  background: rgba(255,255,255,.80);
  padding: 9px 12px;
  cursor: pointer;
  user-select: none;
  color: rgba(15,23,42,.72);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--cx-shadow-soft);
  transition: all 0.2s ease;
}
.cx-chip i { color: var(--cx-accent); }

/* Active Chip State */
.cx-chip.active {
  border-color: rgba(var(--cx-accent-rgb), .35);
  background: rgba(var(--cx-accent-rgb), .12);
  color: var(--cx-text);
}
.cx-chip:hover {
  transform: translateY(-1px);
}

/* Cards */
.cx-card {
  height: 100%;
  border-radius: var(--cx-radius);
  border: 1px solid var(--cx-border);
  background: var(--cx-card);
  backdrop-filter: blur(10px);
  box-shadow: var(--cx-shadow-soft);
  overflow: hidden;
  position: relative;
  transform: translateY(8px);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease, box-shadow .35s ease;
}
.cx-card.is-visible { transform: translateY(0); opacity: 1; }
.cx-card:hover { box-shadow: var(--cx-shadow); transform: translateY(-2px); }

/* Card Top Border Accent */
.cx-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: rgba(var(--cx-accent-rgb), .92);
}

/* Clickable profile header */
.cx-person-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 0 18px;
}
.cx-person-link:focus-visible {
  outline: 3px solid rgba(var(--cx-accent-rgb), .25);
  outline-offset: 4px;
  border-radius: calc(var(--cx-radius) - 4px);
}

.cx-avatar {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 10px 20px rgba(15,23,42,.12);
  background: rgba(255,255,255,.86);
  flex: 0 0 auto;
}
.cx-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cx-name {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--cx-text);
  line-height: 1.15;
  font-size: 1.15rem;
}
.cx-role {
  margin: 2px 0 0;
  color: var(--cx-muted);
  font-size: .65rem;
  font-weight: 600;
}

.cx-body { padding: 12px 18px 18px 18px; }

/* Email pill (click to copy) */
.cx-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 14px;
  border: 1px solid rgba(var(--cx-accent-rgb), .18);
  background: rgba(255,255,255,.88);
  cursor: pointer;
  padding: 8px 12px;
  transition: background 0.2s ease;
}
.cx-email span {
  font-weight: 800;
  color: rgba(15,23,42,.86);
  word-break: break-word;
  font-size: .65rem;
}
.cx-email small {
  color: rgba(15,23,42,.55);
  font-weight: 650;
}
.cx-email:hover {
  background: rgba(255,255,255,.96);
}
.cx-email:focus-visible {
  outline: 3px solid rgba(var(--cx-accent-rgb), .25);
  outline-offset: 3px;
}

/* Details: simple, small, neutral */
.cx-details {
  margin-top: 10px;
  font-size: .25rem;
}
.cx-details summary {
  font-size: .65rem;
  color: rgba(15,23,42,.62);
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.cx-details summary::-webkit-details-marker { display: none; }
.cx-details summary::before {
  content: "▸";
  margin-right: .45rem;
  color: rgba(15,23,42,.45);
  display: inline-block;
  width: 1em;
}
.cx-details[open] summary::before { content: "▾"; }
.cx-details .cx-details-text {
  font-size: .6rem;
  color: rgba(15,23,42,.72);
  margin: .35rem 0 0 .05rem;
  padding-left: 1.45rem;
}

/* Side panel */
.cx-side {
  border-radius: calc(var(--cx-radius) + 6px);
  border: 1px solid var(--cx-border);
  background: rgba(255,255,255,.86);
  box-shadow: var(--cx-shadow);
  overflow: hidden;
  position: sticky;
  top: 116px; /* Adjusted to sit nicely below fixed navbar */
}
.cx-side-top { padding: 18px 18px 0 18px; }
.cx-side h3 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: var(--cx-text);
}
.cx-side p { margin: 8px 0 0; color: var(--cx-muted); }
.cx-side-body { padding: 14px 18px 18px 18px; }

.cx-form .form-control,
.cx-form .form-select {
  border-radius: 14px;
  border: 1px solid var(--cx-border);
  background: rgba(255,255,255,.96);
}
.cx-form .form-control:focus,
.cx-form .form-select:focus {
  border-color: var(--cx-blue);
  box-shadow: 0 0 0 0.2rem rgba(40, 128, 194, 0.15);
}

.cx-side-footer {
  padding: 14px 18px 18px 18px;
  border-top: 1px solid rgba(15,23,42,.08);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.cx-mini {
  color: rgba(15,23,42,.62);
  font-size: .9rem;
}

/* Toast */
.cx-toast-wrap {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1080;
}
.cx-toast {
  border-radius: 14px;
  border: 1px solid var(--cx-border);
  background: rgba(255,255,255,.92);
  box-shadow: var(--cx-shadow);
  backdrop-filter: blur(10px);
}

@media (max-width: 991.98px) {
  .cx-side { position: static; }
}





  /* =========================================================
     Premium Contact Cards Redesign
     ========================================================= */
  .cx-card-premium {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    text-decoration: none;
    color: inherit;
  }

  /* Colorful top border for each card */
  .cx-card-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-blue, #2880c2), var(--brand-green, #81c241));
    opacity: 0.8;
    transition: opacity 0.3s ease;
  }

  .cx-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border-color: rgba(40, 128, 194, 0.3);
  }

  .cx-card-premium:hover::before {
    opacity: 1;
  }

  /* Left side: Avatar and Role */
  .cx-card-left {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
  }

  /* Avatar with gradient ring */
  .cx-avatar-wrap {
    width: 95px; 
    height: 95px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--brand-blue, #2880c2), var(--brand-green, #81c241));
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
  }

  .cx-avatar-wrap img {
    width: 100%; 
    height: 100%; 
    border-radius: 50%; 
    border: 3px solid #ffffff; 
    object-fit: cover;
  }

  .cx-name-wrap h3 {
    margin: 0 0 4px 0;
    font-weight: 800;
    font-size: 1.25rem;
    color: rgba(15, 23, 42, 0.9);
  }

  .cx-name-wrap p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-blue, #2880c2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Right side: Contact Details */
  .cx-card-right {
    padding: 24px;
    background: rgba(15, 23, 42, 0.015);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1.2;
  }

  /* Inquiries text */
  .cx-expertise {
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.7);
    margin-bottom: 16px;
    line-height: 1.5;
  }
  .cx-expertise strong {
    color: rgba(15, 23, 42, 0.9);
  }

  /* Email Box with inline Copy Button */
  .cx-email-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    padding: 6px 6px 6px 16px;
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.02);
  }

  .cx-email-text {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.8);
  }

  .cx-copy-btn {
    background: rgba(40, 128, 194, 0.08);
    border: 1px solid rgba(40, 128, 194, 0.2);
    color: var(--brand-blue, #2880c2);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex; 
    align-items: center; 
    gap: 6px;
    transition: all 0.2s ease;
  }

  .cx-copy-btn:hover {
    background: var(--brand-blue, #2880c2);
    color: #ffffff;
  }

  /* Copied state feedback */
  .cx-copy-btn.copied {
    background: rgba(129, 194, 65, 0.15);
    color: #3b7a1d;
    border-color: rgba(129, 194, 65, 0.4);
  }

  /* Desktop Horizontal Layout */
  @media (min-width: 992px) {
    .cx-card-premium {
      flex-direction: row;
    }
    .cx-card-right {
      border-top: none;
      border-left: 1px solid rgba(15, 23, 42, 0.06);
    }
  }

  /* =========================================================
     Hero Section Adjustments (More compact & buttons moved up)
     ========================================================= */
  .cx-hero {
    padding: 20px 28px !important;
  }
  .cx-hero h1 {
    margin: 8px 0 4px 0 !important;
  }
  .cx-hero p {
    margin-bottom: 8px !important; /* Reduced to pull buttons higher */
  }
  .cx-hero-actions {
    margin-top: -8px !important; /* Negative margin pulls buttons up one line */
  }

  /* =========================================================
     Quick Message Form - Inline Layout
     ========================================================= */
  .cx-form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
  }

  .cx-form-row.align-top {
    align-items: flex-start;
  }

  /* Fixed width for labels to keep inputs aligned */
  .cx-form-row label {
    flex: 0 0 85px; 
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.85);
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .cx-form-row label i {
    color: var(--brand-blue, #2880c2);
    width: 14px;
    text-align: center;
  }

  .cx-form-row .cx-input-wrap {
    flex: 1;
    min-width: 0;
  }

  /* Smaller, sleeker inputs for the sidebar */
  .cx-form-row .form-control, 
  .cx-form-row .form-select {
    border-radius: 10px;
    font-size: 0.85rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
  }

  .cx-form-row .form-control:focus, 
  .cx-form-row .form-select:focus {
    border-color: var(--brand-blue, #2880c2);
    box-shadow: 0 0 0 3px rgba(40, 128, 194, 0.12);
  }