/* Contact / Community Hub — page-scoped premium styling.
 * Variables are kept local (--ct-*) so the rest of the site is unaffected. */

/* Reset: ensure the [hidden] attribute always wins against display:grid /
   inline-flex on .ct-form / .ct-btn. Without this the form and the spinner
   stay visible after submission. */
[hidden] { display: none !important; }

:root {
  --ct-bg:        #020817;
  --ct-card:      rgba(8, 24, 39, 0.72);
  --ct-card-2:    rgba(13, 34, 54, 0.62);
  --ct-border:    rgba(255, 255, 255, 0.10);
  --ct-border-2:  rgba(255, 255, 255, 0.18);
  --ct-primary:   #6EF3E7;
  --ct-accent:    #7C8CFF;
  --ct-wa:        #25D366;
  --ct-wa-2:      #128C7E;
  --ct-text:      #F8FAFC;
  --ct-muted:     #94A3B8;
  --ct-soft:      #CBD5E1;
  --ct-success:   #77E6A6;
  --ct-error:     #FB7185;
}
[data-theme="light"] {
  --ct-card:      rgba(255, 255, 255, 0.86);
  --ct-card-2:    rgba(248, 250, 252, 0.92);
  --ct-border:    rgba(15, 23, 42, 0.10);
  --ct-border-2:  rgba(15, 23, 42, 0.18);
  --ct-text:      #0b1628;
  --ct-muted:     #5b6b80;
  --ct-soft:      #334155;
}

.ct-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.6rem 0 4rem;
  color: var(--ct-text);
}

/* Theme toggle — floating top-right, just under the navbar */
.ct-theme-btn {
  position: fixed;
  top: 84px;
  right: 1rem;
  z-index: 60;
  width: 42px; height: 42px;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  background: var(--ct-card);
  border: 1px solid var(--ct-border-2);
  color: var(--ct-text);
  cursor: pointer;
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 14px 40px -16px rgba(0,0,0,.55);
  transition: transform .18s, color .2s, border-color .2s, background .2s;
}
.ct-theme-btn:hover {
  transform: translateY(-1px);
  color: var(--ct-primary);
  border-color: var(--ct-primary);
}
.ct-theme-btn svg { width: 18px; height: 18px; }
.ct-theme-btn .ct-theme-sun  { display: none; }
.ct-theme-btn .ct-theme-moon { display: block; }
[data-theme="light"] .ct-theme-btn .ct-theme-sun  { display: block; }
[data-theme="light"] .ct-theme-btn .ct-theme-moon { display: none; }
@media (max-width: 640px) {
  .ct-theme-btn { top: 72px; right: .75rem; width: 38px; height: 38px; }
}

.ct-field-wide { grid-column: 1 / -1; }

/* ---------- Hero ---------- */
.ct-hero { text-align: center; margin-bottom: 2.4rem; }
.ct-title {
  font-family: "Unbounded", "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.4rem 0 0.7rem;
  line-height: 1.12;
}
.ct-grad {
  background: linear-gradient(to right, #FF6B6B, #6B66FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ct-sub {
  max-width: 760px;
  margin: 0 auto 1.2rem;
  color: var(--ct-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}
.ct-sub strong { color: var(--ct-text); font-weight: 600; }
.ct-badges {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .55rem; list-style: none; padding: 0; margin: 0;
}
.ct-badges li {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .42rem .85rem; border-radius: 999px;
  background: var(--ct-card-2);
  border: 1px solid var(--ct-border);
  font-size: .82rem; color: var(--ct-soft);
  backdrop-filter: blur(10px);
}
.ct-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ct-primary), var(--ct-accent));
  box-shadow: 0 0 12px var(--ct-primary);
}

/* ---------- Split hub layout ---------- */
.ct-hub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: start;
}
.ct-col { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }

/* ---------- Card base ---------- */
.ct-card {
  position: relative;
  background: var(--ct-card);
  border: 1px solid var(--ct-border);
  border-radius: 22px;
  padding: 1.4rem 1.5rem;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.55),
              0 0 0 1px var(--ct-border) inset;
  overflow: hidden;
}
.ct-card::before {
  content:""; position: absolute; inset: -1px;
  border-radius: 22px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(110, 243, 231, .14), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(124, 140, 255, .10), transparent 42%);
}
.ct-card > * { position: relative; z-index: 1; }

.ct-card-head {
  display: flex; align-items: flex-start; gap: .9rem;
  margin-bottom: .8rem;
}
.ct-card-head h2 {
  margin: .3rem 0 0; font-size: 1.18rem; font-weight: 700;
  letter-spacing: -.01em;
}
.ct-pill {
  display: inline-block;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ct-muted);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--ct-border);
  padding: .22rem .5rem;
  border-radius: 999px;
}
.ct-pill-wa {
  color: var(--ct-wa);
  background: rgba(37, 211, 102, .10);
  border-color: rgba(37, 211, 102, .28);
}

