/* ============================================================
   Custom Plan — Premium + Athletic UI Layer
   Scoped to: body.page-custom-plan, .custom-plan-shell, .custom-plan-cta
   ============================================================ */

:root {
  /* Local tokens (do not affect global site) */
  --cp-radius: 18px;
  --cp-radius-sm: 12px;

  --cp-text: #0f172a;
  --cp-muted: #475569;

  --cp-surface: #ffffff;
  --cp-surface-2: #f8fafc;

  --cp-border: rgba(15, 23, 42, 0.10);
  --cp-border-strong: rgba(15, 23, 42, 0.16);

  --cp-shadow: var(--card-shadow);
  --cp-shadow-soft: var(--card-shadow);

  --cp-accent: var(--landing-brand-border);
  --cp-gradient: var(--landing-brand-gradient);

  --cp-ring: color-mix(in srgb, var(--cp-accent) 38%, transparent);

  --cp-ease: cubic-bezier(0.2, 0.9, 0.2, 1);
  --cp-fast: 140ms var(--cp-ease);
  --cp-med: 220ms var(--cp-ease);
}

/* ---------- Page backdrop (premium “studio” feel) ---------- */
body.page-custom-plan {
  background:
    radial-gradient(900px circle at 18% -12%,
      color-mix(in srgb, var(--cp-accent) 22%, transparent) 0%,
      transparent 58%),
    radial-gradient(720px circle at 88% -8%,
      color-mix(in srgb, color-mix(in srgb, var(--header-grad-mid3) 68%, var(--header-grad-to) 32%) 16%, transparent) 0%,
      transparent 60%),
    linear-gradient(180deg, var(--light-bg, #f8f9fa) 0%, #eef2ff 100%);
}

/* ---------- CTA Band ---------- */
.custom-plan-cta-band {
  padding: 2rem 5%;
}

/* CTA surface (works both embedded + inside custom plan pages) */
.custom-plan-cta {
  margin: 0 auto;
  width: min(100%, clamp(18rem, 92%, 70rem));
  border-radius: var(--cp-radius);
  padding: 1.75rem;

  color: #f8fafc;

  background:
    radial-gradient(circle at 18% 0%,
      color-mix(in srgb, var(--cp-accent) 28%, transparent) 0%,
      transparent 55%),
    radial-gradient(circle at 92% 0%,
      color-mix(in srgb, color-mix(in srgb, var(--header-grad-mid3) 68%, var(--header-grad-to) 32%) 20%, transparent) 0%,
      transparent 58%),
    linear-gradient(135deg, #0b1220 0%, #111827 55%, #050914 100%);

  border: 1px solid rgba(255, 255, 255, 0.12);
  

  position: relative;
  overflow: hidden;

  display: grid;
  gap: 1rem;
}

.custom-plan-cta--secondary {
  background:
    radial-gradient(circle at 20% 0%,
      rgba(255, 255, 255, 0.10) 0%,
      transparent 55%),
    linear-gradient(135deg, rgba(11, 18, 32, 0.96), rgba(17, 24, 39, 0.92));
}

/* Subtle sheen */
.custom-plan-cta::after {
  content: "";
  position: absolute;
  inset: -40% -35%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16), transparent 45%);
  transform: rotate(10deg);
  pointer-events: none;
  opacity: 0.9;
}

/* CTA layout + chips (were missing before) */
.custom-plan-cta__layout {
  display: grid;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.custom-plan-cta__content {
  display: grid;
  gap: 0.75rem;
}

.custom-plan-cta__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0.25rem 0 0;
  list-style: none;
}

.custom-plan-cta__chip {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;

  color: rgba(248, 250, 252, 0.92);
  background: rgba(248, 250, 252, 0.10);
  border: 1px solid rgba(248, 250, 252, 0.16);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.custom-plan-cta__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.75);
}

.custom-plan-cta__title {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  margin: 0;
}

.custom-plan-cta__copy {
  margin: 0;
  color: rgba(248, 250, 252, 0.86);
}

.custom-plan-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.custom-plan-cta__actions .cta-button {
  width: min(100%, clamp(12rem, 60%, 18rem));
}

/* ---------- Shell ---------- */
.custom-plan-shell {
  padding: 2rem 5%;
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
}

/* ---------- Card (premium surface + top accent) ---------- */
.custom-plan-card {
  margin: 0 auto;
  width: min(100%, clamp(18rem, 92%, 62rem));

  background: var(--cp-surface);
  border-radius: var(--cp-radius);

  padding: 1.75rem;

  border: 1px solid var(--cp-border);
  box-shadow: var(--cp-shadow-soft);

  position: relative;
  overflow: hidden;
}

