/*
  Zoechéa Contact Page Scratch Restart
  Phase 2 — Design Tokens

  Scope:
  - Token foundation only.
  - The old contact page design is not reused as a reference.
  - Tokens are based on the approved muted Ascend-style Support Center image.
  - No page layout, sidebar, hero, card, form, ticket UI, or backend behavior is rebuilt in this phase.
*/

:root {
  /* ------------------------------------------------------------
     Light mode color tokens
     ------------------------------------------------------------ */

  /* Page canvas and stage */
  --zc-contact-canvas: #f6f0e6;
  --zc-contact-canvas-soft: #fbf6ee;
  --zc-contact-stage: #fffaf2;
  --zc-contact-stage-subtle: #f8f1e7;

  /* Primary surfaces */
  --zc-contact-surface: #fffdf8;
  --zc-contact-surface-soft: #fbf7ef;
  --zc-contact-surface-muted: #f2eadf;
  --zc-contact-surface-raised: #fffefa;

  /* Dashboard/sidebar palette */
  --zc-contact-nav-bg: #dcefeb;
  --zc-contact-nav-bg-soft: #e9f5f2;
  --zc-contact-nav-border: #9fbab4;
  --zc-contact-nav-active: #f4d483;
  --zc-contact-nav-active-soft: #ffe7a8;
  --zc-contact-nav-icon: #21363b;

  /* Muted Ascend-style accent families */
  --zc-contact-moss: #84aa82;
  --zc-contact-moss-soft: #e8f0e3;
  --zc-contact-moss-wash: #f3f7ef;

  --zc-contact-coral: #dc7263;
  --zc-contact-coral-soft: #f6e2da;
  --zc-contact-coral-wash: #fff3ed;

  --zc-contact-lavender: #9487bd;
  --zc-contact-lavender-soft: #ece8f5;
  --zc-contact-lavender-wash: #f7f4fb;

  --zc-contact-ochre: #e1b84f;
  --zc-contact-ochre-soft: #f8e9be;
  --zc-contact-ochre-wash: #fff8e6;

  --zc-contact-teal: #2c6366;
  --zc-contact-teal-soft: #dceceb;
  --zc-contact-teal-wash: #eef7f5;

  --zc-contact-mauve: #aa8db4;
  --zc-contact-mauve-soft: #f0e6f3;
  --zc-contact-mauve-wash: #fbf5fc;

  /* Text */
  --zc-contact-ink: #172b34;
  --zc-contact-heading: #182f3a;
  --zc-contact-text: #263c43;
  --zc-contact-text-muted: #5f6f72;
  --zc-contact-text-soft: #7c898a;
  --zc-contact-text-faint: #98a3a3;
  --zc-contact-on-dark: #fffaf0;

  /* Borders */
  --zc-contact-border: #d7ccc0;
  --zc-contact-border-soft: #e8dfd4;
  --zc-contact-border-strong: #97aaa5;
  --zc-contact-border-warm: #e1c98f;
  --zc-contact-border-danger: #df998d;
  --zc-contact-border-info: #bbb2d7;

  /* States */
  --zc-contact-success: #6f9468;
  --zc-contact-success-soft: #e8f0e3;
  --zc-contact-error: #b95e54;
  --zc-contact-error-soft: #fae4df;
  --zc-contact-warning: #b8872c;
  --zc-contact-warning-soft: #f8e9be;
  --zc-contact-info: #756aa2;
  --zc-contact-info-soft: #ece8f5;

  /* Focus and selection */
  --zc-contact-focus: #2c6366;
  --zc-contact-focus-ring: rgba(44, 99, 102, 0.28);
  --zc-contact-focus-ring-strong: rgba(44, 99, 102, 0.42);
  --zc-contact-selection-bg: #dceceb;
  --zc-contact-selection-text: #172b34;

  /* ------------------------------------------------------------
     Typography tokens
     ------------------------------------------------------------ */

  --zc-contact-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --zc-contact-font-serif: Fraunces, Georgia, "Times New Roman", serif;

  --zc-contact-size-xs: 0.78rem;
  --zc-contact-size-sm: 0.9rem;
  --zc-contact-size-md: 1rem;
  --zc-contact-size-lg: 1.08rem;
  --zc-contact-size-xl: 1.28rem;
  --zc-contact-size-2xl: clamp(1.7rem, 2vw, 2.2rem);
  --zc-contact-size-hero: clamp(3rem, 6vw, 5.15rem);

  --zc-contact-line-tight: 0.96;
  --zc-contact-line-heading: 1.08;
  --zc-contact-line-body: 1.55;
  --zc-contact-line-relaxed: 1.72;

  --zc-contact-weight-regular: 400;
  --zc-contact-weight-medium: 600;
  --zc-contact-weight-bold: 750;
  --zc-contact-weight-heavy: 850;

  --zc-contact-tracking-eyebrow: 0.16em;
  --zc-contact-tracking-tight: -0.04em;

  /* ------------------------------------------------------------
     Shape, spacing, depth tokens
     ------------------------------------------------------------ */

  --zc-contact-radius-xs: 10px;
  --zc-contact-radius-sm: 14px;
  --zc-contact-radius-md: 18px;
  --zc-contact-radius-lg: 24px;
  --zc-contact-radius-xl: 30px;
  --zc-contact-radius-2xl: 36px;
  --zc-contact-radius-pill: 999px;

  --zc-contact-space-1: 0.25rem;
  --zc-contact-space-2: 0.5rem;
  --zc-contact-space-3: 0.75rem;
  --zc-contact-space-4: 1rem;
  --zc-contact-space-5: 1.25rem;
  --zc-contact-space-6: 1.5rem;
  --zc-contact-space-7: 1.75rem;
  --zc-contact-space-8: 2rem;
  --zc-contact-space-10: 2.5rem;
  --zc-contact-space-12: 3rem;
  --zc-contact-space-14: 3.5rem;

  --zc-contact-border-width: 1.5px;
  --zc-contact-border-width-strong: 2px;

  --zc-contact-shadow-soft: 0 10px 24px rgba(38, 60, 67, 0.07);
  --zc-contact-shadow-card: 0 18px 42px rgba(38, 60, 67, 0.09);
  --zc-contact-shadow-outline: 3px 4px 0 rgba(92, 117, 112, 0.13);
  --zc-contact-shadow-button: 0 12px 22px rgba(44, 99, 102, 0.18);

  /* ------------------------------------------------------------
     Layout/component sizing tokens
     ------------------------------------------------------------ */

  --zc-contact-sidebar-width: 280px;
  --zc-contact-sidebar-width-collapsed: 92px;
  --zc-contact-content-max: 1220px;
  --zc-contact-field-height: 52px;
  --zc-contact-touch-target: 44px;
  --zc-contact-icon-sm: 22px;
  --zc-contact-icon-md: 34px;
  --zc-contact-icon-lg: 74px;
  --zc-contact-icon-xl: 92px;

  /* ------------------------------------------------------------
     Motion and accessibility tokens
     ------------------------------------------------------------ */

  --zc-contact-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --zc-contact-duration-fast: 140ms;
  --zc-contact-duration-base: 220ms;
  --zc-contact-duration-slow: 320ms;

  --zc-contact-disabled-opacity: 0.56;
  --zc-contact-placeholder: #8a9698;
}

/* Dark-mode token foundation. Phase 14 will wire this into the active theme behavior. */
:root[data-theme="dark"],
html[data-theme="dark"],
body.theme-dark,
body.zd-theme-dark {
  --zc-contact-canvas: #172123;
  --zc-contact-canvas-soft: #1d292b;
  --zc-contact-stage: #202d2f;
  --zc-contact-stage-subtle: #243234;

  --zc-contact-surface: #243234;
  --zc-contact-surface-soft: #2a383a;
  --zc-contact-surface-muted: #304042;
  --zc-contact-surface-raised: #273638;

  --zc-contact-nav-bg: #203436;
  --zc-contact-nav-bg-soft: #263e40;
  --zc-contact-nav-border: #496260;
  --zc-contact-nav-active: #6f5822;
  --zc-contact-nav-active-soft: #806729;
  --zc-contact-nav-icon: #f9f0df;

  --zc-contact-moss: #98ba91;
  --zc-contact-moss-soft: #2f4230;
  --zc-contact-moss-wash: #253329;

  --zc-contact-coral: #e28a7d;
  --zc-contact-coral-soft: #4a2f2b;
  --zc-contact-coral-wash: #332825;

  --zc-contact-lavender: #aaa0cf;
  --zc-contact-lavender-soft: #373249;
  --zc-contact-lavender-wash: #2b2938;

  --zc-contact-ochre: #e2c46f;
  --zc-contact-ochre-soft: #4b4128;
  --zc-contact-ochre-wash: #332f23;

  --zc-contact-teal: #91c3c2;
  --zc-contact-teal-soft: #284548;
  --zc-contact-teal-wash: #223638;

  --zc-contact-mauve: #bea0c8;
  --zc-contact-mauve-soft: #423447;
  --zc-contact-mauve-wash: #302936;

  --zc-contact-ink: #fff8ea;
  --zc-contact-heading: #fff4dc;
  --zc-contact-text: #f1eadf;
  --zc-contact-text-muted: #c3c9c5;
  --zc-contact-text-soft: #a8b2ae;
  --zc-contact-text-faint: #87928f;
  --zc-contact-on-dark: #172b34;

  --zc-contact-border: #465352;
  --zc-contact-border-soft: #394746;
  --zc-contact-border-strong: #6a807d;
  --zc-contact-border-warm: #8c7743;
  --zc-contact-border-danger: #9d645d;
  --zc-contact-border-info: #6c638a;

  --zc-contact-success: #9fbe98;
  --zc-contact-success-soft: #2f4230;
  --zc-contact-error: #ec978d;
  --zc-contact-error-soft: #4a2f2b;
  --zc-contact-warning: #e2c46f;
  --zc-contact-warning-soft: #4b4128;
  --zc-contact-info: #aaa0cf;
  --zc-contact-info-soft: #373249;

  --zc-contact-focus: #91c3c2;
  --zc-contact-focus-ring: rgba(145, 195, 194, 0.26);
  --zc-contact-focus-ring-strong: rgba(145, 195, 194, 0.42);
  --zc-contact-placeholder: #9aa7a3;
  --zc-contact-selection-bg: #284548;
  --zc-contact-selection-text: #fff8ea;

  --zc-contact-shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.22);
  --zc-contact-shadow-card: 0 18px 42px rgba(0, 0, 0, 0.28);
  --zc-contact-shadow-outline: 3px 4px 0 rgba(0, 0, 0, 0.22);
  --zc-contact-shadow-button: 0 12px 22px rgba(0, 0, 0, 0.24);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --zc-contact-duration-fast: 0ms;
    --zc-contact-duration-base: 0ms;
    --zc-contact-duration-slow: 0ms;
  }
}

/* ------------------------------------------------------------
   Phase 3 — Dashboard Navbar Integration
   Scope: dashboard shell, desktop sidebar, mobile header/drawer/bottom nav only.
   The contact content rebuild starts in Phase 4.
   ------------------------------------------------------------ */

body.zc-contact-dashboard-body {
  min-height: 100vh;
  margin: 0;
  background: var(--zd-canvas, var(--zc-contact-canvas));
  color: var(--zc-contact-text);
  font-family: var(--zc-contact-font-sans);
}

.zc-contact-shell {
  background: var(--zd-canvas, var(--zc-contact-canvas));
}

.zc-contact-main {
  width: 100%;
  max-width: min(1280px, 100%);
}

.zc-contact-sidebar .zd-brand__sub {
  letter-spacing: 0.16em;
}

.zc-contact-sidebar .zd-nav-link[data-nav-key="support"] .zd-nav-link__icon,
.zc-contact-mobile-nav .zd-mobile-nav-link[data-mobile-nav-key="support"] .zd-mobile-nav-link__icon,
.zc-contact-sidebar .zd-account-link[data-account-key="support"] .zd-account-link__icon {
  background: var(--zc-contact-ochre-soft);
  border-color: rgba(184, 135, 44, 0.42);
}

.zc-contact-sidebar .zd-nav-link[data-nav-key="support"].is-current,
.zc-contact-sidebar .zd-nav-link[data-nav-key="support"][aria-current="page"],
.zc-contact-mobile-nav .zd-mobile-nav-link[data-mobile-nav-key="support"].is-current,
.zc-contact-mobile-nav .zd-mobile-nav-link[data-mobile-nav-key="support"][aria-current="page"] {
  background: var(--zc-contact-nav-active);
  border-color: rgba(184, 135, 44, 0.46);
}

.zc-contact-sidebar-utilities {
  flex: 0 0 auto;
  display: grid;
  gap: 7px;
  padding-top: 14px;
  border-top: 1.5px solid var(--zd-sidebar-line, rgba(139, 161, 157, 0.55));
}

.zc-contact-utility-link {
  cursor: pointer;
  appearance: none;
  text-align: left;
}

.zc-contact-utility-link .zd-nav-link__icon {
  background: rgba(255, 253, 247, 0.64);
}

.zc-contact-utility-link .zd-notification-badge {
  position: static;
  margin-left: auto;
}

.zc-contact-account-block {
  border-top: 0;
  padding-top: 0;
}

.zc-contact-account-block .zd-account-trigger {
  min-height: 44px;
  padding: 8px 10px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.zc-contact-account-block .zd-account-trigger:hover,
.zc-contact-account-block .zd-account-trigger:focus-visible {
  background: rgba(255, 253, 247, 0.52);
  border-color: rgba(139, 161, 157, 0.54);
}

.zc-contact-dashboard-body .zd-notification-popout {
  z-index: 120;
}

.zc-contact-phase-scaffold {
  margin: 0 0 var(--zc-contact-space-6);
  padding: var(--zc-contact-space-6);
  border: var(--zc-contact-border-width) solid var(--zc-contact-border-soft);
  border-radius: var(--zc-contact-radius-lg);
  background: var(--zc-contact-surface);
  box-shadow: var(--zc-contact-shadow-soft);
}

.zc-contact-phase-scaffold__eyebrow {
  margin: 0 0 var(--zc-contact-space-2);
  color: var(--zc-contact-text-muted);
  font-size: var(--zc-contact-size-xs);
  font-weight: var(--zc-contact-weight-bold);
  letter-spacing: var(--zc-contact-tracking-eyebrow);
  text-transform: uppercase;
}

.zc-contact-phase-scaffold h1,
.zc-contact-phase-scaffold h2,
.zc-contact-phase-scaffold h3 {
  color: var(--zc-contact-heading);
}

.zc-contact-phase-scaffold h1 {
  margin: 0 0 var(--zc-contact-space-3);
  font-family: var(--zc-contact-font-serif);
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: var(--zc-contact-line-heading);
  letter-spacing: var(--zc-contact-tracking-tight);
}

.zc-contact-phase-scaffold p,
.zc-contact-phase-scaffold li {
  color: var(--zc-contact-text);
  line-height: var(--zc-contact-line-body);
}

.zc-contact-phase-scaffold__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--zc-contact-space-3);
  margin-top: var(--zc-contact-space-5);
}

.zc-contact-phase-scaffold__tabs a,
.zc-contact-phase-scaffold a,
.zc-contact-phase-scaffold button {
  color: var(--zc-contact-teal);
}