/* ---------- WhatsApp cards ---------- */
.ct-wa::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 211, 102, .14), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(37, 211, 102, .08), transparent 50%);
}
.ct-wa-icon {
  position: relative;
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 14px;
  display: inline-grid; place-items: center;
  background: rgba(37,211,102,.14);
  color: var(--ct-wa);
  border: 1px solid rgba(37,211,102,.3);
}
.ct-wa-icon svg { width: 22px; height: 22px; }
/* Subtle "live" pulse on the Channel icon only */
.ct-pulse {
  position: absolute; inset: -2px; border-radius: 16px;
  box-shadow: 0 0 0 0 rgba(37,211,102,.55);
  animation: ctPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes ctPulse {
  0%   { box-shadow: 0 0 0 0    rgba(37,211,102,.45); }
  70%  { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0    rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) {
  .ct-pulse { animation: none; }
}

.ct-card-body { margin: 0 0 .9rem; color: var(--ct-soft); line-height: 1.55; font-size: .94rem; }

.ct-best {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.ct-best li {
  font-size: .78rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--ct-border);
  color: var(--ct-soft);
}

/* ---------- Buttons ---------- */
.ct-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .78rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 .94rem/1 "Plus Jakarta Sans", inherit;
  cursor: pointer; text-decoration: none;
  color: inherit;
  transition: transform .15s, background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.ct-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.ct-btn .ct-arrow { width: 16px; height: 16px; transition: transform .2s; }
.ct-btn:hover .ct-arrow { transform: translateX(3px); }

.ct-btn-wa {
  background: linear-gradient(135deg, var(--ct-wa), var(--ct-wa-2));
  color: #052029;
  box-shadow: 0 14px 32px -14px rgba(37,211,102,.55);
}
.ct-btn-wa:hover { transform: translateY(-1px); box-shadow: 0 18px 38px -14px rgba(37,211,102,.75); }
.ct-btn-wa svg:first-child { color: #052029; }

.ct-btn.primary {
  background: linear-gradient(135deg, var(--ct-primary), #a7f3d0);
  color: #052029;
  box-shadow: 0 14px 32px -14px rgba(110,243,231,.55);
}
.ct-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 18px 38px -14px rgba(110,243,231,.75); }
.ct-btn.primary:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.ct-btn.ghost {
  background: rgba(255,255,255,.03);
  color: var(--ct-text);
  border-color: var(--ct-border-2);
}
.ct-btn.ghost:hover { background: rgba(255,255,255,.07); border-color: var(--ct-primary); color: var(--ct-primary); }

.ct-spin { animation: ctspin 1s linear infinite; color: currentColor; }
@keyframes ctspin { to { transform: rotate(360deg); } }

/* ---------- Channel vs Group compare ---------- */
.ct-compare {
  padding: 1.1rem 1.3rem;
  background: var(--ct-card-2);
  border: 1px solid var(--ct-border);
  border-radius: 18px;
}
.ct-compare h3 {
  margin: 0 0 .9rem; font-size: 1rem; font-weight: 700;
  color: var(--ct-text);
}
.ct-compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.ct-compare h4 {
  margin: 0 0 .5rem; font-size: .85rem; font-weight: 700;
  color: var(--ct-soft);
}
.ct-compare ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .35rem;
}
.ct-compare li {
  font-size: .86rem; color: var(--ct-soft);
  padding-left: 1rem; position: relative;
}
.ct-compare li::before {
  content: "›"; position: absolute; left: 0; top: -1px;
  color: var(--ct-wa); font-weight: 700;
}
.ct-wa-color { color: var(--ct-wa); }

/* ---------- Guidelines ---------- */
.ct-rules {
  padding: 1.1rem 1.3rem;
  background: var(--ct-card-2);
  border: 1px solid var(--ct-border);
  border-radius: 18px;
}
.ct-rules h3 {
  margin: 0 0 .7rem; font-size: 1rem; font-weight: 700;
}
.ct-rules ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .55rem;
}
.ct-rules li {
  font-size: .88rem; color: var(--ct-soft); line-height: 1.5;
  padding-left: 1.2rem; position: relative;
}
.ct-rules li::before {
  content: "•"; position: absolute; left: .25rem; top: -2px;
  color: var(--ct-primary); font-size: 1.2rem; line-height: 1;
}

/* ---------- Employment News subscription ---------- */
.ct-subscribe {
  position: relative;
  overflow: hidden;
  padding: 4rem 1.3rem 1.1rem;   /* extra top room for the masthead band */
  background: var(--ct-card-2);
  border: 1px solid var(--ct-border);
  border-radius: 18px;
}
/* Employment News masthead as a soft header band across the top; the card
   content sits below it (via padding-top) so nothing overlaps the text. */
.ct-subscribe::before {
  content: "";
  position: absolute;
  top: 1rem; left: 1.3rem; right: 1.3rem;
  height: 2.6rem;
  background: url("/assets/brand/employment-news-masthead.jpg") center / contain no-repeat;
  opacity: .6;
  pointer-events: none;
}
.ct-subscribe > * { position: relative; z-index: 1; }
.ct-sub-head { display: flex; align-items: center; gap: .85rem; margin-bottom: .7rem; }
.ct-sub-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 14px; display: inline-grid; place-items: center;
  background: rgba(124,140,255,.12); color: var(--ct-accent);
  border: 1px solid rgba(124,140,255,.28);
}
.ct-sub-icon svg { width: 22px; height: 22px; }
.ct-sub-head h3 { margin: .3rem 0 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.ct-sub-text { margin: 0 0 .85rem; color: var(--ct-soft); font-size: .9rem; line-height: 1.55; }
.ct-sub-list {
  list-style: none; padding: 0; margin: 0 0 1.05rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.ct-sub-list li {
  font-size: .9rem; color: var(--ct-soft);
  padding-left: 1.7rem; position: relative; line-height: 1.4;
}
.ct-sub-list li::before {
  content: "✓"; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(119,230,166,.16); color: var(--ct-success);
  font-size: .68rem; font-weight: 700;
}
.ct-subscribe .ct-btn { width: 100%; justify-content: center; }

/* ---------- Feedback form ---------- */
.ct-form-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 14px;
  display: inline-grid; place-items: center;
  background: rgba(110,243,231,.12);
  color: var(--ct-primary);
  border: 1px solid rgba(110,243,231,.28);
}
.ct-form-icon svg { width: 22px; height: 22px; }
.ct-expect {
  margin: 0 0 1.1rem;
  padding: .65rem .8rem;
  background: rgba(124,140,255,.06);
  border: 1px solid rgba(124,140,255,.18);
  border-radius: 12px;
  color: var(--ct-soft);
  font-size: .84rem; line-height: 1.5;
}

.ct-progress { height: 3px; background: var(--ct-border); border-radius: 3px; overflow: hidden; margin-bottom: 1rem; }
.ct-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ct-primary), var(--ct-accent));
  transition: width .3s ease;
  box-shadow: 0 0 12px rgba(110,243,231,.55);
}