.custom-plan-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--cp-gradient);
  opacity: 0.85;
}

.custom-plan-card h1,
.custom-plan-card h2,
.custom-plan-card h3 {
  margin-top: 0;
  color: var(--cp-text);
}

.custom-plan-card p,
.custom-plan-card li,
.custom-plan-card label {
  color: var(--cp-text);
}

/* Links inside the flow (non-button) */
.custom-plan-card a:not(.cta-button),
.custom-plan-cta a:not(.cta-button) {
  color: color-mix(in srgb, var(--cp-accent) 78%, #111827);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 0.08rem;
}

/* ---------- Button system (scoped: flow + CTA only) ---------- */
.custom-plan-shell .cta-button,
.custom-plan-cta .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 0.5rem;

  padding: 0.85rem 1.1rem;
  border-radius: 999px;

  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;

  border: 1px solid transparent;

  transition:
    transform var(--cp-med),
    box-shadow var(--cp-med),
    filter var(--cp-med),
    background var(--cp-med),
    border-color var(--cp-med);
  will-change: transform;
}

/* Primary = gradient + “engineered” depth */
.custom-plan-shell .cta-button.btn-primary,
.custom-plan-cta .cta-button.btn-primary {
  color: #ffffff;
  border: 1.25px solid transparent;

  background:
    linear-gradient(
      160deg,
      rgba(11, 18, 32, 0.92) 0%,
      rgba(17, 24, 39, 0.84) 100%
    ) padding-box,
    var(--cp-gradient) border-box;

  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);

  backdrop-filter: blur(8px) saturate(1.08);
  -webkit-backdrop-filter: blur(8px) saturate(1.08);
}

/* Category page CTA parity: match the Program Finder Apply button in light/dark mode. */
body#programs-page .custom-plan-cta-band .custom-plan-cta__actions .cta-button.btn-primary {
  position: relative;
  overflow: hidden;
  min-height: var(--cta-parity-min-h, 46px);
  padding: var(--cta-parity-pad-y, 0.78rem) var(--cta-parity-pad-x, 1.15rem);
  border-radius: var(--cta-parity-radius, 10px);
  font-weight: 650;
  line-height: 1;
  color: var(--text-light);
  border: 1.25px solid transparent;
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--surface) 90%, transparent) 0%,
      color-mix(in srgb, var(--surface) 82%, transparent) 100%
    ) padding-box,
    var(--landing-brand-gradient) border-box;
  box-shadow:
    0 10px 26px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.24);
  backdrop-filter: blur(8px) saturate(1.08);
  -webkit-backdrop-filter: blur(8px) saturate(1.08);
  transition:
    transform .14s ease,
    box-shadow .18s ease,
    filter .18s ease,
    background .18s ease,
    border-color .18s ease,
    color .18s ease;
}

body#programs-page .custom-plan-cta-band .custom-plan-cta__actions .cta-button.btn-primary::before {
  content: "";
  position: absolute;
  inset: -70% -55% auto -55%;
  height: 190%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,.20) 18%,
    rgba(255,255,255,.08) 42%,
    transparent 70%
  );
  transform: translateX(-35%) rotate(10deg);
  opacity: 0.85;
  pointer-events: none;
}

/* Secondary = glass / premium outline */
.custom-plan-shell .cta-button.btn-secondary,
.custom-plan-cta .cta-button.btn-secondary {
  background: rgba(255, 255, 255, 0.78);
  background: color-mix(in srgb, var(--cp-surface) 88%, transparent);
  color: var(--cp-text);
  border-color: rgba(15, 23, 42, 0.14);
  border-color: color-mix(in srgb, var(--cp-border-strong) 85%, transparent);

  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);

  
}

/* Hover/active: lift (no bouncy scale-up) */
@media (hover: hover) and (pointer: fine) {
  .custom-plan-shell .cta-button:hover,
  .custom-plan-cta .cta-button:hover {
    transform: translateY(-1px);
  }

  .custom-plan-shell .cta-button.btn-primary:hover,
  .custom-plan-cta .cta-button.btn-primary:hover {
    box-shadow:
      0 14px 34px rgba(0, 0, 0, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
    filter: brightness(1.03) saturate(1.09);
  }

  body#programs-page .custom-plan-cta-band .custom-plan-cta__actions .cta-button.btn-primary:hover {
    box-shadow:
      0 14px 34px rgba(0,0,0,.24),
      inset 0 1px 0 rgba(255,255,255,.28);
    filter: brightness(1.03) saturate(1.09);
  }

  .custom-plan-shell .cta-button.btn-secondary:hover,
  .custom-plan-cta .cta-button.btn-secondary:hover {
    border-color: color-mix(in srgb, var(--cp-accent) 45%, var(--cp-border-strong));
    box-shadow: var(--hover-shadow);
    filter: brightness(1.02);
  }
}