.zc-contact-phase-scaffold__tabs a {
  display: inline-flex;
  align-items: center;
  min-height: var(--zc-contact-touch-target);
  padding: 0 var(--zc-contact-space-4);
  border: var(--zc-contact-border-width) solid var(--zc-contact-border-soft);
  border-radius: var(--zc-contact-radius-pill);
  background: var(--zc-contact-teal-wash);
  font-weight: var(--zc-contact-weight-bold);
  text-decoration: none;
}

.zc-contact-phase-scaffold__tabs a[aria-current="page"] {
  background: var(--zc-contact-ochre-soft);
  border-color: var(--zc-contact-border-warm);
  color: var(--zc-contact-ink);
}

.zc-contact-phase-scaffold input,
.zc-contact-phase-scaffold select,
.zc-contact-phase-scaffold textarea {
  width: min(100%, 720px);
  min-height: var(--zc-contact-field-height);
  border: var(--zc-contact-border-width) solid var(--zc-contact-border);
  border-radius: var(--zc-contact-radius-sm);
  background: var(--zc-contact-surface-raised);
  color: var(--zc-contact-text);
  font: inherit;
  font-size: var(--zc-contact-size-md);
  padding: 0.78rem 0.9rem;
}

.zc-contact-phase-scaffold textarea {
  min-height: auto;
}

.zc-contact-phase-scaffold button[type="submit"] {
  min-height: var(--zc-contact-touch-target);
  padding: 0.82rem 1.2rem;
  border: 0;
  border-radius: var(--zc-contact-radius-pill);
  background: var(--zc-contact-teal);
  color: var(--zc-contact-on-dark);
  font-weight: var(--zc-contact-weight-bold);
  cursor: pointer;
}

.zc-contact-phase-scaffold :is(a, button, input, select, textarea):focus-visible,
.zc-contact-sidebar :is(a, button):focus-visible,
.zc-contact-mobile-nav :is(a, button):focus-visible,
.zc-contact-mobile-header :is(a, button):focus-visible {
  outline: 3px solid var(--zc-contact-focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--zc-contact-focus-ring);
}

body.zd-sidebar-collapsed .zc-contact-sidebar-utilities {
  width: 100%;
}

body.zd-sidebar-collapsed .zc-contact-account-block .zd-account-trigger {
  justify-content: center;
  min-height: 50px;
  padding: 7px;
}

@media (max-width: 860px) {
  .zc-contact-main {
    max-width: 100%;
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .zc-contact-phase-scaffold {
    padding: var(--zc-contact-space-5);
    border-radius: var(--zc-contact-radius-md);
  }
}

/* ------------------------------------------------------------
   Phase 4 — Page Shell
   Scope: main layout container, calm stage panel, responsive spacing,
   two-column content structure, and mobile stacking only.
   Hero, support cards, final form styling, help panel cards, and ticket polish
   are intentionally reserved for later phases.
   ------------------------------------------------------------ */

body.zc-contact-phase-four {
  overflow-x: hidden;
  background:
    linear-gradient(180deg, var(--zc-contact-canvas-soft) 0%, var(--zc-contact-canvas) 46%, var(--zc-contact-stage-subtle) 100%);
}

body.zc-contact-phase-four .zc-contact-main {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 100vh;
  padding: clamp(1rem, 3vw, 2.4rem);
}

.zc-contact-page {
  width: min(100%, var(--zc-contact-content-max));
  margin-inline: auto;
}

.zc-contact-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  border: var(--zc-contact-border-width) solid var(--zc-contact-border-soft);
  border-radius: var(--zc-contact-radius-2xl);
  background: var(--zc-contact-stage);
  box-shadow: var(--zc-contact-shadow-card);
}

.zc-contact-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(44, 99, 102, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(44, 99, 102, 0.032) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
}

.zc-contact-stage__inner {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1rem, 3vw, 2.25rem);
}

.zc-contact-stage__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--zc-contact-space-6);
}

.zc-contact-stage__header-copy {
  min-width: 0;
  max-width: 780px;
}

.zc-contact-stage__header .zc-contact-phase-scaffold__tabs {
  justify-content: flex-end;
  align-self: end;
  margin-top: 0;
}

.zc-contact-choice-shell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--zc-contact-space-4);
}

.zc-contact-choice-shell__slot {
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: var(--zc-contact-space-5);
  border: var(--zc-contact-border-width) dashed var(--zc-contact-border-soft);
  border-radius: var(--zc-contact-radius-lg);
  background: rgba(255, 253, 248, 0.62);
  color: var(--zc-contact-text-muted);
  font-weight: var(--zc-contact-weight-bold);
}

.zc-contact-stage__body,
.zc-contact-section,
.zc-contact-section-card,
.zc-contact-two-column,
.zc-contact-column {
  min-width: 0;
}

.zc-contact-stage__body {
  display: grid;
  gap: var(--zc-contact-space-6);
}

.zc-contact-section {
  width: 100%;
}

.zc-contact-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(280px, 0.72fr);
  align-items: start;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.zc-contact-column--side {
  display: grid;
  gap: var(--zc-contact-space-4);
}

.zc-contact-side-placeholder {
  min-height: 280px;
  padding: var(--zc-contact-space-6);
  border: var(--zc-contact-border-width) solid var(--zc-contact-border-soft);
  border-radius: var(--zc-contact-radius-lg);
  background: var(--zc-contact-surface-soft);
  box-shadow: var(--zc-contact-shadow-soft);
}

.zc-contact-ticket-stack {
  display: grid;
  gap: var(--zc-contact-space-5);
}

.zc-contact-ticket-stack > article {
  min-width: 0;
  padding: var(--zc-contact-space-5);
  border: var(--zc-contact-border-width) solid var(--zc-contact-border-soft);
  border-radius: var(--zc-contact-radius-md);
  background: var(--zc-contact-surface-raised);
}

body.zd-sidebar-collapsed.zc-contact-phase-four .zc-contact-page {
  width: min(100%, calc(var(--zc-contact-content-max) + 80px));
}

@media (max-width: 1180px) {
  .zc-contact-stage__header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .zc-contact-stage__header .zc-contact-phase-scaffold__tabs {
    justify-content: flex-start;
  }

  .zc-contact-two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .zc-contact-side-placeholder {
    min-height: auto;
  }
}

@media (max-width: 960px) {
  .zc-contact-choice-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  body.zc-contact-phase-four .zc-contact-main {
    padding: clamp(0.75rem, 4vw, 1.15rem);
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .zc-contact-stage {
    border-radius: var(--zc-contact-radius-xl);
  }

  .zc-contact-stage__inner {
    padding: clamp(0.8rem, 4vw, 1rem);
  }

  .zc-contact-choice-shell__slot {
    min-height: 62px;
    padding: var(--zc-contact-space-4);
  }
}

@media (max-width: 520px) {
  .zc-contact-stage {
    border-radius: var(--zc-contact-radius-lg);
  }

  .zc-contact-stage__header,
  .zc-contact-phase-scaffold,
  .zc-contact-side-placeholder,
  .zc-contact-ticket-stack > article {
    border-radius: var(--zc-contact-radius-md);
  }

  .zc-contact-stage__header .zc-contact-phase-scaffold__tabs {
    width: 100%;
  }

  .zc-contact-phase-scaffold__tabs a {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ------------------------------------------------------------
   Phase 5 — Hero Header
   Scope: final Support Center eyebrow, one H1, short subtitle, compact
   reassurance pill, and accessible tab placement inside the hero only.
   Support choice cards, form card polish, help panel, and tickets remain
   reserved for later phases.
   ------------------------------------------------------------ */

.zc-contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(0.25rem, 1vw, 0.45rem) clamp(0.1rem, 0.6vw, 0.35rem) clamp(0.85rem, 1.8vw, 1.4rem);
}

.zc-contact-hero__copy {
  min-width: 0;
  max-width: 820px;
}

.zc-contact-hero__eyebrow {
  margin: 0 0 0.34rem;
  color: var(--zc-contact-teal);
  font-size: clamp(0.75rem, 1vw, 0.92rem);
  font-weight: var(--zc-contact-weight-heavy);
  letter-spacing: var(--zc-contact-tracking-eyebrow);
  line-height: 1.2;
  text-transform: uppercase;
}

.zc-contact-hero h1 {
  margin: 0;
  color: var(--zc-contact-heading);
  font-family: var(--zc-contact-font-serif);
  font-size: var(--zc-contact-size-hero);
  font-weight: var(--zc-contact-weight-heavy);
  letter-spacing: var(--zc-contact-tracking-tight);
  line-height: var(--zc-contact-line-tight);
  text-wrap: balance;
}

.zc-contact-hero__subtitle {
  max-width: 680px;
  margin: clamp(0.75rem, 1.2vw, 1rem) 0 0;
  color: var(--zc-contact-text);
  font-size: clamp(1rem, 1.45vw, 1.24rem);
  line-height: var(--zc-contact-line-body);
}

.zc-contact-hero__aside {
  display: grid;
  justify-items: end;
  gap: var(--zc-contact-space-3);
  min-width: min(100%, 250px);
  padding-top: clamp(0.2rem, 0.8vw, 0.7rem);
}

.zc-contact-hero__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--zc-contact-space-3);
  min-height: 52px;
  padding: 0.62rem 1rem 0.62rem 0.72rem;
  border: var(--zc-contact-border-width) solid rgba(111, 148, 104, 0.48);
  border-radius: var(--zc-contact-radius-sm);
  background: rgba(255, 253, 248, 0.7);
  color: var(--zc-contact-text);
  font-size: var(--zc-contact-size-md);
  font-weight: var(--zc-contact-weight-medium);
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(38, 60, 67, 0.045);
}

.zc-contact-hero__pill-icon {
  display: inline-grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--zc-contact-success);
  color: var(--zc-contact-on-dark);
  font-size: 1rem;
  font-weight: var(--zc-contact-weight-heavy);
  line-height: 1;
}

.zc-contact-hero__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--zc-contact-space-2);
}

.zc-contact-hero__tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--zc-contact-touch-target);
  padding: 0.55rem 0.9rem;
  border: var(--zc-contact-border-width) solid var(--zc-contact-border-soft);
  border-radius: var(--zc-contact-radius-pill);
  background: rgba(255, 253, 248, 0.58);
  color: var(--zc-contact-teal);
  font-size: var(--zc-contact-size-sm);
  font-weight: var(--zc-contact-weight-bold);
  text-decoration: none;
  transition: background var(--zc-contact-duration-fast) var(--zc-contact-ease),
    border-color var(--zc-contact-duration-fast) var(--zc-contact-ease),
    transform var(--zc-contact-duration-fast) var(--zc-contact-ease);
}

.zc-contact-hero__tabs a:hover {
  background: var(--zc-contact-teal-wash);
  border-color: rgba(44, 99, 102, 0.3);
  transform: translateY(-1px);
}

.zc-contact-hero__tabs a[aria-current="page"] {
  background: var(--zc-contact-ochre-soft);
  border-color: var(--zc-contact-border-warm);
  color: var(--zc-contact-ink);
}

.zc-contact-hero :is(a, button):focus-visible {
  outline: 3px solid var(--zc-contact-focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--zc-contact-focus-ring);
}

@media (max-width: 1180px) {
  .zc-contact-hero {
    grid-template-columns: 1fr;
  }

  .zc-contact-hero__aside {
    justify-items: start;
    min-width: 0;
    padding-top: 0;
  }

  .zc-contact-hero__tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .zc-contact-hero {
    gap: var(--zc-contact-space-4);
    padding: 0 0 var(--zc-contact-space-3);
  }

  .zc-contact-hero h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .zc-contact-hero__subtitle {
    font-size: var(--zc-contact-size-lg);
  }

  .zc-contact-hero__pill {
    min-height: 48px;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .zc-contact-hero__aside,
  .zc-contact-hero__pill,
  .zc-contact-hero__tabs {
    width: 100%;
  }

  .zc-contact-hero__pill {
    justify-content: flex-start;
  }

  .zc-contact-hero__tabs a {
    flex: 1 1 100%;
  }
}

/* ------------------------------------------------------------
   Phase 6 — Support Choice Cards
   Scope: three primary choice cards only: Ask a question,
   Report a problem, and Check my ticket. Cards use links for a
   no-JS fallback, visible selected states, keyboard focus, and
   child-friendly copy. Form card polish, help panel, tickets polish,
   and JS enhancements remain reserved for later phases.
   ------------------------------------------------------------ */

.zc-contact-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--zc-contact-space-4);
}

.zc-contact-choice-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--zc-contact-space-4);
  min-width: 0;
  min-height: 148px;
  padding: clamp(1rem, 2vw, 1.25rem);
  border: var(--zc-contact-border-width) solid var(--zc-contact-border-soft);
  border-radius: var(--zc-contact-radius-xl);
  color: var(--zc-contact-text);
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(38, 60, 67, 0.06);
  transition: transform var(--zc-contact-duration-fast) var(--zc-contact-ease),
    border-color var(--zc-contact-duration-fast) var(--zc-contact-ease),
    box-shadow var(--zc-contact-duration-fast) var(--zc-contact-ease),
    background var(--zc-contact-duration-fast) var(--zc-contact-ease);
}

.zc-contact-choice-card:hover {
  transform: translateY(-2px);
  border-color: var(--zc-contact-border-strong);
  box-shadow: 0 18px 34px rgba(38, 60, 67, 0.09);
}

.zc-contact-choice-card:focus-visible {
  outline: 3px solid var(--zc-contact-focus);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px var(--zc-contact-focus-ring), 0 18px 34px rgba(38, 60, 67, 0.09);
}

.zc-contact-choice-card--question {
  background: var(--zc-contact-moss-wash);
  border-color: rgba(111, 148, 104, 0.32);
}

.zc-contact-choice-card--problem {
  background: var(--zc-contact-coral-wash);
  border-color: rgba(185, 94, 84, 0.26);
}

.zc-contact-choice-card--ticket {
  background: var(--zc-contact-lavender-wash);
  border-color: rgba(117, 106, 162, 0.25);
}

.zc-contact-choice-card__icon {
  display: inline-grid;
  width: clamp(50px, 5.4vw, 68px);
  height: clamp(50px, 5.4vw, 68px);
  place-items: center;
  border: var(--zc-contact-border-width) solid rgba(255, 253, 248, 0.74);
  border-radius: 22px;
  color: var(--zc-contact-on-dark);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: var(--zc-contact-weight-heavy);
  line-height: 1;
  box-shadow: inset 0 -8px 18px rgba(23, 43, 52, 0.08);
}

.zc-contact-choice-card--question .zc-contact-choice-card__icon {
  background: var(--zc-contact-moss);
}

.zc-contact-choice-card--problem .zc-contact-choice-card__icon {
  background: var(--zc-contact-coral);
}

.zc-contact-choice-card--ticket .zc-contact-choice-card__icon {
  background: var(--zc-contact-lavender);
}

.zc-contact-choice-card__copy {
  display: grid;
  gap: var(--zc-contact-space-2);
  min-width: 0;
  padding-top: 0.08rem;
}

.zc-contact-choice-card__title {
  color: var(--zc-contact-heading);
  font-size: clamp(1.12rem, 1.45vw, 1.32rem);
  font-weight: var(--zc-contact-weight-heavy);
  line-height: var(--zc-contact-line-heading);
  letter-spacing: -0.02em;
}