.ct-form { display: grid; gap: 1rem; }
/* Progressive-disclosure wrapper: revealed once a category is chosen. Grid so
   its fields keep the same 1rem rhythm as the rest of the form. */
#ctRest  { display: grid; gap: 1rem; }
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.ct-field { display: grid; gap: .35rem; min-width: 0; }
.ct-field label { font-size: .84rem; font-weight: 600; color: var(--ct-soft); }
.ct-req { color: var(--ct-primary); font-weight: 700; }
.ct-opt { color: var(--ct-muted); font-weight: 400; font-size: .76rem; margin-left: .2rem; }

.ct-form input,
.ct-form textarea,
.ct-form select {
  font: inherit; color: var(--ct-text);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--ct-border);
  border-radius: 12px;
  padding: .7rem .9rem;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  width: 100%;
}
.ct-form input::placeholder,
.ct-form textarea::placeholder { color: var(--ct-muted); }
.ct-form input:hover,
.ct-form textarea:hover,
.ct-form select:hover { border-color: var(--ct-border-2); }
.ct-form input:focus,
.ct-form textarea:focus,
.ct-form select:focus {
  border-color: var(--ct-primary);
  box-shadow: 0 0 0 4px rgba(110, 243, 231, .12);
  background: rgba(255,255,255,.06);
}
.ct-form input[aria-invalid="true"],
.ct-form textarea[aria-invalid="true"],
.ct-form select[aria-invalid="true"] {
  border-color: var(--ct-error);
  box-shadow: 0 0 0 4px rgba(251,113,133,.14);
}
.ct-form textarea { resize: vertical; min-height: 110px; }
.ct-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ct-muted) 50%),linear-gradient(135deg, var(--ct-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
/* The dropdown popup is OS-chrome — explicitly colour the <option> rows
   so they don't render as near-invisible white-on-white in dark mode. */
.ct-form select option {
  background: #0b1628;
  color: #f8fafc;
}
[data-theme="light"] .ct-form select option {
  background: #ffffff;
  color: #0b1628;
}

.ct-hint {
  margin: 0;
  font-size: .8rem;
  color: var(--ct-muted);
  transition: color .2s;
}
.ct-hint.is-active { color: var(--ct-primary); }
.ct-err { margin: 0; min-height: 1.05em; font-size: .8rem; color: var(--ct-error); }
.ct-err:empty { opacity: 0; min-height: 0; }
.ct-err-form { text-align: right; }

.ct-more {
  border: 1px solid var(--ct-border);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
}
.ct-more summary {
  cursor: pointer; list-style: none;
  padding: .7rem .95rem;
  font-weight: 600; font-size: .9rem;
  display: flex; align-items: center; gap: .35rem;
  color: var(--ct-text);
}
.ct-more summary::-webkit-details-marker { display: none; }
.ct-more summary span { color: var(--ct-muted); font-weight: 400; font-size: .82rem; }
.ct-more summary::after {
  content: "+"; margin-left: auto;
  font-size: 1.15rem; color: var(--ct-muted); line-height: 1;
}
.ct-more[open] summary::after { content: "−"; }
.ct-more[open] summary { border-bottom: 1px solid var(--ct-border); }
.ct-more .ct-grid { padding: .9rem; }

.ct-check {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .75rem .95rem;
  background: rgba(124,140,255,.06);
  border: 1px solid rgba(124,140,255,.18);
  border-radius: 12px;
  color: var(--ct-soft);
  font-size: .88rem;
  cursor: pointer;
}
.ct-check input { accent-color: var(--ct-primary); width: 18px; height: 18px; margin-top: 2px; }

.ct-hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }

.ct-actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Success state ---------- */
.ct-success { text-align: center; padding: 1.2rem 0 .4rem; }
.ct-success-check { width: 76px; height: 76px; margin: 0 auto .8rem; }
.ct-success-check svg { width: 76px; height: 76px; }
.ct-check-c { stroke: var(--ct-success); stroke-width: 3; stroke-dasharray: 160; stroke-dashoffset: 160; animation: ctDraw .7s ease forwards; }
.ct-check-m { stroke: var(--ct-success); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: ctDraw .5s .55s ease forwards; }
@keyframes ctDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ct-check-c, .ct-check-m { animation: none; stroke-dashoffset: 0; }
}
.ct-success h3 { margin: 0 0 .35rem; font-size: 1.25rem; }
.ct-success-id strong { color: var(--ct-primary); font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: .04em; }
.ct-success-msg { color: var(--ct-muted); margin: .35rem 0 .8rem; }
.ct-link-btn {
  background: none; border: 0; cursor: pointer;
  color: var(--ct-primary); font: inherit; font-size: .9rem;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Quick-route tiles ---------- */
.ct-quick {
  padding: 1.1rem 1.3rem;
  background: var(--ct-card-2);
  border: 1px solid var(--ct-border);
  border-radius: 18px;
}
.ct-quick h3 { margin: 0 0 .8rem; font-size: 1rem; font-weight: 700; }
.ct-quick-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .65rem;
}
.ct-quick-tile {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .8rem;
  border-radius: 14px;
  border: 1px solid var(--ct-border);
  background: rgba(255,255,255,.03);
  text-decoration: none; color: var(--ct-text);
  transition: transform .15s, border-color .2s, background .2s;
}
.ct-quick-tile:hover {
  transform: translateY(-1px);
  border-color: var(--ct-primary);
  background: rgba(110,243,231,.05);
}
.ct-quick-tile svg {
  width: 22px; height: 22px; flex-shrink: 0;
  color: var(--ct-primary); margin-top: 2px;
}
.ct-quick-tile strong { display: block; font-size: .92rem; }
.ct-quick-tile span { color: var(--ct-muted); font-size: .78rem; }

/* ---------- Trust footer ---------- */
.ct-trust { margin: 2.2rem 0 0; color: var(--ct-muted); font-size: .82rem; text-align: center; }

/* ---------- Toast ---------- */
.ct-toast {
  position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  background: var(--ct-card);
  border: 1px solid var(--ct-border-2);
  color: var(--ct-text);
  padding: .65rem 1rem; border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: .88rem;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
  z-index: 250;
}
.ct-toast[hidden] { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ct-hub { grid-template-columns: 1fr; }
  /* On mobile, reorder so feedback comes after the WhatsApp cards: */
  .ct-community { order: 1; }
  .ct-feedback  { order: 2; }
}
@media (max-width: 640px) {
  .ct-card { padding: 1.2rem 1rem; border-radius: 18px; }
  .ct-compare-grid, .ct-grid, .ct-quick-grid { grid-template-columns: 1fr; }
  .ct-actions { justify-content: stretch; }
  .ct-actions .ct-btn { flex: 1; justify-content: center; }
  .ct-card-head { gap: .7rem; }
}