.custom-plan-shell .cta-button:active,
.custom-plan-cta .cta-button:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

body#programs-page .custom-plan-cta-band .custom-plan-cta__actions .cta-button.btn-primary:active {
  transform: translateY(0) scale(0.99);
  filter: brightness(0.98);
}

.custom-plan-shell .cta-button:focus-visible,
.custom-plan-cta .cta-button:focus-visible {
  outline: 3px solid var(--cp-ring);
  outline-offset: 3px;
}

body#programs-page .custom-plan-cta-band .custom-plan-cta__actions .cta-button.btn-primary:focus-visible {
  outline: none;
  box-shadow:
    0 10px 26px rgba(0,0,0,.18),
    0 0 0 3px var(--cta-parity-ring-inner, rgba(255,255,255,.28)),
    0 0 0 6px var(--cta-parity-ring-outer, rgba(255,255,255,.16));
}

.custom-plan-shell .cta-button[disabled],
.custom-plan-cta .cta-button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Steps ---------- */
/* Intake step pills (ul) */
ul.custom-plan-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;

  list-style: none;
  padding: 0;
  margin: 0 0 1rem;

  counter-reset: cp-step;
}

ul.custom-plan-steps li {
  counter-increment: cp-step;

  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.45rem 0.85rem;
  border-radius: 999px;

  background: color-mix(in srgb, var(--cp-surface-2) 92%, transparent);
  border: 1px solid var(--cp-border);

  color: var(--cp-text);
  font-size: 0.85rem;
  font-weight: 700;
}

ul.custom-plan-steps li::before {
  content: counter(cp-step);
  display: inline-grid;
  place-items: center;

  width: 1.3rem;
  height: 1.3rem;

  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.75);

  font-size: 0.78rem;
  font-weight: 800;
}

ul.custom-plan-steps li.is-active {
  background: #0b1220;
  border-color: rgba(255, 255, 255, 0.10);
  color: #f8fafc;
}

ul.custom-plan-steps li.is-active::before {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

ul.custom-plan-steps li .custom-plan-step-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
  padding: 0;
}

ul.custom-plan-steps li .custom-plan-step-link:focus-visible {
  outline: 2px solid var(--cp-ring);
  outline-offset: 4px;
}


/* How-it-works list (ol) */
ol.custom-plan-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;

  display: grid;
  gap: 0.75rem;

  counter-reset: cp-ol;
}

ol.custom-plan-steps li {
  counter-increment: cp-ol;

  position: relative;
  padding: 0.85rem 0.9rem 0.85rem 2.85rem;

  border-radius: var(--cp-radius-sm);
  background: color-mix(in srgb, var(--cp-surface-2) 96%, transparent);
  border: 1px solid var(--cp-border);

  color: var(--cp-text);
  line-height: 1.55;
}

ol.custom-plan-steps li::before {
  content: counter(cp-ol);

  position: absolute;
  left: 0.9rem;
  top: 0.85rem;

  width: 1.55rem;
  height: 1.55rem;

  border-radius: 999px;
  background: var(--cp-gradient);
  color: #ffffff;

  display: grid;
  place-items: center;

  font-weight: 900;
  font-size: 0.82rem;
}

/* ---------- Forms ---------- */
.custom-plan-form-grid {
  display: grid;
  gap: 1rem;
}

.custom-plan-field {
  display: grid;
  gap: 0.5rem;
}

.custom-plan-field label {
  font-weight: 700;
  color: var(--cp-text);
}

.custom-plan-field input,
.custom-plan-field select,
.custom-plan-field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  border-radius: var(--cp-radius-sm);
  border: 1px solid var(--cp-border-strong);

  padding: 0.78rem 0.95rem;

  font: inherit;
  color: var(--cp-text);

  background: #ffffff;

  transition:
    border-color var(--cp-fast),
    box-shadow var(--cp-fast),
    background var(--cp-fast);
}

.custom-plan-field input::placeholder,
.custom-plan-field textarea::placeholder {
  color: color-mix(in srgb, var(--cp-muted) 70%, transparent);
}

.custom-plan-field input:focus,
.custom-plan-field select:focus,
.custom-plan-field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--cp-accent) 55%, #cbd5e1);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cp-accent) 18%, transparent);
}