.zc-contact-choice-card__text {
  max-width: 28ch;
  color: var(--zc-contact-text-muted);
  font-size: var(--zc-contact-size-sm);
  font-weight: var(--zc-contact-weight-medium);
  line-height: 1.45;
}

.zc-contact-choice-card__state {
  position: absolute;
  right: var(--zc-contact-space-4);
  bottom: var(--zc-contact-space-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.32rem 0.7rem;
  border: var(--zc-contact-border-width) solid rgba(38, 60, 67, 0.1);
  border-radius: var(--zc-contact-radius-pill);
  background: rgba(255, 253, 248, 0.64);
  color: var(--zc-contact-text-muted);
  font-size: var(--zc-contact-size-xs);
  font-weight: var(--zc-contact-weight-bold);
}

.zc-contact-choice-card.is-selected {
  border-color: var(--zc-contact-teal);
  box-shadow: 0 0 0 4px var(--zc-contact-focus-ring), 0 18px 34px rgba(38, 60, 67, 0.1);
}

.zc-contact-choice-card.is-selected .zc-contact-choice-card__state {
  background: var(--zc-contact-teal);
  border-color: var(--zc-contact-teal);
  color: var(--zc-contact-on-dark);
}

.zc-contact-choice-card.is-selected .zc-contact-choice-card__state::before {
  content: "✓";
  margin-right: 0.35rem;
}

@media (max-width: 1040px) {
  .zc-contact-choice-grid {
    grid-template-columns: 1fr;
  }

  .zc-contact-choice-card {
    min-height: 118px;
  }

  .zc-contact-choice-card__text {
    max-width: 58ch;
  }
}

@media (max-width: 560px) {
  .zc-contact-choice-grid {
    gap: var(--zc-contact-space-3);
  }

  .zc-contact-choice-card {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 104px;
    padding: var(--zc-contact-space-4);
    border-radius: var(--zc-contact-radius-lg);
  }

  .zc-contact-choice-card__state {
    position: static;
    grid-column: 2;
    justify-self: start;
    margin-top: var(--zc-contact-space-1);
  }
}

/* ------------------------------------------------------------
   Phase 7 — Contact Form Card
   Scope: primary send-message card only. Builds the final form
   container, header, labels, inputs, helper text, friendly errors,
   and submit button styling while preserving existing backend field names.
   Help panel cards, success state polish, tickets polish, and JS submit
   enhancements remain reserved for later phases.
   ------------------------------------------------------------ */

.zc-contact-form-card {
  display: grid;
  gap: var(--zc-contact-space-6);
  margin: 0;
  padding: clamp(1.15rem, 2.8vw, 2rem);
  border: var(--zc-contact-border-width-strong) solid rgba(151, 170, 165, 0.38);
  border-radius: var(--zc-contact-radius-2xl);
  background: var(--zc-contact-surface);
  box-shadow: var(--zc-contact-shadow-card);
}

.zc-contact-form-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--zc-contact-space-5);
  padding-bottom: var(--zc-contact-space-5);
  border-bottom: var(--zc-contact-border-width) solid var(--zc-contact-border-soft);
}

.zc-contact-form-card__eyebrow,
.zc-contact-form-success__eyebrow {
  margin: 0 0 var(--zc-contact-space-2);
  color: var(--zc-contact-teal);
  font-size: var(--zc-contact-size-xs);
  font-weight: var(--zc-contact-weight-heavy);
  letter-spacing: var(--zc-contact-tracking-eyebrow);
  line-height: 1.2;
  text-transform: uppercase;
}

.zc-contact-form-card h2 {
  margin: 0;
  color: var(--zc-contact-heading);
  font-family: var(--zc-contact-font-serif);
  font-size: clamp(1.78rem, 3.4vw, 2.65rem);
  font-weight: var(--zc-contact-weight-heavy);
  letter-spacing: -0.045em;
  line-height: var(--zc-contact-line-heading);
}

.zc-contact-form-card__helper {
  max-width: 46rem;
  margin: var(--zc-contact-space-2) 0 0;
  color: var(--zc-contact-text-muted);
  font-size: var(--zc-contact-size-md);
  font-weight: var(--zc-contact-weight-medium);
  line-height: var(--zc-contact-line-body);
}

.zc-contact-form-card__status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--zc-contact-space-2);
  min-height: 42px;
  padding: 0.5rem 0.72rem;
  border: var(--zc-contact-border-width) solid rgba(111, 148, 104, 0.42);
  border-radius: var(--zc-contact-radius-pill);
  background: var(--zc-contact-moss-wash);
  color: var(--zc-contact-text);
  font-size: var(--zc-contact-size-sm);
  font-weight: var(--zc-contact-weight-bold);
  white-space: nowrap;
}

.zc-contact-form-card__status span[aria-hidden="true"] {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--zc-contact-success);
  color: var(--zc-contact-on-dark);
  font-size: 0.88rem;
  line-height: 1;
}

.zc-contact-form {
  display: grid;
  gap: var(--zc-contact-space-5);
  margin: 0;
}

.zc-contact-form__grid {
  display: grid;
  gap: var(--zc-contact-space-5);
}

.zc-contact-form__grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zc-contact-field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.zc-contact-field label {
  color: var(--zc-contact-heading);
  font-size: var(--zc-contact-size-sm);
  font-weight: var(--zc-contact-weight-heavy);
  line-height: 1.25;
}

.zc-contact-field input,
.zc-contact-field select,
.zc-contact-field textarea {
  width: 100%;
  min-width: 0;
  min-height: var(--zc-contact-field-height);
  padding: 0.82rem 0.96rem;
  border: var(--zc-contact-border-width) solid var(--zc-contact-border);
  border-radius: var(--zc-contact-radius-md);
  background: var(--zc-contact-surface-raised);
  color: var(--zc-contact-text);
  font: inherit;
  font-size: var(--zc-contact-size-md);
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: border-color var(--zc-contact-duration-fast) var(--zc-contact-ease),
    box-shadow var(--zc-contact-duration-fast) var(--zc-contact-ease),
    background var(--zc-contact-duration-fast) var(--zc-contact-ease);
}

.zc-contact-field select {
  cursor: pointer;
}

.zc-contact-field textarea {
  min-height: 118px;
  resize: vertical;
}

.zc-contact-field textarea#support-message {
  min-height: 178px;
}

.zc-contact-field input::placeholder,
.zc-contact-field textarea::placeholder {
  color: var(--zc-contact-placeholder);
}

.zc-contact-field input:hover,
.zc-contact-field select:hover,
.zc-contact-field textarea:hover {
  border-color: var(--zc-contact-border-strong);
}

.zc-contact-field input:focus,
.zc-contact-field select:focus,
.zc-contact-field textarea:focus {
  outline: none;
  border-color: var(--zc-contact-focus);
  background: var(--zc-contact-surface);
  box-shadow: 0 0 0 5px var(--zc-contact-focus-ring);
}

.zc-contact-field.has-error input,
.zc-contact-field.has-error select,
.zc-contact-field.has-error textarea,
.zc-contact-field [aria-invalid="true"] {
  border-color: var(--zc-contact-border-danger);
  background: var(--zc-contact-coral-wash);
}

.zc-contact-field__help,
.zc-contact-field__error {
  margin: 0;
  font-size: var(--zc-contact-size-xs);
  font-weight: var(--zc-contact-weight-medium);
  line-height: 1.45;
}

.zc-contact-field__help {
  color: var(--zc-contact-text-muted);
}

.zc-contact-field__error {
  color: var(--zc-contact-error);
  font-weight: var(--zc-contact-weight-bold);
}

.zc-contact-error-summary {
  display: grid;
  gap: var(--zc-contact-space-2);
  padding: var(--zc-contact-space-4) var(--zc-contact-space-5);
  border: var(--zc-contact-border-width) solid var(--zc-contact-border-danger);
  border-radius: var(--zc-contact-radius-lg);
  background: var(--zc-contact-error-soft);
  color: var(--zc-contact-text);
}

.zc-contact-error-summary h3,
.zc-contact-form-success h3 {
  margin: 0;
  color: var(--zc-contact-heading);
  font-size: var(--zc-contact-size-xl);
  line-height: var(--zc-contact-line-heading);
}

.zc-contact-error-summary p,
.zc-contact-error-summary ul {
  margin: 0;
}

.zc-contact-error-summary ul {
  padding-left: 1.25rem;
}

.zc-contact-error-summary li {
  margin: 0.2rem 0;
  color: var(--zc-contact-text);
  line-height: 1.45;
}

.zc-contact-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--zc-contact-space-4);
  padding-top: var(--zc-contact-space-1);
}

.zc-contact-form__footer p {
  max-width: 26rem;
  margin: 0;
  color: var(--zc-contact-text-muted);
  font-size: var(--zc-contact-size-sm);
  font-weight: var(--zc-contact-weight-medium);
  line-height: 1.45;
}

.zc-contact-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 52px;
  padding: 0.84rem 1.4rem;
  border: 0;
  border-radius: var(--zc-contact-radius-pill);
  background: var(--zc-contact-teal);
  color: var(--zc-contact-on-dark);
  font: inherit;
  font-size: var(--zc-contact-size-md);
  font-weight: var(--zc-contact-weight-heavy);
  line-height: 1.2;
  cursor: pointer;
  box-shadow: var(--zc-contact-shadow-button);
  transition: transform var(--zc-contact-duration-fast) var(--zc-contact-ease),
    box-shadow var(--zc-contact-duration-fast) var(--zc-contact-ease),
    opacity var(--zc-contact-duration-fast) var(--zc-contact-ease),
    background var(--zc-contact-duration-fast) var(--zc-contact-ease);
}

.zc-contact-submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(44, 99, 102, 0.22);
}

.zc-contact-submit-button:focus-visible,
.zc-contact-inline-action:focus-visible {
  outline: 3px solid var(--zc-contact-focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--zc-contact-focus-ring), var(--zc-contact-shadow-button);
}

.zc-contact-submit-button:disabled,
.zc-contact-submit-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: var(--zc-contact-disabled-opacity);
  transform: none;
}

.zc-contact-form-success {
  display: grid;
  gap: var(--zc-contact-space-3);
  padding: var(--zc-contact-space-5);
  border: var(--zc-contact-border-width) solid rgba(111, 148, 104, 0.45);
  border-radius: var(--zc-contact-radius-xl);
  background: var(--zc-contact-moss-wash);
}

.zc-contact-form-success p {
  margin: 0;
  color: var(--zc-contact-text);
  line-height: var(--zc-contact-line-body);
}

.zc-contact-inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.54rem 0.9rem;
  border: var(--zc-contact-border-width) solid rgba(44, 99, 102, 0.28);
  border-radius: var(--zc-contact-radius-pill);
  background: var(--zc-contact-teal-wash);
  color: var(--zc-contact-teal);
  font-weight: var(--zc-contact-weight-bold);
  text-decoration: none;
}

@media (max-width: 1040px) {
  .zc-contact-form-card {
    border-radius: var(--zc-contact-radius-xl);
  }
}

@media (max-width: 760px) {
  .zc-contact-form-card__header,
  .zc-contact-form__footer {
    display: grid;
    justify-content: stretch;
  }

  .zc-contact-form-card__status {
    justify-self: start;
    white-space: normal;
  }

  .zc-contact-form__grid--two {
    grid-template-columns: 1fr;
  }

  .zc-contact-submit-button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .zc-contact-form-card {
    gap: var(--zc-contact-space-5);
    padding: var(--zc-contact-space-5);
    border-radius: var(--zc-contact-radius-lg);
  }

  .zc-contact-form-card__header {
    padding-bottom: var(--zc-contact-space-4);
  }

  .zc-contact-form-card h2 {
    font-size: clamp(1.58rem, 9vw, 2.15rem);
  }

  .zc-contact-field input,
  .zc-contact-field select,
  .zc-contact-field textarea {
    border-radius: var(--zc-contact-radius-sm);
  }
}

/* ------------------------------------------------------------
   Phase 8 — Help Panel
   Scope: right-side support help panel only. Builds the desktop side
   panel, muted inner cards, next-step explanation, response time,
   urgent-care limitation, and before-you-send checklist. Success state,
   tickets polish, mobile build, dark-mode wiring, and JS enhancements
   remain reserved for later phases.
   ------------------------------------------------------------ */

.zc-contact-help-panel {
  display: grid;
  gap: var(--zc-contact-space-4);
  padding: clamp(1rem, 2vw, 1.3rem);
  border: var(--zc-contact-border-width-strong) solid rgba(151, 170, 165, 0.32);
  border-radius: var(--zc-contact-radius-2xl);
  background: var(--zc-contact-surface);
  box-shadow: var(--zc-contact-shadow-soft);
}

.zc-contact-help-panel__header {
  display: grid;
  gap: var(--zc-contact-space-2);
  padding: var(--zc-contact-space-2) var(--zc-contact-space-2) var(--zc-contact-space-3);
}

.zc-contact-help-panel__eyebrow {
  margin: 0;
  color: var(--zc-contact-teal);
  font-size: var(--zc-contact-size-xs);
  font-weight: var(--zc-contact-weight-heavy);
  letter-spacing: var(--zc-contact-tracking-eyebrow);
  line-height: 1.2;
  text-transform: uppercase;
}

.zc-contact-help-panel h2 {
  margin: 0;
  color: var(--zc-contact-heading);
  font-family: var(--zc-contact-font-serif);
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  font-weight: var(--zc-contact-weight-heavy);
  letter-spacing: -0.04em;
  line-height: var(--zc-contact-line-heading);
}

.zc-contact-help-panel__header p:not(.zc-contact-help-panel__eyebrow) {
  margin: 0;
  color: var(--zc-contact-text-muted);
  font-size: var(--zc-contact-size-sm);
  font-weight: var(--zc-contact-weight-medium);
  line-height: 1.5;
}

.zc-contact-help-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--zc-contact-space-4);
  padding: var(--zc-contact-space-4);
  border: var(--zc-contact-border-width) solid var(--zc-contact-border-soft);
  border-radius: var(--zc-contact-radius-xl);
  color: var(--zc-contact-text);
}

.zc-contact-help-card--next {
  background: var(--zc-contact-teal-wash);
  border-color: rgba(44, 99, 102, 0.22);
}

.zc-contact-help-card--time {
  background: var(--zc-contact-ochre-wash);
  border-color: rgba(184, 135, 44, 0.22);
}

.zc-contact-help-card--urgent {
  background: var(--zc-contact-mauve-wash);
  border-color: rgba(117, 106, 162, 0.2);
}

.zc-contact-help-card--checklist {
  background: var(--zc-contact-moss-wash);
  border-color: rgba(111, 148, 104, 0.24);
}

.zc-contact-help-card__icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  background: var(--zc-contact-surface);
  color: var(--zc-contact-teal);
  font-size: var(--zc-contact-size-md);
  font-weight: var(--zc-contact-weight-heavy);
  line-height: 1;
  box-shadow: inset 0 0 0 var(--zc-contact-border-width) rgba(38, 60, 67, 0.08);
}

.zc-contact-help-card--time .zc-contact-help-card__icon {
  color: var(--zc-contact-warning);
}

.zc-contact-help-card--urgent .zc-contact-help-card__icon {
  color: var(--zc-contact-info);
}

.zc-contact-help-card--checklist .zc-contact-help-card__icon {
  color: var(--zc-contact-success);
}

.zc-contact-help-card h3 {
  margin: 0 0 var(--zc-contact-space-2);
  color: var(--zc-contact-heading);
  font-size: var(--zc-contact-size-lg);
  font-weight: var(--zc-contact-weight-heavy);
  line-height: var(--zc-contact-line-heading);
  letter-spacing: -0.02em;
}

.zc-contact-help-card p,
.zc-contact-help-card li {
  color: var(--zc-contact-text-muted);
  font-size: var(--zc-contact-size-sm);
  font-weight: var(--zc-contact-weight-medium);
  line-height: 1.5;
}

.zc-contact-help-card p,
.zc-contact-help-card ol,
.zc-contact-help-card ul {
  margin: 0;
}

.zc-contact-help-steps,
.zc-contact-help-checklist {
  display: grid;
  gap: 0.42rem;
  padding-left: 1.1rem;
}

.zc-contact-help-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: var(--zc-contact-space-3);
  padding: 0.48rem 0.78rem;
  border: var(--zc-contact-border-width) solid rgba(44, 99, 102, 0.26);
  border-radius: var(--zc-contact-radius-pill);
  background: rgba(255, 253, 248, 0.58);
  color: var(--zc-contact-teal);
  font-size: var(--zc-contact-size-sm);
  font-weight: var(--zc-contact-weight-bold);
  text-decoration: none;
}

.zc-contact-help-card a:hover {
  background: var(--zc-contact-teal-wash);
}

.zc-contact-help-card a:focus-visible {
  outline: 3px solid var(--zc-contact-focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--zc-contact-focus-ring);
}

@media (max-width: 1180px) {
  .zc-contact-help-panel {
    border-radius: var(--zc-contact-radius-xl);
  }
}

@media (max-width: 760px) {
  .zc-contact-help-panel {
    gap: var(--zc-contact-space-3);
    padding: var(--zc-contact-space-4);
  }

  .zc-contact-help-card {
    border-radius: var(--zc-contact-radius-lg);
  }
}

@media (max-width: 520px) {
  .zc-contact-help-panel {
    border-radius: var(--zc-contact-radius-lg);
  }

  .zc-contact-help-card {
    grid-template-columns: 1fr;
  }
}


/* ------------------------------------------------------------
   Phase 9 — Success State
   Scope: success message shown after ticket creation only. Builds the
   large friendly confirmation card, ticket number emphasis, View My Tickets
   and Send Another Message actions, and accessible status/focus styling.
   My Tickets section polish, JS submit enhancements, mobile build, and final
   testing remain reserved for later phases.
   ------------------------------------------------------------ */

.zc-contact-success-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--zc-contact-space-5);
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
  border: var(--zc-contact-border-width-strong) solid rgba(111, 148, 104, 0.42);
  border-radius: var(--zc-contact-radius-2xl);
  background: var(--zc-contact-moss-wash);
  color: var(--zc-contact-text);
  box-shadow: var(--zc-contact-shadow-card);
}

.zc-contact-success-card:focus {
  outline: none;
}

.zc-contact-success-card:focus-visible {
  outline: 3px solid var(--zc-contact-focus);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px var(--zc-contact-focus-ring), var(--zc-contact-shadow-card);
}

.zc-contact-success-card__icon {
  display: inline-grid;
  width: clamp(54px, 8vw, 72px);
  height: clamp(54px, 8vw, 72px);
  place-items: center;
  border-radius: 24px;
  background: var(--zc-contact-success);
  color: var(--zc-contact-on-dark);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: var(--zc-contact-weight-heavy);
  line-height: 1;
  box-shadow: 0 16px 26px rgba(111, 148, 104, 0.22);
}

.zc-contact-success-card__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--zc-contact-space-2);
  min-width: 0;
}

.zc-contact-success-card__eyebrow {
  margin: 0;
  color: var(--zc-contact-success);
  font-size: var(--zc-contact-size-xs);
  font-weight: var(--zc-contact-weight-heavy);
  letter-spacing: var(--zc-contact-tracking-eyebrow);
  line-height: 1.2;
  text-transform: uppercase;
}

.zc-contact-success-card h3 {
  margin: 0;
  color: var(--zc-contact-heading);
  font-family: var(--zc-contact-font-serif);
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: var(--zc-contact-weight-heavy);
  letter-spacing: -0.045em;
  line-height: var(--zc-contact-line-heading);
}

.zc-contact-success-card p {
  margin: 0;
  color: var(--zc-contact-text-muted);
  font-size: var(--zc-contact-size-md);
  font-weight: var(--zc-contact-weight-medium);
  line-height: var(--zc-contact-line-body);
}

.zc-contact-success-card__lead {
  color: var(--zc-contact-text) !important;
}

.zc-contact-success-card__lead strong {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-inline: 0.15rem;
  padding: 0.18rem 0.58rem;
  border: var(--zc-contact-border-width) solid rgba(111, 148, 104, 0.35);
  border-radius: var(--zc-contact-radius-pill);
  background: var(--zc-contact-surface);
  color: var(--zc-contact-heading);
  font-weight: var(--zc-contact-weight-heavy);
}

.zc-contact-success-card__actions {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--zc-contact-space-3);
  padding-top: var(--zc-contact-space-2);
}

.zc-contact-success-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.05rem;
  border-radius: var(--zc-contact-radius-pill);
  font-size: var(--zc-contact-size-sm);
  font-weight: var(--zc-contact-weight-heavy);
  line-height: 1.15;
  text-decoration: none;
  transition: transform var(--zc-contact-duration-fast) var(--zc-contact-ease),
    box-shadow var(--zc-contact-duration-fast) var(--zc-contact-ease),
    background var(--zc-contact-duration-fast) var(--zc-contact-ease);
}

.zc-contact-success-action--primary {
  border: var(--zc-contact-border-width) solid transparent;
  background: var(--zc-contact-teal);
  color: var(--zc-contact-on-dark);
  box-shadow: var(--zc-contact-shadow-button);
}

.zc-contact-success-action--secondary {
  border: var(--zc-contact-border-width) solid rgba(44, 99, 102, 0.28);
  background: var(--zc-contact-surface);
  color: var(--zc-contact-teal);
}

.zc-contact-success-action:hover {
  transform: translateY(-1px);
}

.zc-contact-success-action--primary:hover {
  box-shadow: 0 16px 28px rgba(44, 99, 102, 0.22);
}

.zc-contact-success-action--secondary:hover {
  background: var(--zc-contact-teal-wash);
}

.zc-contact-success-action:focus-visible {
  outline: 3px solid var(--zc-contact-focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--zc-contact-focus-ring), var(--zc-contact-shadow-button);
}

@media (max-width: 620px) {
  .zc-contact-success-card {
    grid-template-columns: 1fr;
    border-radius: var(--zc-contact-radius-xl);
  }

  .zc-contact-success-card__actions,
  .zc-contact-success-action {
    width: 100%;
  }
}

/* ------------------------------------------------------------
   Phase 10 — My Tickets Section
   Scope: logged-in ticket list cards, empty/logged-out states, ticket
   conversation details, and reply card styling only. Backend ticket lookup,
   ownership checks, reply insertion, mobile build, JS enhancements, and final
   QA remain unchanged or reserved for later phases.
   ------------------------------------------------------------ */

.zc-contact-tickets-card {
  display: grid;
  gap: var(--zc-contact-space-5);
  padding: clamp(1rem, 2.6vw, 1.8rem);
  border: var(--zc-contact-border-width-strong) solid var(--zc-contact-border-soft);
  border-radius: var(--zc-contact-radius-2xl);
  background: var(--zc-contact-surface);
  box-shadow: var(--zc-contact-shadow-card);
}

.zc-contact-tickets-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--zc-contact-space-5);
  padding-bottom: var(--zc-contact-space-5);
  border-bottom: var(--zc-contact-border-width) solid var(--zc-contact-border-soft);
}

.zc-contact-tickets-header__eyebrow {
  margin: 0 0 var(--zc-contact-space-2);
  color: var(--zc-contact-teal);
  font-size: var(--zc-contact-size-xs);
  font-weight: var(--zc-contact-weight-heavy);
  letter-spacing: var(--zc-contact-tracking-eyebrow);
  line-height: 1.2;
  text-transform: uppercase;
}

.zc-contact-tickets-header h2 {
  margin: 0;
  color: var(--zc-contact-heading);
  font-family: var(--zc-contact-font-serif);
  font-size: clamp(2rem, 4vw, 3.05rem);
  font-weight: var(--zc-contact-weight-heavy);
  letter-spacing: -0.045em;
  line-height: var(--zc-contact-line-heading);
}

.zc-contact-tickets-header__text {
  max-width: 58ch;
  margin: var(--zc-contact-space-2) 0 0;
  color: var(--zc-contact-text-muted);
  font-size: var(--zc-contact-size-md);
  font-weight: var(--zc-contact-weight-medium);
  line-height: var(--zc-contact-line-body);
}

.zc-contact-tickets-header__actions,
.zc-contact-ticket-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--zc-contact-space-3);
}

.zc-contact-ticket-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.66rem 0.98rem;
  border-radius: var(--zc-contact-radius-pill);
  font-size: var(--zc-contact-size-sm);
  font-weight: var(--zc-contact-weight-heavy);
  line-height: 1.15;
  text-decoration: none;
  transition: transform var(--zc-contact-duration-fast) var(--zc-contact-ease),
    box-shadow var(--zc-contact-duration-fast) var(--zc-contact-ease),
    background var(--zc-contact-duration-fast) var(--zc-contact-ease);
}

.zc-contact-ticket-action--primary {
  border: var(--zc-contact-border-width) solid transparent;
  background: var(--zc-contact-teal);
  color: var(--zc-contact-on-dark);
  box-shadow: var(--zc-contact-shadow-button);
}

.zc-contact-ticket-action--secondary {
  border: var(--zc-contact-border-width) solid rgba(44, 99, 102, 0.24);
  background: var(--zc-contact-teal-wash);
  color: var(--zc-contact-teal);
}

.zc-contact-ticket-action:hover {
  transform: translateY(-1px);
}

.zc-contact-ticket-action--secondary:hover {
  background: var(--zc-contact-surface-raised);
}

.zc-contact-ticket-action:focus-visible,
.zc-contact-ticket-thread summary:focus-visible,
.zc-contact-ticket-reply textarea:focus-visible,
.zc-contact-ticket-reply button:focus-visible {
  outline: 3px solid var(--zc-contact-focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--zc-contact-focus-ring);
}

.zc-contact-ticket-alert {
  display: grid;
  gap: var(--zc-contact-space-2);
  padding: var(--zc-contact-space-4);
  border: var(--zc-contact-border-width) solid var(--zc-contact-border-soft);
  border-radius: var(--zc-contact-radius-lg);
}

.zc-contact-ticket-alert h3,
.zc-contact-ticket-alert p,
.zc-contact-ticket-alert ul {
  margin: 0;
}

.zc-contact-ticket-alert h3 {
  color: var(--zc-contact-heading);
  font-size: var(--zc-contact-size-lg);
  font-weight: var(--zc-contact-weight-heavy);
  line-height: var(--zc-contact-line-heading);
}

.zc-contact-ticket-alert p,
.zc-contact-ticket-alert li {
  color: var(--zc-contact-text);
  font-size: var(--zc-contact-size-sm);
  font-weight: var(--zc-contact-weight-medium);
  line-height: var(--zc-contact-line-body);
}

.zc-contact-ticket-alert ul {
  padding-left: 1.15rem;
}

.zc-contact-ticket-alert--error {
  border-color: var(--zc-contact-border-danger);
  background: var(--zc-contact-error-soft);
}

.zc-contact-ticket-alert--success {
  border-color: rgba(111, 148, 104, 0.38);
  background: var(--zc-contact-moss-wash);
}

.zc-contact-ticket-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--zc-contact-space-5);
  padding: clamp(1.1rem, 2.5vw, 1.65rem);
  border: var(--zc-contact-border-width) solid var(--zc-contact-border-soft);
  border-radius: var(--zc-contact-radius-xl);
  background: var(--zc-contact-teal-wash);
}

.zc-contact-ticket-empty--login {
  background: var(--zc-contact-lavender-wash);
}

.zc-contact-ticket-empty__icon {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: var(--zc-contact-border-width) solid rgba(44, 99, 102, 0.22);
  border-radius: 22px;
  background: var(--zc-contact-surface);
  color: var(--zc-contact-teal);
  font-size: 1.45rem;
  font-weight: var(--zc-contact-weight-heavy);
  line-height: 1;
}

.zc-contact-ticket-empty h3,
.zc-contact-ticket-empty p {
  margin: 0;
}

.zc-contact-ticket-empty h3 {
  color: var(--zc-contact-heading);
  font-family: var(--zc-contact-font-serif);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: var(--zc-contact-weight-heavy);
  letter-spacing: -0.035em;
  line-height: var(--zc-contact-line-heading);
}

.zc-contact-ticket-empty p {
  margin-top: var(--zc-contact-space-2);
  color: var(--zc-contact-text-muted);
  font-size: var(--zc-contact-size-md);
  font-weight: var(--zc-contact-weight-medium);
  line-height: var(--zc-contact-line-body);
}

.zc-contact-ticket-empty__actions {
  justify-content: flex-start;
  margin-top: var(--zc-contact-space-4);
}

.zc-contact-ticket-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--zc-contact-space-3);
}

.zc-contact-ticket-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.5rem 0.82rem;
  border: var(--zc-contact-border-width) solid var(--zc-contact-border-soft);
  border-radius: var(--zc-contact-radius-pill);
  background: var(--zc-contact-surface-raised);
  color: var(--zc-contact-text-muted);
  font-size: var(--zc-contact-size-sm);
  font-weight: var(--zc-contact-weight-bold);
  line-height: 1.15;
}

.zc-contact-ticket-stats strong {
  margin-right: 0.35rem;
  color: var(--zc-contact-heading);
  font-weight: var(--zc-contact-weight-heavy);
}

.zc-contact-ticket-stack {
  display: grid;
  gap: var(--zc-contact-space-4);
}

.zc-contact-ticket-card,
.zc-contact-ticket-stack > .zc-contact-ticket-card {
  position: relative;
  display: grid;
  gap: var(--zc-contact-space-4);
  min-width: 0;
  padding: clamp(1rem, 2.2vw, 1.45rem);
  overflow: hidden;
  border: var(--zc-contact-border-width-strong) solid var(--zc-contact-border-soft);
  border-radius: var(--zc-contact-radius-xl);
  background: var(--zc-contact-surface-raised);
  box-shadow: var(--zc-contact-shadow-soft);
}

.zc-contact-ticket-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--zc-contact-teal);
}

.zc-contact-ticket-card--in_progress::before {
  background: var(--zc-contact-ochre);
}

.zc-contact-ticket-card--resolved::before {
  background: var(--zc-contact-moss);
}

.zc-contact-ticket-card--open::before {
  background: var(--zc-contact-teal);
}

.zc-contact-ticket-card__topline,
.zc-contact-ticket-card__main,
.zc-contact-ticket-card__meta {
  position: relative;
  z-index: 1;
}

.zc-contact-ticket-card__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--zc-contact-space-3);
}