/* Select arrow (premium detail) */
.custom-plan-field select {
  appearance: none;
  padding-right: 2.6rem;

  background-image:
    linear-gradient(45deg, transparent 50%, rgba(15, 23, 42, 0.65) 50%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.65) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);

  background-position:
    calc(100% - 18px) calc(1em + 2px),
    calc(100% - 13px) calc(1em + 2px),
    calc(100% - 2.4rem) 0.55rem;

  background-size: 5px 5px, 5px 5px, 1px 1.8rem;
  background-repeat: no-repeat;
}

.custom-plan-field textarea {
  min-height: 120px;
  resize: vertical;
}

/* Checkbox / radio accents */
.custom-plan-field input[type="checkbox"],
.custom-plan-field input[type="radio"] {
  accent-color: var(--cp-accent);
}

/* File input polish */
.custom-plan-field input[type="file"] {
  padding: 0.6rem;
}

.custom-plan-field input[type="file"]::file-selector-button {
  margin-right: 0.75rem;

  padding: 0.55rem 0.9rem;
  border-radius: 999px;

  border: 1px solid color-mix(in srgb, var(--cp-border-strong) 85%, transparent);
  background: rgba(255, 255, 255, 0.78);
  background: color-mix(in srgb, var(--cp-surface) 88%, transparent);
  color: var(--cp-text);

  font: inherit;
  font-weight: 800;

  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);

  cursor: pointer;
  transition:
    transform var(--cp-med),
    box-shadow var(--cp-med),
    filter var(--cp-med),
    background var(--cp-med),
    border-color var(--cp-med),
    color var(--cp-med);

  
}

@media (hover: hover) and (pointer: fine) {
  .custom-plan-field input[type="file"]::file-selector-button:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--cp-accent) 45%, var(--cp-border-strong));
    box-shadow: var(--hover-shadow);
    filter: brightness(1.02);
  }
}

.custom-plan-field--checkbox {
  width: 100%;
  justify-self: start;
  align-self: start;
}

.custom-plan-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
  overflow: visible;
}

.custom-plan-checkbox-row input[type="checkbox"] {
  margin: 0;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
  align-self: flex-start;
}

.custom-plan-checkbox-row span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.custom-plan-attachments input[type="file"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--cp-border-strong);
  border-radius: var(--cp-radius-sm);
  padding: 0.6rem;
  background: #ffffff;
  color: var(--cp-text);
}

.custom-plan-attachments input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--cp-border-strong) 85%, transparent);
  background: rgba(255, 255, 255, 0.78);
  background: color-mix(in srgb, var(--cp-surface) 88%, transparent);
  color: var(--cp-text);
  font: inherit;
  font-weight: 800;
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  
  cursor: pointer;
  transition:
    transform var(--cp-med),
    box-shadow var(--cp-med),
    filter var(--cp-med),
    background var(--cp-med),
    border-color var(--cp-med),
    color var(--cp-med);
}

/* ---------- Actions ---------- */
.custom-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;

  justify-content: flex-end;
}

.custom-plan-actions .cta-button,
.custom-plan-actions .btn-secondary {
  width: min(100%, clamp(10rem, 48%, 16rem));
}

/* ---------- Status / Callouts ---------- */
.custom-plan-status {
  font-size: 0.92rem;
  color: var(--cp-muted);

  padding: 0.65rem 0.85rem;
  border-radius: var(--cp-radius-sm);

  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);

  display: inline-block;
}

.custom-plan-status[data-review-error],
.custom-plan-status[data-request-error],
.custom-plan-status[data-missing-fields] {
  color: #991b1b;
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.22);
  font-weight: 700;
}

/* ---------- Attachments ---------- */
.custom-plan-attachments {
  display: grid;
  gap: 0.75rem;
}

.custom-plan-attachments ul {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  gap: 0.45rem;
}

.custom-plan-attachments li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;

  padding: 0.6rem 0.8rem;

  background: color-mix(in srgb, var(--cp-surface-2) 96%, transparent);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-sm);
}

.custom-plan-attachments li button {
  width: auto;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
}

/* ---------- Summary ---------- */
.custom-plan-summary {
  display: grid;
  gap: 0.75rem;
}

.custom-plan-summary-item {
  position: relative;

  padding: 0.85rem 0.9rem;
  background: color-mix(in srgb, var(--cp-surface-2) 96%, transparent);

  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-sm);
  overflow: hidden;
}

.custom-plan-summary-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--cp-gradient);
  opacity: 0.9;
}