.zc-contact-ticket-card__number {
  color: var(--zc-contact-text-muted);
  font-size: var(--zc-contact-size-xs);
  font-weight: var(--zc-contact-weight-heavy);
  letter-spacing: var(--zc-contact-tracking-eyebrow);
  line-height: 1.2;
  text-transform: uppercase;
}

.zc-contact-ticket-status,
.zc-contact-ticket-priority {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.36rem 0.7rem;
  border-radius: var(--zc-contact-radius-pill);
  font-size: var(--zc-contact-size-xs);
  font-weight: var(--zc-contact-weight-heavy);
  line-height: 1.05;
}

.zc-contact-ticket-status--open,
.zc-contact-ticket-priority--medium,
.zc-contact-ticket-priority--low {
  border: var(--zc-contact-border-width) solid rgba(44, 99, 102, 0.22);
  background: var(--zc-contact-teal-wash);
  color: var(--zc-contact-teal);
}

.zc-contact-ticket-status--in_progress,
.zc-contact-ticket-priority--high {
  border: var(--zc-contact-border-width) solid rgba(184, 135, 44, 0.3);
  background: var(--zc-contact-ochre-wash);
  color: var(--zc-contact-warning);
}

.zc-contact-ticket-status--resolved {
  border: var(--zc-contact-border-width) solid rgba(111, 148, 104, 0.3);
  background: var(--zc-contact-moss-wash);
  color: var(--zc-contact-success);
}

.zc-contact-ticket-priority--urgent {
  border: var(--zc-contact-border-width) solid rgba(185, 94, 84, 0.28);
  background: var(--zc-contact-coral-wash);
  color: var(--zc-contact-error);
}

.zc-contact-ticket-card__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--zc-contact-space-4);
}

.zc-contact-ticket-card h3 {
  margin: 0;
  color: var(--zc-contact-heading);
  font-family: var(--zc-contact-font-serif);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: var(--zc-contact-weight-heavy);
  letter-spacing: -0.035em;
  line-height: var(--zc-contact-line-heading);
}

.zc-contact-ticket-card__updated,
.zc-contact-ticket-card__preview,
.zc-contact-ticket-card__meta,
.zc-contact-ticket-message__sender,
.zc-contact-ticket-reply__field p {
  margin: 0;
  color: var(--zc-contact-text-muted);
  font-size: var(--zc-contact-size-sm);
  font-weight: var(--zc-contact-weight-medium);
  line-height: var(--zc-contact-line-body);
}

.zc-contact-ticket-card__updated {
  margin-top: var(--zc-contact-space-2);
}

.zc-contact-ticket-card__preview {
  position: relative;
  z-index: 1;
  padding: var(--zc-contact-space-4);
  border: var(--zc-contact-border-width) solid var(--zc-contact-border-soft);
  border-radius: var(--zc-contact-radius-lg);
  background: var(--zc-contact-surface-soft);
  color: var(--zc-contact-text);
}

.zc-contact-ticket-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--zc-contact-space-3);
}

.zc-contact-ticket-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.32rem 0.66rem;
  border: var(--zc-contact-border-width) solid var(--zc-contact-border-soft);
  border-radius: var(--zc-contact-radius-pill);
  background: rgba(255, 253, 248, 0.62);
}

.zc-contact-ticket-thread {
  position: relative;
  z-index: 1;
  border: var(--zc-contact-border-width) solid var(--zc-contact-border-soft);
  border-radius: var(--zc-contact-radius-lg);
  background: var(--zc-contact-surface);
}

.zc-contact-ticket-thread summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0.76rem var(--zc-contact-space-4);
  cursor: pointer;
  color: var(--zc-contact-teal);
  font-size: var(--zc-contact-size-sm);
  font-weight: var(--zc-contact-weight-heavy);
  line-height: 1.2;
  list-style: none;
}

.zc-contact-ticket-thread summary::-webkit-details-marker {
  display: none;
}

.zc-contact-ticket-thread summary::after {
  content: "+";
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: var(--zc-contact-radius-pill);
  background: var(--zc-contact-teal-wash);
  color: var(--zc-contact-teal);
  font-size: 1.1rem;
  font-weight: var(--zc-contact-weight-heavy);
}

.zc-contact-ticket-thread[open] summary::after {
  content: "−";
}

.zc-contact-ticket-thread__body {
  display: grid;
  gap: var(--zc-contact-space-4);
  padding: 0 var(--zc-contact-space-4) var(--zc-contact-space-4);
}

.zc-contact-ticket-message {
  display: grid;
  gap: var(--zc-contact-space-2);
  padding: var(--zc-contact-space-4);
  border: var(--zc-contact-border-width) solid var(--zc-contact-border-soft);
  border-radius: var(--zc-contact-radius-lg);
  background: var(--zc-contact-surface-soft);
}

.zc-contact-ticket-message--support {
  border-color: rgba(44, 99, 102, 0.22);
  background: var(--zc-contact-teal-wash);
}

.zc-contact-ticket-message--client {
  border-color: rgba(148, 135, 189, 0.24);
  background: var(--zc-contact-lavender-wash);
}

.zc-contact-ticket-message__sender strong {
  color: var(--zc-contact-heading);
}

.zc-contact-ticket-message__text {
  color: var(--zc-contact-text);
  font-size: var(--zc-contact-size-sm);
  font-weight: var(--zc-contact-weight-medium);
  line-height: var(--zc-contact-line-relaxed);
  overflow-wrap: anywhere;
}

.zc-contact-ticket-reply {
  display: grid;
  gap: var(--zc-contact-space-3);
  padding: var(--zc-contact-space-4);
  border: var(--zc-contact-border-width-strong) solid rgba(44, 99, 102, 0.18);
  border-radius: var(--zc-contact-radius-lg);
  background: var(--zc-contact-surface-raised);
}

.zc-contact-ticket-reply__field {
  display: grid;
  gap: var(--zc-contact-space-2);
}

.zc-contact-ticket-reply label {
  color: var(--zc-contact-heading);
  font-size: var(--zc-contact-size-sm);
  font-weight: var(--zc-contact-weight-heavy);
  line-height: 1.25;
}

.zc-contact-ticket-reply textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: var(--zc-contact-border-width) solid var(--zc-contact-border);
  border-radius: var(--zc-contact-radius-md);
  background: var(--zc-contact-surface);
  color: var(--zc-contact-text);
  font: inherit;
  font-size: var(--zc-contact-size-md);
  line-height: var(--zc-contact-line-body);
  padding: 0.9rem 1rem;
}

.zc-contact-ticket-reply textarea::placeholder {
  color: var(--zc-contact-placeholder);
}

.zc-contact-ticket-reply button {
  justify-self: start;
  min-height: 44px;
  padding: 0.72rem 1.05rem;
  border: 0;
  border-radius: var(--zc-contact-radius-pill);
  background: var(--zc-contact-teal);
  color: var(--zc-contact-on-dark);
  font: inherit;
  font-size: var(--zc-contact-size-sm);
  font-weight: var(--zc-contact-weight-heavy);
  cursor: pointer;
  box-shadow: var(--zc-contact-shadow-button);
}

@media (max-width: 760px) {
  .zc-contact-tickets-card {
    border-radius: var(--zc-contact-radius-xl);
  }

  .zc-contact-tickets-header,
  .zc-contact-ticket-card__main {
    grid-template-columns: 1fr;
  }

  .zc-contact-tickets-header__actions,
  .zc-contact-ticket-action,
  .zc-contact-ticket-reply button {
    width: 100%;
  }

  .zc-contact-ticket-empty {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .zc-contact-tickets-card,
  .zc-contact-ticket-card,
  .zc-contact-ticket-empty,
  .zc-contact-ticket-thread,
  .zc-contact-ticket-message,
  .zc-contact-ticket-reply {
    border-radius: var(--zc-contact-radius-lg);
  }

  .zc-contact-ticket-stats,
  .zc-contact-ticket-card__topline,
  .zc-contact-ticket-card__meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .zc-contact-ticket-stats span,
  .zc-contact-ticket-card__meta span,
  .zc-contact-ticket-status,
  .zc-contact-ticket-priority {
    width: 100%;
    justify-content: center;
  }
}


/* ------------------------------------------------------------
   Phase 12 — Visual Polish
   Scope: card styling, button styling, form styling, and minimal motion only.
   No new layout phase, mobile-specific build, dark-mode wiring, JS behavior,
   ticket backend, or database behavior is changed in this phase.
   ------------------------------------------------------------ */

/* Shared polish foundation */
body.zc-contact-phase-twelve .zc-contact-stage,
body.zc-contact-phase-twelve .zc-contact-form-card,
body.zc-contact-phase-twelve .zc-contact-help-panel,
body.zc-contact-phase-twelve .zc-contact-tickets-card,
body.zc-contact-phase-twelve .zc-contact-success-card,
body.zc-contact-phase-twelve .zc-contact-ticket-card,
body.zc-contact-phase-twelve .zc-contact-ticket-empty,
body.zc-contact-phase-twelve .zc-contact-choice-card,
body.zc-contact-phase-twelve .zc-contact-help-card {
  box-sizing: border-box;
}

body.zc-contact-phase-twelve .zc-contact-stage {
  border-color: rgba(151, 170, 165, 0.32);
  background: var(--zc-contact-stage);
  box-shadow: 0 22px 58px rgba(38, 60, 67, 0.08), 0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

body.zc-contact-phase-twelve .zc-contact-stage::before {
  opacity: 0.28;
}

body.zc-contact-phase-twelve .zc-contact-stage__inner {
  gap: clamp(1.15rem, 2.2vw, 1.75rem);
}

/* Card polish */
body.zc-contact-phase-twelve .zc-contact-choice-card,
body.zc-contact-phase-twelve .zc-contact-form-card,
body.zc-contact-phase-twelve .zc-contact-help-panel,
body.zc-contact-phase-twelve .zc-contact-tickets-card,
body.zc-contact-phase-twelve .zc-contact-success-card,
body.zc-contact-phase-twelve .zc-contact-ticket-card,
body.zc-contact-phase-twelve .zc-contact-ticket-empty {
  border-color: rgba(151, 170, 165, 0.34);
  box-shadow: 0 16px 34px rgba(38, 60, 67, 0.07);
}

body.zc-contact-phase-twelve .zc-contact-form-card,
body.zc-contact-phase-twelve .zc-contact-help-panel,
body.zc-contact-phase-twelve .zc-contact-tickets-card,
body.zc-contact-phase-twelve .zc-contact-ticket-card,
body.zc-contact-phase-twelve .zc-contact-ticket-empty {
  background: var(--zc-contact-surface);
}

body.zc-contact-phase-twelve .zc-contact-choice-card {
  min-height: 164px;
  align-items: stretch;
  border-width: var(--zc-contact-border-width-strong);
  box-shadow: 0 12px 26px rgba(38, 60, 67, 0.055);
}

body.zc-contact-phase-twelve .zc-contact-choice-card--question {
  background: var(--zc-contact-teal-wash);
}

body.zc-contact-phase-twelve .zc-contact-choice-card--problem {
  background: var(--zc-contact-coral-wash);
}

body.zc-contact-phase-twelve .zc-contact-choice-card--ticket {
  background: var(--zc-contact-lavender-wash);
}

body.zc-contact-phase-twelve .zc-contact-choice-card__icon,
body.zc-contact-phase-twelve .zc-contact-help-card__icon,
body.zc-contact-phase-twelve .zc-contact-success-card__icon,
body.zc-contact-phase-twelve .zc-contact-ticket-empty__icon {
  box-shadow: 0 8px 18px rgba(38, 60, 67, 0.08);
}

body.zc-contact-phase-twelve .zc-contact-choice-card:hover,
body.zc-contact-phase-twelve .zc-contact-help-card:hover,
body.zc-contact-phase-twelve .zc-contact-ticket-card:hover {
  border-color: rgba(44, 99, 102, 0.28);
  box-shadow: 0 18px 36px rgba(38, 60, 67, 0.09);
}

body.zc-contact-phase-twelve .zc-contact-choice-card.is-selected {
  border-color: rgba(44, 99, 102, 0.44);
  box-shadow: 0 18px 36px rgba(38, 60, 67, 0.1), 3px 4px 0 rgba(44, 99, 102, 0.11);
}

body.zc-contact-phase-twelve .zc-contact-choice-card__state,
body.zc-contact-phase-twelve .zc-contact-hero__tabs a,
body.zc-contact-phase-twelve .zc-contact-ticket-stats span,
body.zc-contact-phase-twelve .zc-contact-ticket-card__meta span {
  border-color: rgba(151, 170, 165, 0.34);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

body.zc-contact-phase-twelve .zc-contact-help-card {
  border-width: var(--zc-contact-border-width);
  box-shadow: 0 10px 22px rgba(38, 60, 67, 0.055);
}

body.zc-contact-phase-twelve .zc-contact-help-card--next {
  border-color: rgba(44, 99, 102, 0.18);
}

body.zc-contact-phase-twelve .zc-contact-help-card--time {
  border-color: rgba(184, 135, 44, 0.2);
}

body.zc-contact-phase-twelve .zc-contact-help-card--urgent {
  border-color: rgba(185, 94, 84, 0.18);
}

body.zc-contact-phase-twelve .zc-contact-help-card--checklist {
  border-color: rgba(117, 106, 162, 0.18);
}

body.zc-contact-phase-twelve .zc-contact-ticket-card::before {
  width: 8px;
}

body.zc-contact-phase-twelve .zc-contact-ticket-thread,
body.zc-contact-phase-twelve .zc-contact-ticket-message,
body.zc-contact-phase-twelve .zc-contact-ticket-reply,
body.zc-contact-phase-twelve .zc-contact-ticket-card__preview {
  border-color: rgba(151, 170, 165, 0.3);
  box-shadow: 0 8px 18px rgba(38, 60, 67, 0.045);
}

/* Button polish */
body.zc-contact-phase-twelve .zc-contact-submit-button,
body.zc-contact-phase-twelve .zc-contact-success-action--primary,
body.zc-contact-phase-twelve .zc-contact-ticket-action--primary,
body.zc-contact-phase-twelve .zc-contact-ticket-reply button {
  border: var(--zc-contact-border-width) solid rgba(23, 43, 52, 0.12);
  background: var(--zc-contact-teal);
  color: var(--zc-contact-on-dark);
  box-shadow: 0 14px 24px rgba(44, 99, 102, 0.2);
}

body.zc-contact-phase-twelve .zc-contact-success-action--secondary,
body.zc-contact-phase-twelve .zc-contact-ticket-action--secondary,
body.zc-contact-phase-twelve .zc-contact-hero__tabs a,
body.zc-contact-phase-twelve .zc-contact-phase-scaffold__tabs a {
  background: var(--zc-contact-surface-raised);
  color: var(--zc-contact-teal);
  border: var(--zc-contact-border-width) solid rgba(44, 99, 102, 0.18);
}

body.zc-contact-phase-twelve .zc-contact-hero__tabs a[aria-current="page"],
body.zc-contact-phase-twelve .zc-contact-phase-scaffold__tabs a[aria-current="page"] {
  background: var(--zc-contact-ochre-soft);
  color: var(--zc-contact-ink);
  border-color: rgba(184, 135, 44, 0.36);
}

body.zc-contact-phase-twelve .zc-contact-submit-button:hover,
body.zc-contact-phase-twelve .zc-contact-success-action--primary:hover,
body.zc-contact-phase-twelve .zc-contact-ticket-action--primary:hover,
body.zc-contact-phase-twelve .zc-contact-ticket-reply button:hover {
  filter: saturate(1.04) brightness(1.02);
  box-shadow: 0 18px 30px rgba(44, 99, 102, 0.24);
}

body.zc-contact-phase-twelve .zc-contact-success-action--secondary:hover,
body.zc-contact-phase-twelve .zc-contact-ticket-action--secondary:hover,
body.zc-contact-phase-twelve .zc-contact-hero__tabs a:hover,
body.zc-contact-phase-twelve .zc-contact-phase-scaffold__tabs a:hover {
  background: var(--zc-contact-teal-wash);
  border-color: rgba(44, 99, 102, 0.28);
}

body.zc-contact-phase-twelve .zc-contact-submit-button:active,
body.zc-contact-phase-twelve .zc-contact-success-action:active,
body.zc-contact-phase-twelve .zc-contact-ticket-action:active,
body.zc-contact-phase-twelve .zc-contact-ticket-reply button:active,
body.zc-contact-phase-twelve .zc-contact-hero__tabs a:active {
  transform: translateY(0);
}

body.zc-contact-phase-twelve .zc-contact-submit-button:disabled,
body.zc-contact-phase-twelve .zc-contact-ticket-reply button:disabled,
body.zc-contact-phase-twelve button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: var(--zc-contact-disabled-opacity);
  box-shadow: none;
}

/* Form polish */
body.zc-contact-phase-twelve .zc-contact-form-card__header,
body.zc-contact-phase-twelve .zc-contact-help-panel__header,
body.zc-contact-phase-twelve .zc-contact-tickets-header {
  padding-bottom: var(--zc-contact-space-4);
  border-bottom: var(--zc-contact-border-width) solid rgba(151, 170, 165, 0.22);
}

body.zc-contact-phase-twelve .zc-contact-form {
  gap: var(--zc-contact-space-5);
}

body.zc-contact-phase-twelve .zc-contact-field {
  gap: 0.46rem;
}

body.zc-contact-phase-twelve .zc-contact-field label,
body.zc-contact-phase-twelve .zc-contact-ticket-reply label {
  color: var(--zc-contact-heading);
  letter-spacing: -0.01em;
}

body.zc-contact-phase-twelve .zc-contact-field input,
body.zc-contact-phase-twelve .zc-contact-field select,
body.zc-contact-phase-twelve .zc-contact-field textarea,
body.zc-contact-phase-twelve .zc-contact-ticket-reply textarea {
  border-color: rgba(151, 170, 165, 0.5);
  background: var(--zc-contact-surface-raised);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: border-color var(--zc-contact-duration-fast) var(--zc-contact-ease),
    box-shadow var(--zc-contact-duration-fast) var(--zc-contact-ease),
    background-color var(--zc-contact-duration-fast) var(--zc-contact-ease);
}

body.zc-contact-phase-twelve .zc-contact-field input:hover,
body.zc-contact-phase-twelve .zc-contact-field select:hover,
body.zc-contact-phase-twelve .zc-contact-field textarea:hover,
body.zc-contact-phase-twelve .zc-contact-ticket-reply textarea:hover {
  border-color: rgba(44, 99, 102, 0.34);
}

body.zc-contact-phase-twelve .zc-contact-field input:focus,
body.zc-contact-phase-twelve .zc-contact-field select:focus,
body.zc-contact-phase-twelve .zc-contact-field textarea:focus,
body.zc-contact-phase-twelve .zc-contact-ticket-reply textarea:focus {
  border-color: var(--zc-contact-focus);
  background: var(--zc-contact-surface);
  outline: none;
  box-shadow: 0 0 0 5px var(--zc-contact-focus-ring), 0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

body.zc-contact-phase-twelve .zc-contact-field.has-error input,
body.zc-contact-phase-twelve .zc-contact-field.has-error select,
body.zc-contact-phase-twelve .zc-contact-field.has-error textarea {
  border-color: var(--zc-contact-border-danger);
  background: var(--zc-contact-coral-wash);
  box-shadow: 0 0 0 5px rgba(185, 94, 84, 0.12);
}

body.zc-contact-phase-twelve .zc-contact-field__error,
body.zc-contact-phase-twelve .zc-contact-error-summary,
body.zc-contact-phase-twelve .zc-contact-ticket-alert--error {
  border-color: rgba(185, 94, 84, 0.24);
}

body.zc-contact-phase-twelve .zc-contact-field__help,
body.zc-contact-phase-twelve .zc-contact-form-card__helper,
body.zc-contact-phase-twelve .zc-contact-help-panel__header p:not(.zc-contact-help-panel__eyebrow),
body.zc-contact-phase-twelve .zc-contact-tickets-header__text {
  color: var(--zc-contact-text-muted);
}

body.zc-contact-phase-twelve ::placeholder {
  color: var(--zc-contact-placeholder);
  opacity: 0.9;
}

body.zc-contact-phase-twelve .zc-contact-form-card__status,
body.zc-contact-phase-twelve .zc-contact-hero__pill,
body.zc-contact-phase-twelve .zc-contact-ticket-status,
body.zc-contact-phase-twelve .zc-contact-ticket-priority {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

/* Minimal motion polish */
body.zc-contact-phase-twelve .zc-contact-choice-card,
body.zc-contact-phase-twelve .zc-contact-help-card,
body.zc-contact-phase-twelve .zc-contact-ticket-card,
body.zc-contact-phase-twelve .zc-contact-submit-button,
body.zc-contact-phase-twelve .zc-contact-success-action,
body.zc-contact-phase-twelve .zc-contact-ticket-action,
body.zc-contact-phase-twelve .zc-contact-ticket-reply button,
body.zc-contact-phase-twelve .zc-contact-hero__tabs a {
  transition: transform var(--zc-contact-duration-fast) var(--zc-contact-ease),
    border-color var(--zc-contact-duration-fast) var(--zc-contact-ease),
    background-color var(--zc-contact-duration-fast) var(--zc-contact-ease),
    box-shadow var(--zc-contact-duration-fast) var(--zc-contact-ease),
    color var(--zc-contact-duration-fast) var(--zc-contact-ease),
    filter var(--zc-contact-duration-fast) var(--zc-contact-ease);
}

body.zc-contact-phase-twelve .zc-contact-choice-card:hover,
body.zc-contact-phase-twelve .zc-contact-help-card:hover,
body.zc-contact-phase-twelve .zc-contact-ticket-card:hover,
body.zc-contact-phase-twelve .zc-contact-submit-button:hover,
body.zc-contact-phase-twelve .zc-contact-success-action:hover,
body.zc-contact-phase-twelve .zc-contact-ticket-action:hover,
body.zc-contact-phase-twelve .zc-contact-ticket-reply button:hover,
body.zc-contact-phase-twelve .zc-contact-hero__tabs a:hover {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  body.zc-contact-phase-twelve *,
  body.zc-contact-phase-twelve *::before,
  body.zc-contact-phase-twelve *::after {
    scroll-behavior: auto !important;
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* ------------------------------------------------------------
   Phase 13 — Mobile Build
   Scope: mobile header fit, mobile stack order, bottom-nav clearance,
   full-width mobile form controls, large textareas, safe-area spacing,
   and 320/390/430px width hardening only.
   Dark-mode wiring, JavaScript enhancements, backend compatibility review,
   and final QA remain reserved for later phases.
   ------------------------------------------------------------ */

body.zc-contact-phase-thirteen {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.zc-contact-phase-thirteen .zc-contact-shell,
body.zc-contact-phase-thirteen .zc-contact-main,
body.zc-contact-phase-thirteen .zc-contact-page,
body.zc-contact-phase-thirteen .zc-contact-stage,
body.zc-contact-phase-thirteen .zc-contact-stage__inner,
body.zc-contact-phase-thirteen .zc-contact-stage__body,
body.zc-contact-phase-thirteen .zc-contact-section,
body.zc-contact-phase-thirteen .zc-contact-two-column,
body.zc-contact-phase-thirteen .zc-contact-column,
body.zc-contact-phase-thirteen .zc-contact-form,
body.zc-contact-phase-thirteen .zc-contact-form__grid,
body.zc-contact-phase-thirteen .zc-contact-field,
body.zc-contact-phase-thirteen .zc-contact-help-panel,
body.zc-contact-phase-thirteen .zc-contact-tickets-card,
body.zc-contact-phase-thirteen .zc-contact-ticket-stack,
body.zc-contact-phase-thirteen .zc-contact-ticket-card,
body.zc-contact-phase-thirteen .zc-contact-ticket-thread,
body.zc-contact-phase-thirteen .zc-contact-ticket-message,
body.zc-contact-phase-thirteen .zc-contact-ticket-reply {
  max-width: 100%;
  min-width: 0;
}

body.zc-contact-phase-thirteen .zc-contact-main {
  scroll-padding-top: 86px;
}

body.zc-contact-phase-thirteen .zc-contact-choice-grid {
  scroll-margin-top: 88px;
}

body.zc-contact-phase-thirteen #contact-form,
body.zc-contact-phase-thirteen #my-tickets,
body.zc-contact-phase-thirteen .zc-contact-success-card {
  scroll-margin-top: 96px;
}

body.zc-contact-phase-thirteen input,
body.zc-contact-phase-thirteen select,
body.zc-contact-phase-thirteen textarea,
body.zc-contact-phase-thirteen button {
  font-size: max(16px, 1rem);
}

body.zc-contact-phase-thirteen .zc-contact-field input,
body.zc-contact-phase-thirteen .zc-contact-field select,
body.zc-contact-phase-thirteen .zc-contact-field textarea,
body.zc-contact-phase-thirteen .zc-contact-ticket-reply textarea {
  -webkit-appearance: none;
  appearance: none;
}

@media (max-width: 860px) {
  body.zc-contact-phase-thirteen .zc-contact-main {
    display: block;
    width: 100%;
    min-height: 100svh;
    padding: clamp(0.62rem, 3vw, 1rem);
    padding-top: calc(0.72rem + env(safe-area-inset-top));
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  body.zc-contact-phase-thirteen .zc-contact-page {
    width: 100%;
  }

  body.zc-contact-phase-thirteen .zc-contact-stage {
    width: 100%;
    overflow: clip;
    border-radius: clamp(20px, 6vw, var(--zc-contact-radius-xl));
  }

  body.zc-contact-phase-thirteen .zc-contact-stage::before {
    background-size: 34px 34px;
    opacity: 0.18;
  }

  body.zc-contact-phase-thirteen .zc-contact-stage__inner {
    display: grid;
    gap: var(--zc-contact-space-4);
    padding: clamp(0.82rem, 4vw, 1.1rem);
  }

  body.zc-contact-phase-thirteen .zc-contact-hero {
    grid-template-columns: 1fr;
    gap: var(--zc-contact-space-4);
    padding: var(--zc-contact-space-2) 0 var(--zc-contact-space-3);
  }

  body.zc-contact-phase-thirteen .zc-contact-hero__copy {
    max-width: 100%;
  }

  body.zc-contact-phase-thirteen .zc-contact-hero__eyebrow {
    margin-bottom: 0.45rem;
    font-size: 0.74rem;
  }

  body.zc-contact-phase-thirteen .zc-contact-hero h1 {
    max-width: 9ch;
    font-size: clamp(2.65rem, 15vw, 4.4rem);
    line-height: 0.94;
  }

  body.zc-contact-phase-thirteen .zc-contact-hero__subtitle {
    max-width: 24rem;
    margin-top: 0.72rem;
    font-size: 1rem;
  }

  body.zc-contact-phase-thirteen .zc-contact-hero__aside {
    justify-items: stretch;
    width: 100%;
  }

  body.zc-contact-phase-thirteen .zc-contact-hero__pill {
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-height: var(--zc-contact-touch-target);
  }

  body.zc-contact-phase-thirteen .zc-contact-hero__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: var(--zc-contact-space-2);
  }

  body.zc-contact-phase-thirteen .zc-contact-hero__tabs a {
    justify-content: center;
    min-height: var(--zc-contact-touch-target);
    padding: 0.66rem 0.72rem;
    text-align: center;
    white-space: normal;
  }

  body.zc-contact-phase-thirteen .zc-contact-choice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--zc-contact-space-3);
  }

  body.zc-contact-phase-thirteen .zc-contact-choice-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: auto;
    padding: var(--zc-contact-space-4);
    gap: var(--zc-contact-space-3);
    border-radius: var(--zc-contact-radius-lg);
  }

  body.zc-contact-phase-thirteen .zc-contact-choice-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    font-size: 1.18rem;
  }

  body.zc-contact-phase-thirteen .zc-contact-choice-card__title {
    font-size: 1.02rem;
  }

  body.zc-contact-phase-thirteen .zc-contact-choice-card__text {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  body.zc-contact-phase-thirteen .zc-contact-choice-card__state {
    grid-column: 2;
    justify-self: start;
    align-self: start;
    min-height: 34px;
    margin-top: 0.1rem;
    padding: 0.34rem 0.62rem;
    font-size: 0.72rem;
  }

  body.zc-contact-phase-thirteen .zc-contact-stage__body {
    display: grid;
    gap: var(--zc-contact-space-4);
  }

  body.zc-contact-phase-thirteen .zc-contact-two-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--zc-contact-space-4);
  }

  body.zc-contact-phase-thirteen .zc-contact-column--primary {
    order: 1;
  }

  body.zc-contact-phase-thirteen .zc-contact-column--side {
    order: 2;
  }

  body.zc-contact-phase-thirteen .zc-contact-form-card,
  body.zc-contact-phase-thirteen .zc-contact-help-panel,
  body.zc-contact-phase-thirteen .zc-contact-tickets-card,
  body.zc-contact-phase-thirteen .zc-contact-success-card,
  body.zc-contact-phase-thirteen .zc-contact-ticket-empty,
  body.zc-contact-phase-thirteen .zc-contact-ticket-card {
    border-radius: var(--zc-contact-radius-lg);
  }

  body.zc-contact-phase-thirteen .zc-contact-form-card,
  body.zc-contact-phase-thirteen .zc-contact-tickets-card {
    padding: clamp(1rem, 4.6vw, 1.25rem);
  }

  body.zc-contact-phase-thirteen .zc-contact-form-card__header,
  body.zc-contact-phase-thirteen .zc-contact-form__footer,
  body.zc-contact-phase-thirteen .zc-contact-tickets-header,
  body.zc-contact-phase-thirteen .zc-contact-success-card {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: var(--zc-contact-space-4);
  }

  body.zc-contact-phase-thirteen .zc-contact-form-card h2,
  body.zc-contact-phase-thirteen .zc-contact-help-panel h2,
  body.zc-contact-phase-thirteen .zc-contact-tickets-header h2,
  body.zc-contact-phase-thirteen .zc-contact-success-card h3 {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
  }

  body.zc-contact-phase-thirteen .zc-contact-form-card__status {
    justify-self: start;
    width: fit-content;
    max-width: 100%;
    min-height: var(--zc-contact-touch-target);
    white-space: normal;
  }

  body.zc-contact-phase-thirteen .zc-contact-form,
  body.zc-contact-phase-thirteen .zc-contact-form__grid {
    gap: var(--zc-contact-space-4);
  }

  body.zc-contact-phase-thirteen .zc-contact-form__grid--two {
    grid-template-columns: 1fr;
  }

  body.zc-contact-phase-thirteen .zc-contact-field input,
  body.zc-contact-phase-thirteen .zc-contact-field select,
  body.zc-contact-phase-thirteen .zc-contact-field textarea {
    width: 100%;
    min-height: 54px;
    padding: 0.9rem 0.95rem;
    border-radius: var(--zc-contact-radius-md);
    line-height: 1.4;
  }

  body.zc-contact-phase-thirteen .zc-contact-field textarea,
  body.zc-contact-phase-thirteen .zc-contact-ticket-reply textarea {
    min-height: 138px;
  }

  body.zc-contact-phase-thirteen .zc-contact-field textarea#support-message {
    min-height: 202px;
  }

  body.zc-contact-phase-thirteen .zc-contact-submit-button,
  body.zc-contact-phase-thirteen .zc-contact-success-action,
  body.zc-contact-phase-thirteen .zc-contact-ticket-action,
  body.zc-contact-phase-thirteen .zc-contact-ticket-reply button,
  body.zc-contact-phase-thirteen .zc-contact-help-card a {
    width: 100%;
    min-height: 52px;
  }

  body.zc-contact-phase-thirteen .zc-contact-help-panel {
    padding: var(--zc-contact-space-4);
    gap: var(--zc-contact-space-3);
  }

  body.zc-contact-phase-thirteen .zc-contact-help-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    padding: var(--zc-contact-space-4);
    border-radius: var(--zc-contact-radius-lg);
  }

  body.zc-contact-phase-thirteen .zc-contact-help-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 15px;
  }

  body.zc-contact-phase-thirteen .zc-contact-ticket-stats,
  body.zc-contact-phase-thirteen .zc-contact-ticket-card__topline,
  body.zc-contact-phase-thirteen .zc-contact-ticket-card__main,
  body.zc-contact-phase-thirteen .zc-contact-ticket-card__meta,
  body.zc-contact-phase-thirteen .zc-contact-ticket-empty,
  body.zc-contact-phase-thirteen .zc-contact-ticket-empty__actions,
  body.zc-contact-phase-thirteen .zc-contact-tickets-header__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--zc-contact-space-3);
  }

  body.zc-contact-phase-thirteen .zc-contact-ticket-status,
  body.zc-contact-phase-thirteen .zc-contact-ticket-priority,
  body.zc-contact-phase-thirteen .zc-contact-ticket-stats span,
  body.zc-contact-phase-thirteen .zc-contact-ticket-card__meta span {
    width: 100%;
    justify-content: center;
  }

  body.zc-contact-phase-thirteen .zc-contact-ticket-thread summary {
    min-height: var(--zc-contact-touch-target);
    padding-block: 0.35rem;
  }

  body.zc-contact-phase-thirteen .zc-contact-mobile-nav,
  body.zc-contact-phase-thirteen .zd-mobile-nav {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 520px) {
  body.zc-contact-phase-thirteen .zc-contact-main {
    padding-inline: clamp(0.56rem, 3.4vw, 0.9rem);
    padding-bottom: calc(118px + env(safe-area-inset-bottom));
  }

  body.zc-contact-phase-thirteen .zc-contact-stage__inner {
    gap: var(--zc-contact-space-3);
    padding: clamp(0.7rem, 3.6vw, 0.95rem);
  }

  body.zc-contact-phase-thirteen .zc-contact-hero h1 {
    max-width: 8ch;
    font-size: clamp(2.42rem, 16vw, 3.65rem);
  }

  body.zc-contact-phase-thirteen .zc-contact-hero__subtitle,
  body.zc-contact-phase-thirteen .zc-contact-form-card__helper,
  body.zc-contact-phase-thirteen .zc-contact-help-panel__header p:not(.zc-contact-help-panel__eyebrow),
  body.zc-contact-phase-thirteen .zc-contact-tickets-header__text {
    font-size: 0.95rem;
  }

  body.zc-contact-phase-thirteen .zc-contact-hero__tabs {
    grid-template-columns: 1fr;
  }

  body.zc-contact-phase-thirteen .zc-contact-choice-card {
    padding: var(--zc-contact-space-4);
  }

  body.zc-contact-phase-thirteen .zc-contact-form-card,
  body.zc-contact-phase-thirteen .zc-contact-help-panel,
  body.zc-contact-phase-thirteen .zc-contact-tickets-card {
    padding: var(--zc-contact-space-4);
  }

  body.zc-contact-phase-thirteen .zc-contact-help-card {
    grid-template-columns: 1fr;
  }

  body.zc-contact-phase-thirteen .zc-contact-help-card__icon,
  body.zc-contact-phase-thirteen .zc-contact-success-card__icon,
  body.zc-contact-phase-thirteen .zc-contact-ticket-empty__icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }

  body.zc-contact-phase-thirteen .zc-contact-ticket-message__text {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 430px) {
  body.zc-contact-phase-thirteen .zc-contact-main {
    padding-inline: 0.55rem;
  }

  body.zc-contact-phase-thirteen .zc-contact-stage {
    border-radius: var(--zc-contact-radius-lg);
  }

  body.zc-contact-phase-thirteen .zc-contact-hero h1 {
    font-size: clamp(2.26rem, 15.2vw, 3.18rem);
  }

  body.zc-contact-phase-thirteen .zc-contact-choice-card,
  body.zc-contact-phase-thirteen .zc-contact-form-card,
  body.zc-contact-phase-thirteen .zc-contact-help-panel,
  body.zc-contact-phase-thirteen .zc-contact-tickets-card,
  body.zc-contact-phase-thirteen .zc-contact-ticket-card,
  body.zc-contact-phase-thirteen .zc-contact-ticket-empty,
  body.zc-contact-phase-thirteen .zc-contact-ticket-reply {
    border-radius: var(--zc-contact-radius-md);
  }

  body.zc-contact-phase-thirteen .zc-contact-choice-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.72rem;
  }

  body.zc-contact-phase-thirteen .zc-contact-choice-card__icon {
    width: 42px;
    height: 42px;
  }

  body.zc-contact-phase-thirteen .zc-contact-field input,
  body.zc-contact-phase-thirteen .zc-contact-field select,
  body.zc-contact-phase-thirteen .zc-contact-field textarea,
  body.zc-contact-phase-thirteen .zc-contact-ticket-reply textarea {
    border-radius: var(--zc-contact-radius-sm);
  }
}