.custom-plan-summary-item span {
  display: block;
  color: var(--cp-muted);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.custom-plan-summary-item strong {
  color: var(--cp-text);
}

/* ---------- Responsive (ONLY overrides) ---------- */

/* ≤768px */
@media (max-width: 768px) {
  .custom-plan-card {
    padding: 1.35rem;
    width: 98%;
    max-width: 98%;
    box-sizing: border-box;
  }

  .custom-plan-field input,
  .custom-plan-field select,
  .custom-plan-field textarea,
  .custom-plan-attachments input[type="file"] {
    width: 98%;
    max-width: 98%;
    box-sizing: border-box;
  }
}

/* ≤600px */
@media (max-width: 600px) {
  .custom-plan-cta {
    padding: 1.4rem;
    width: 98%;
    max-width: 98%;
    box-sizing: border-box;
  }

  .custom-plan-shell,
  .custom-plan-card {
    width: 98%;
    max-width: 98%;
    box-sizing: border-box;
  }

  .custom-plan-cta__actions .cta-button {
    width: 98%;
    max-width: 98%;
    box-sizing: border-box;
  }
}

/* ≤480px */
@media (max-width: 480px) {
  .custom-plan-actions,
  .custom-plan-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .custom-plan-actions .cta-button,
  .custom-plan-actions .btn-secondary,
  .custom-plan-cta__actions .cta-button {
    width: 98%;
    max-width: 98%;
    box-sizing: border-box;
  }

  .custom-plan-checkbox-row {
    align-items: flex-start;
  }
}

/* ≥769px */
@media (min-width: 769px) {
  .custom-plan-cta__layout {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.25rem;
  }

  .custom-plan-cta__actions {
    justify-content: flex-end;
  }
}

/* ---------- Dark mode ---------- */
@media (prefers-color-scheme: dark) {
  body.page-custom-plan {
    background:
      radial-gradient(1100px circle at 18% -12%,
        rgba(255, 81, 47, 0.22) 0%,
        transparent 58%),
      radial-gradient(880px circle at 88% -8%,
        rgba(221, 36, 118, 0.18) 0%,
        transparent 60%),
      linear-gradient(180deg, #050914 0%, #000000 100%);
  }

  .custom-plan-card {
    background: rgba(26, 26, 26, 0.92);
    border-color: rgba(255, 255, 255, 0.10);
    
  }

  .custom-plan-card h1,
  .custom-plan-card h2,
  .custom-plan-card h3,
  .custom-plan-card p,
  .custom-plan-card li,
  .custom-plan-card label {
    color: #f8fafc;
  }

  ul.custom-plan-steps li {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
    color: #f8fafc;
  }

  ul.custom-plan-steps li::before {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(248, 250, 252, 0.88);
  }

  ol.custom-plan-steps li {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
    color: #f8fafc;
  }

  .custom-plan-field input,
  .custom-plan-field select,
  .custom-plan-field textarea,
  .custom-plan-attachments input[type="file"] {
    background: rgba(11, 18, 32, 0.92);
    border-color: rgba(255, 255, 255, 0.16);
    color: #f8fafc;
  }

  .custom-plan-field select {
    background-image:
      linear-gradient(45deg, transparent 50%, rgba(248, 250, 252, 0.70) 50%),
      linear-gradient(135deg, rgba(248, 250, 252, 0.70) 50%, transparent 50%),
      linear-gradient(to right, transparent, transparent);
  }

  .custom-plan-shell .cta-button.btn-primary,
  .custom-plan-cta .cta-button.btn-primary {
    background:
      linear-gradient(
        160deg,
        rgba(14, 16, 22, 0.74) 0%,
        rgba(10, 12, 18, 0.58) 100%
      ) padding-box,
      var(--cp-gradient) border-box;
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.46),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  .custom-plan-shell .cta-button.btn-secondary,
  .custom-plan-cta .cta-button.btn-secondary,
  .custom-plan-field input[type="file"]::file-selector-button,
  .custom-plan-attachments input[type="file"]::file-selector-button {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    color: #f8fafc;
  }

  .custom-plan-status {
    color: rgba(248, 250, 252, 0.82);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
  }

  .custom-plan-status[data-review-error],
  .custom-plan-status[data-request-error],
  .custom-plan-status[data-missing-fields] {
    color: #ffb4ab;
    background: rgba(255, 68, 68, 0.14);
    border-color: rgba(255, 68, 68, 0.24);
  }

  .custom-plan-attachments li,
  .custom-plan-summary-item {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
  }

  .custom-plan-summary-item span {
    color: rgba(248, 250, 252, 0.72);
  }

  .custom-plan-summary-item strong {
    color: #ffffff;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .custom-plan-shell .cta-button,
  .custom-plan-cta .cta-button,
  .custom-plan-field input,
  .custom-plan-field select,
  .custom-plan-field textarea,
  .custom-plan-attachments input[type="file"] {
    transition: none !important;
  }
}