@media (max-width: 390px) {
  body.zc-contact-phase-thirteen .zc-contact-stage__inner,
  body.zc-contact-phase-thirteen .zc-contact-form-card,
  body.zc-contact-phase-thirteen .zc-contact-help-panel,
  body.zc-contact-phase-thirteen .zc-contact-tickets-card {
    padding: 0.82rem;
  }

  body.zc-contact-phase-thirteen .zc-contact-hero h1 {
    font-size: clamp(2.12rem, 14.4vw, 2.86rem);
  }

  body.zc-contact-phase-thirteen .zc-contact-choice-card {
    grid-template-columns: 1fr;
  }

  body.zc-contact-phase-thirteen .zc-contact-choice-card__state {
    grid-column: auto;
  }

  body.zc-contact-phase-thirteen .zc-contact-form-card__status,
  body.zc-contact-phase-thirteen .zc-contact-hero__pill {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 340px) {
  body.zc-contact-phase-thirteen .zc-contact-main {
    padding-inline: 0.42rem;
  }

  body.zc-contact-phase-thirteen .zc-contact-stage__inner,
  body.zc-contact-phase-thirteen .zc-contact-form-card,
  body.zc-contact-phase-thirteen .zc-contact-help-panel,
  body.zc-contact-phase-thirteen .zc-contact-tickets-card {
    padding: 0.72rem;
  }

  body.zc-contact-phase-thirteen .zc-contact-hero h1 {
    font-size: 2rem;
  }

  body.zc-contact-phase-thirteen .zc-contact-choice-card,
  body.zc-contact-phase-thirteen .zc-contact-help-card,
  body.zc-contact-phase-thirteen .zc-contact-ticket-card,
  body.zc-contact-phase-thirteen .zc-contact-ticket-empty {
    padding: 0.82rem;
  }
}

@media (max-width: 860px) and (orientation: landscape) {
  body.zc-contact-phase-thirteen .zc-contact-main {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  body.zc-contact-phase-thirteen .zc-contact-hero {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
    align-items: start;
  }

  body.zc-contact-phase-thirteen .zc-contact-hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  body.zc-contact-phase-thirteen .zc-contact-hero__tabs {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   Phase 14 — Dark Mode
   Scope: wire existing dark tokens into the active contact page theme,
   reuse existing dashboard/portal theme storage, prevent bright flashes,
   and cover sidebar, hero, support cards, form, help panel, tickets,
   success/error states, and mobile navigation only.
   JavaScript enhancements, backend compatibility audit, accessibility QA,
   testing checklist, asset registration, and final review remain reserved.
   ------------------------------------------------------------ */

:root[data-theme="dark"],
html[data-theme="dark"] {
  color-scheme: dark;
  background: var(--zc-contact-canvas);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen,
body.zc-contact-phase-fourteen.zd-theme-dark {
  background: var(--zc-contact-canvas);
  color: var(--zc-contact-text);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen.zc-contact-dashboard-body,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-shell,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-main {
  background:
    radial-gradient(circle at 20% 0%, rgba(145, 195, 194, 0.08), transparent 32rem),
    radial-gradient(circle at 94% 12%, rgba(226, 196, 111, 0.07), transparent 28rem),
    linear-gradient(180deg, var(--zc-contact-canvas-soft) 0%, var(--zc-contact-canvas) 52%, #131c1e 100%);
  color: var(--zc-contact-text);
}

/* Dashboard shell and navigation */
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-sidebar,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zd-sidebar,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-mobile-header,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-mobile-drawer,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-mobile-nav,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zd-mobile-nav {
  background: color-mix(in srgb, var(--zc-contact-nav-bg) 86%, #000 14%);
  border-color: var(--zc-contact-nav-border);
  color: var(--zc-contact-text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zd-brand__name,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zd-account-name,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zd-nav-link,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zd-account-link,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zd-mobile-nav-link,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zd-mobile-action,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zd-mobile-brand__name {
  color: var(--zc-contact-heading);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zd-brand__sub,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zd-account-plan,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zd-mobile-brand__sub {
  color: var(--zc-contact-text-muted);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zd-nav-link__icon,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zd-account-link__icon,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zd-mobile-nav-link__icon,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zd-mobile-action {
  background: rgba(255, 248, 234, 0.08);
  border-color: rgba(255, 248, 234, 0.11);
  color: var(--zc-contact-heading);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-sidebar .zd-nav-link[data-nav-key="support"].is-current,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-sidebar .zd-nav-link[data-nav-key="support"][aria-current="page"],
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-mobile-nav .zd-mobile-nav-link[data-mobile-nav-key="support"].is-current,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-mobile-nav .zd-mobile-nav-link[data-mobile-nav-key="support"][aria-current="page"] {
  background: var(--zc-contact-nav-active);
  border-color: rgba(226, 196, 111, 0.34);
  color: var(--zc-contact-heading);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-sidebar .zd-nav-link[data-nav-key="support"] .zd-nav-link__icon,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-mobile-nav .zd-mobile-nav-link[data-mobile-nav-key="support"] .zd-mobile-nav-link__icon,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-sidebar .zd-account-link[data-account-key="support"] .zd-account-link__icon {
  background: var(--zc-contact-ochre-soft);
  border-color: rgba(226, 196, 111, 0.32);
  color: var(--zc-contact-heading);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-utility-link .zd-nav-link__icon,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-account-block .zd-account-trigger:hover,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-account-block .zd-account-trigger:focus-visible {
  background: rgba(255, 248, 234, 0.08);
  border-color: rgba(255, 248, 234, 0.13);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen [data-theme-icon="moon"] {
  display: none;
}

html[data-theme="dark"] body.zc-contact-phase-fourteen [data-theme-icon="sun"] {
  display: inline-grid;
}

html:not([data-theme="dark"]) body.zc-contact-phase-fourteen [data-theme-icon="sun"] {
  display: none;
}

/* Page stage and hero */
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-stage {
  border-color: rgba(255, 248, 234, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 248, 234, 0.035), transparent 52%),
    var(--zc-contact-stage);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 248, 234, 0.06);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-stage::before {
  opacity: 0.12;
  filter: invert(1) opacity(0.42);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-hero__eyebrow,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-form-card__eyebrow,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-help-panel__eyebrow,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-tickets-header__eyebrow {
  color: var(--zc-contact-teal);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-hero h1,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-form-card h2,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-help-panel h2,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-tickets-header h2,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-choice-card__title,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-help-card h3,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-card h3,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-empty h3,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-success-card h3,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-field label,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-reply label,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-message__sender strong {
  color: var(--zc-contact-heading);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-hero__subtitle,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-choice-card__text,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-form-card__helper,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-help-panel__header p:not(.zc-contact-help-panel__eyebrow),
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-help-card p,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-help-card li,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-tickets-header__text,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-card__updated,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-card__meta,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-message__sender,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-reply__field p,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-field__help,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-form__footer p {
  color: var(--zc-contact-text-muted);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-hero__pill,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-hero__tabs a,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-choice-card__state,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-stats span,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-card__meta span {
  background: rgba(255, 248, 234, 0.07);
  border-color: rgba(255, 248, 234, 0.12);
  color: var(--zc-contact-text);
  box-shadow: inset 0 1px 0 rgba(255, 248, 234, 0.055);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-hero__tabs a:hover,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-help-card a:hover,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-success-action--secondary:hover,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-action--secondary:hover {
  background: var(--zc-contact-teal-wash);
  border-color: rgba(145, 195, 194, 0.25);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-hero__tabs a[aria-current="page"] {
  background: var(--zc-contact-ochre-soft);
  border-color: rgba(226, 196, 111, 0.34);
  color: var(--zc-contact-heading);
}

/* Cards and panels */
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-choice-card,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-form-card,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-help-panel,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-tickets-card,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-card,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-empty,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-thread,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-reply {
  border-color: rgba(255, 248, 234, 0.12);
  background: var(--zc-contact-surface);
  color: var(--zc-contact-text);
  box-shadow: var(--zc-contact-shadow-card);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-choice-card--question,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-help-card--checklist,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-alert--success,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-success-card {
  background: var(--zc-contact-moss-wash);
  border-color: rgba(159, 190, 152, 0.22);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-choice-card--problem,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-error-summary,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-alert--error {
  background: var(--zc-contact-coral-wash);
  border-color: rgba(236, 151, 141, 0.22);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-choice-card--ticket,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-empty--login,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-message--client {
  background: var(--zc-contact-lavender-wash);
  border-color: rgba(170, 160, 207, 0.22);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-help-card--next,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-empty,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-message--support {
  background: var(--zc-contact-teal-wash);
  border-color: rgba(145, 195, 194, 0.22);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-help-card--time {
  background: var(--zc-contact-ochre-wash);
  border-color: rgba(226, 196, 111, 0.22);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-help-card--urgent {
  background: var(--zc-contact-mauve-wash);
  border-color: rgba(190, 160, 200, 0.2);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-help-card,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-message,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-card__preview {
  border-color: rgba(255, 248, 234, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-card__preview,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-thread__body,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-message__text,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-alert p,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-alert li,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-error-summary p,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-error-summary li,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-form-success p,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-success-card__lead,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-empty p {
  color: var(--zc-contact-text);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-choice-card:hover,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-card:hover,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-help-card:hover {
  border-color: rgba(145, 195, 194, 0.24);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-choice-card.is-selected {
  border-color: rgba(145, 195, 194, 0.45);
  box-shadow: 0 0 0 4px var(--zc-contact-focus-ring), 0 18px 42px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-choice-card__icon,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-help-card__icon,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-empty__icon,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-success-card__icon,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-hero__pill-icon,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-form-card__status span[aria-hidden="true"] {
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

/* Forms and controls */
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-form-card__header,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-help-panel__header,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-tickets-header {
  border-bottom-color: rgba(255, 248, 234, 0.1);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-field input,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-field select,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-field textarea,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-reply textarea,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-phase-scaffold input,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-phase-scaffold select,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-phase-scaffold textarea {
  border-color: rgba(255, 248, 234, 0.16);
  background: var(--zc-contact-surface-raised);
  color: var(--zc-contact-text);
  box-shadow: inset 0 1px 0 rgba(255, 248, 234, 0.06);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-field input:hover,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-field select:hover,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-field textarea:hover,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-reply textarea:hover {
  border-color: rgba(145, 195, 194, 0.36);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-field input:focus,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-field select:focus,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-field textarea:focus,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-reply textarea:focus {
  border-color: var(--zc-contact-focus);
  background: var(--zc-contact-surface-soft);
  box-shadow: 0 0 0 5px var(--zc-contact-focus-ring), inset 0 1px 0 rgba(255, 248, 234, 0.06);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-field.has-error input,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-field.has-error select,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-field.has-error textarea,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-field [aria-invalid="true"] {
  border-color: var(--zc-contact-border-danger);
  background: var(--zc-contact-coral-wash);
  box-shadow: 0 0 0 5px rgba(236, 151, 141, 0.12);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-field__error {
  color: var(--zc-contact-error);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen ::placeholder {
  color: var(--zc-contact-placeholder);
  opacity: 1;
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-form-card__status,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-success-card__lead strong,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-thread,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-reply {
  background: rgba(255, 248, 234, 0.055);
  border-color: rgba(255, 248, 234, 0.12);
}

/* Buttons, links, chips, and status states */
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-submit-button,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-success-action--primary,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-action--primary,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-reply button,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-choice-card.is-selected .zc-contact-choice-card__state,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-phase-scaffold button[type="submit"] {
  border-color: rgba(255, 248, 234, 0.1);
  background: #91c3c2;
  color: #142023;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-success-action--secondary,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-action--secondary,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-help-card a,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-inline-action {
  background: rgba(255, 248, 234, 0.065);
  border-color: rgba(145, 195, 194, 0.22);
  color: var(--zc-contact-teal);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-status--open,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-priority--medium,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-priority--low {
  background: var(--zc-contact-teal-wash);
  border-color: rgba(145, 195, 194, 0.24);
  color: var(--zc-contact-teal);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-status--in_progress,
html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-priority--high {
  background: var(--zc-contact-ochre-wash);
  border-color: rgba(226, 196, 111, 0.26);
  color: var(--zc-contact-warning);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-status--resolved {
  background: var(--zc-contact-moss-wash);
  border-color: rgba(159, 190, 152, 0.25);
  color: var(--zc-contact-success);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-priority--urgent {
  background: var(--zc-contact-coral-wash);
  border-color: rgba(236, 151, 141, 0.25);
  color: var(--zc-contact-error);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-thread summary {
  color: var(--zc-contact-teal);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-thread summary::after {
  background: var(--zc-contact-teal-wash);
  color: var(--zc-contact-teal);
}

html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-ticket-card::before {
  opacity: 0.92;
}

html[data-theme="dark"] body.zc-contact-phase-fourteen ::selection {
  background: var(--zc-contact-selection-bg);
  color: var(--zc-contact-selection-text);
}

@media (max-width: 860px) {
  html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-mobile-header,
  html[data-theme="dark"] body.zc-contact-phase-fourteen .zc-contact-mobile-nav,
  html[data-theme="dark"] body.zc-contact-phase-fourteen .zd-mobile-nav {
    background: color-mix(in srgb, var(--zc-contact-nav-bg) 90%, #000 10%);
    backdrop-filter: blur(18px);
  }
}

/* --------------------------------------------------------------------------
   Phase 17: Accessibility QA hardening
   -------------------------------------------------------------------------- */

.zc-contact-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.zc-contact-phase-seventeen .zc-contact-stage:focus-within {
  isolation: isolate;
}

body.zc-contact-phase-seventeen .zc-contact-stage :is(a, button, input, select, textarea, summary):focus-visible,
body.zc-contact-phase-seventeen .zc-contact-sidebar :is(a, button):focus-visible,
body.zc-contact-phase-seventeen .zc-contact-mobile-header :is(a, button):focus-visible,
body.zc-contact-phase-seventeen .zc-contact-mobile-nav :is(a, button):focus-visible {
  outline: 3px solid var(--zc-contact-focus);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px var(--zc-contact-focus-ring);
}

body.zc-contact-phase-seventeen .zc-contact-ticket-card:target,
body.zc-contact-phase-seventeen .zc-contact-section:target,
body.zc-contact-phase-seventeen .zc-contact-success-card:focus,
body.zc-contact-phase-seventeen .zc-contact-error-summary:focus,
body.zc-contact-phase-seventeen .zc-contact-ticket-alert:focus {
  outline: 3px solid var(--zc-contact-focus);
  outline-offset: 6px;
  box-shadow: 0 0 0 8px var(--zc-contact-focus-ring), var(--zc-contact-shadow-card);
}

body.zc-contact-phase-seventeen .zc-contact-choice-grid[role="group"] {
  scroll-margin-top: 1.5rem;
}

body.zc-contact-phase-seventeen .zc-contact-choice-card[role="button"] {
  min-height: 44px;
}

body.zc-contact-phase-seventeen .zc-contact-choice-card__state {
  min-width: max-content;
}

body.zc-contact-phase-seventeen .zc-contact-field label::after,
body.zc-contact-phase-seventeen .zc-contact-ticket-reply label::after {
  content: "";
}

body.zc-contact-phase-seventeen .zc-contact-field input[required] + .zc-contact-field__help,
body.zc-contact-phase-seventeen .zc-contact-field textarea[required] + .zc-contact-field__help,
body.zc-contact-phase-seventeen .zc-contact-field select[required] + .zc-contact-field__help {
  color: var(--zc-contact-muted);
}

body.zc-contact-phase-seventeen .zc-contact-field [aria-invalid="true"],
body.zc-contact-phase-seventeen .zc-contact-ticket-reply textarea[aria-invalid="true"] {
  border-width: 2px;
}

body.zc-contact-phase-seventeen .zc-contact-ticket-thread summary {
  min-height: 44px;
  align-items: center;
}

body.zc-contact-phase-seventeen .zc-contact-ticket-thread summary::-webkit-details-marker {
  color: currentColor;
}

body.zc-contact-phase-seventeen .zc-contact-ticket-status,
body.zc-contact-phase-seventeen .zc-contact-ticket-priority {
  border-width: 1px;
}

@media (prefers-contrast: more) {
  body.zc-contact-phase-seventeen {
    --zc-contact-border: rgba(34, 48, 54, 0.48);
    --zc-contact-border-strong: rgba(34, 48, 54, 0.72);
    --zc-contact-muted: #33444a;
    --zc-contact-focus-ring: rgba(44, 99, 102, 0.48);
  }

  html[data-theme="dark"] body.zc-contact-phase-seventeen {
    --zc-contact-muted: #e1ebe8;
    --zc-contact-border: rgba(231, 236, 232, 0.42);
    --zc-contact-border-strong: rgba(231, 236, 232, 0.62);
  }

  body.zc-contact-phase-seventeen .zc-contact-choice-card,
  body.zc-contact-phase-seventeen .zc-contact-section-card,
  body.zc-contact-phase-seventeen .zc-contact-help-card,
  body.zc-contact-phase-seventeen .zc-contact-ticket-card {
    border-width: 2px;
  }
}

@media (forced-colors: active) {
  body.zc-contact-phase-seventeen .zc-contact-stage :is(a, button, input, select, textarea, summary):focus-visible,
  body.zc-contact-phase-seventeen .zc-contact-ticket-card:target,
  body.zc-contact-phase-seventeen .zc-contact-success-card:focus,
  body.zc-contact-phase-seventeen .zc-contact-error-summary:focus,
  body.zc-contact-phase-seventeen .zc-contact-ticket-alert:focus {
    outline: 3px solid Highlight;
    box-shadow: none;
  }

  body.zc-contact-phase-seventeen .zc-contact-choice-card.is-selected,
  body.zc-contact-phase-seventeen .zc-contact-hero__tabs a[aria-current="page"] {
    outline: 2px solid Highlight;
  }
}

/* --------------------------------------------------------------------------
   Phase 21: viewport fit polish
   Keeps the contact page inside the dashboard shell when the desktop sidebar
   is open, and calms oversized controls/text on narrower screens.
   -------------------------------------------------------------------------- */

body.zc-contact-phase-twenty .zc-contact-main,
body.zc-contact-phase-twenty .zc-contact-page,
body.zc-contact-phase-twenty .zc-contact-stage,
body.zc-contact-phase-twenty .zc-contact-stage__inner,
body.zc-contact-phase-twenty .zc-contact-hero,
body.zc-contact-phase-twenty .zc-contact-choice-grid,
body.zc-contact-phase-twenty .zc-contact-two-column {
  max-width: 100%;
  min-width: 0;
}

body.zc-contact-phase-twenty .zc-contact-hero h1,
body.zc-contact-phase-twenty .zc-contact-choice-card__title,
body.zc-contact-phase-twenty .zc-contact-form-card h2,
body.zc-contact-phase-twenty .zc-contact-help-panel h2,
body.zc-contact-phase-twenty .zc-contact-tickets-header h2 {
  letter-spacing: 0;
}

@media (min-width: 901px) {
  body.zc-contact-phase-twenty .zc-contact-main {
    width: auto;
    max-width: calc(100vw - (var(--zd-sidebar-w) + var(--zd-gap) + 16px));
    padding: clamp(1rem, 2vw, 1.8rem) clamp(1rem, 2vw, 1.8rem) clamp(1rem, 2vw, 1.8rem) 0;
    overflow-x: clip;
  }

  body.zc-contact-phase-twenty .zd-shell.is-collapsed .zc-contact-main {
    max-width: calc(100vw - (var(--zd-sidebar-collapsed-w) + 44px));
  }

  body.zc-contact-phase-twenty .zc-contact-page,
  body.zd-sidebar-collapsed.zc-contact-phase-twenty .zc-contact-page {
    width: 100%;
    max-width: min(var(--zc-contact-content-max), 100%);
  }

  body.zc-contact-phase-twenty .zc-contact-stage__inner {
    padding: clamp(1rem, 2vw, 1.65rem);
  }

  body.zc-contact-phase-twenty .zc-contact-hero {
    gap: clamp(0.85rem, 1.6vw, 1.4rem);
  }

  body.zc-contact-phase-twenty .zc-contact-hero h1 {
    font-size: clamp(2.35rem, 4.1vw, 3.55rem);
    line-height: 1.02;
  }

  body.zc-contact-phase-twenty .zc-contact-hero__subtitle {
    font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  }

  body.zc-contact-phase-twenty .zc-contact-hero__aside {
    min-width: min(100%, 220px);
  }

  body.zc-contact-phase-twenty .zc-contact-hero__pill {
    min-height: 44px;
    padding: 0.48rem 0.78rem 0.48rem 0.58rem;
    font-size: 0.92rem;
  }

  body.zc-contact-phase-twenty .zc-contact-hero__pill-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  body.zc-contact-phase-twenty .zc-contact-hero__tabs a {
    min-height: 40px;
    padding: 0.48rem 0.72rem;
    font-size: 0.84rem;
  }

  body.zc-contact-phase-twenty .zc-contact-choice-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 0.9rem;
  }

  body.zc-contact-phase-twenty .zc-contact-choice-card {
    min-height: 112px;
    padding: 0.95rem;
    gap: 0.85rem;
    border-radius: var(--zc-contact-radius-lg);
  }

  body.zc-contact-phase-twenty .zc-contact-choice-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 1.18rem;
  }

  body.zc-contact-phase-twenty .zc-contact-choice-card__title {
    font-size: 1.02rem;
  }

  body.zc-contact-phase-twenty .zc-contact-choice-card__text {
    font-size: 0.84rem;
    line-height: 1.38;
  }

  body.zc-contact-phase-twenty .zc-contact-choice-card__state {
    position: static;
    grid-column: 2;
    justify-self: start;
    min-height: 28px;
    margin-top: 0.08rem;
    padding: 0.26rem 0.56rem;
    font-size: 0.72rem;
  }

  body.zc-contact-phase-twenty .zc-contact-two-column {
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.75fr);
  }

  body.zc-contact-phase-twenty .zc-contact-form-card {
    padding: clamp(1.2rem, 2vw, 1.65rem);
  }

  body.zc-contact-phase-twenty .zc-contact-help-panel {
    padding: clamp(1rem, 1.55vw, 1.25rem);
  }

  body.zc-contact-phase-twenty .zc-contact-form-card h2,
  body.zc-contact-phase-twenty .zc-contact-help-panel h2,
  body.zc-contact-phase-twenty .zc-contact-tickets-header h2 {
    font-size: clamp(1.45rem, 2vw, 1.85rem);
  }

  body.zc-contact-phase-twenty .zc-contact-form__footer {
    align-items: center;
    justify-content: flex-start;
  }

  body.zc-contact-phase-twenty .zc-contact-submit-button,
  body.zc-contact-phase-twenty .zc-contact-ticket-action,
  body.zc-contact-phase-twenty .zc-contact-ticket-reply button {
    min-height: 44px;
    padding: 0.62rem 0.95rem;
    font-size: 0.92rem;
  }

  body.zc-contact-phase-twenty .zc-contact-submit-button {
    min-width: 142px;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  body.zc-contact-phase-twenty .zc-contact-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  body.zc-contact-phase-twenty .zc-contact-hero__aside {
    justify-items: start;
    width: 100%;
    padding-top: 0;
  }

  body.zc-contact-phase-twenty .zc-contact-hero__tabs {
    justify-content: flex-start;
  }

  body.zc-contact-phase-twenty .zc-contact-two-column {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 901px) and (max-width: 1024px) {
  body.zc-contact-phase-twenty .zc-contact-main {
    max-width: calc(100vw - (var(--zd-sidebar-w) + var(--zd-gap) + 12px));
  }

  body.zc-contact-phase-twenty .zd-shell.is-collapsed .zc-contact-main {
    max-width: calc(100vw - (var(--zd-sidebar-collapsed-w) + 38px));
  }
}

@media (max-width: 900px) {
  body.zc-contact-phase-twenty .zc-contact-main {
    width: 100%;
    max-width: 100%;
  }

  body.zc-contact-phase-twenty .zc-contact-hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.04;
  }
}
