/*
  Noovi onboarding theme layer.
  Loaded after main.css on /start and /intake only.
  It re-points the existing customer-flow styles at the current landing
  page design language: deep green surfaces (#0c1f14 / #112b1a), amber
  highlights (#ca8a04), Inter black italic uppercase headings, serif
  italic numerals, and square edges.
  It also contains the styles for the step-by-step intake flow.
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,700;0,900;1,700;1,900&family=Cormorant+Garamond:ital,wght@1,600;1,700&display=swap");

.noovi-customer-flow {
  /* Landing palette */
  --flow-bg: #0c1f14;
  --flow-bg-deep: #0c1f14;
  --flow-panel: #112b1a;
  --flow-panel-strong: #0f2617;
  --flow-line: rgba(255, 255, 255, 0.1);
  --flow-ink: #fafaf9;
  --flow-muted: #a8a29e;
  --flow-soft: rgba(255, 255, 255, 0.05);
  --flow-orange: #ca8a04;
  --flow-orange-bright: #f59e0b;
  --flow-orange-soft: rgba(202, 138, 4, 0.12);
  --flow-serif: "Cormorant Garamond", Georgia, serif;

  font-family: "Inter", Arial, sans-serif;
  background: var(--flow-bg);
  color: var(--flow-ink);
}

.noovi-customer-flow [hidden] {
  display: none !important;
}

.noovi-customer-flow::before {
  opacity: 0;
}

/* ------------------------------------------------------------------ */
/* Header: same room as the landing page                               */
/* ------------------------------------------------------------------ */

.noovi-customer-flow .site-header {
  background: rgba(12, 31, 20, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.noovi-customer-flow .nav {
  min-height: 80px;
}

.noovi-customer-flow .brand {
  gap: 14px;
}

.noovi-customer-flow .brand-name {
  color: #fff;
  font-family: "Inter", Arial, sans-serif;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.noovi-customer-flow .brand-mark {
  --mark-size: 40px;
  border-radius: 2px;
  background: var(--flow-orange);
  filter: none;
}

.noovi-customer-flow .brand-mark::before {
  inset: 0;
  border-radius: inherit;
  background: var(--flow-orange);
  filter: none;
  opacity: 1;
}

.noovi-customer-flow .brand-mark::after {
  content: "N";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #0c1f14;
  font-family: "Inter", Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.noovi-customer-flow .site-header .button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.noovi-customer-flow .site-header .button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
}

/* ------------------------------------------------------------------ */
/* Typography                                                          */
/* ------------------------------------------------------------------ */

.noovi-customer-flow .page-title {
  color: #fff;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: uppercase;
}

.noovi-customer-flow .page-title .accent {
  color: var(--flow-orange);
}

.noovi-customer-flow .eyebrow {
  color: var(--flow-orange) !important;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.noovi-customer-flow .eyebrow::before {
  width: 32px;
  height: 1px;
  border-radius: 0;
  background: var(--flow-orange-bright);
  box-shadow: none;
  clip-path: none;
}

.noovi-customer-flow .lede {
  color: #d6d3d1;
  font-size: 1.02rem;
  line-height: 1.65;
}

.noovi-customer-flow .form-help,
.noovi-customer-flow .form-help-inline {
  color: var(--flow-muted);
}

/* Thin amber rule under the heading, like the landing hero */
.noovi-customer-flow .page-title + .lede {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid rgba(202, 138, 4, 0.4);
  max-width: 30rem;
}

.mobile-onboarding-intro {
  display: none;
}

.mobile-form-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2rem, 10vw, 2.8rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.mobile-form-title em {
  color: var(--flow-orange);
  font-style: inherit;
}

/* ------------------------------------------------------------------ */
/* Panels and cards                                                    */
/* ------------------------------------------------------------------ */

.noovi-customer-flow .form-card,
.noovi-customer-flow .side-note,
.noovi-customer-flow .intake-progress-panel {
  border: 1px solid var(--flow-line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.noovi-customer-flow .form-card {
  background: var(--flow-panel);
  border-top: 4px solid var(--flow-orange);
}

.noovi-customer-flow .side-note strong,
.noovi-customer-flow .intake-progress-panel > strong {
  color: var(--flow-orange);
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.noovi-customer-flow .intake-progress-panel li {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
}

.noovi-customer-flow .intake-progress-panel li > span {
  border-radius: 0;
  background: transparent;
  color: var(--flow-orange);
  font-family: var(--flow-serif);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 600;
}

.noovi-customer-flow .safe-line {
  border: 1px solid rgba(202, 138, 4, 0.3);
  border-radius: 0;
  background: var(--flow-orange-soft);
  color: #e7e5e4;
}

/* ------------------------------------------------------------------ */
/* Form fields                                                         */
/* ------------------------------------------------------------------ */

.noovi-customer-flow label {
  color: #e7e5e4;
  font-weight: 500;
}

.noovi-customer-flow input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
.noovi-customer-flow select,
.noovi-customer-flow textarea {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  background: rgba(12, 31, 20, 0.85);
  color: var(--flow-ink);
}

.noovi-customer-flow input:not([type="file"])::placeholder,
.noovi-customer-flow textarea::placeholder {
  color: rgba(214, 211, 209, 0.45);
}

.noovi-customer-flow input:focus-visible,
.noovi-customer-flow select:focus-visible,
.noovi-customer-flow textarea:focus-visible,
.noovi-customer-flow input:focus,
.noovi-customer-flow select:focus,
.noovi-customer-flow textarea:focus {
  outline: 2px solid var(--flow-orange-bright);
  outline-offset: 1px;
  border-color: var(--flow-orange);
}

.noovi-customer-flow [aria-invalid="true"] {
  border-color: #f87171 !important;
}

.noovi-customer-flow .option-block,
.noovi-customer-flow .mini-form-card,
.noovi-customer-flow .upload-field,
.noovi-customer-flow .upload-fallback-field {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
}

.noovi-customer-flow .option-block legend,
.noovi-customer-flow .mini-form-card > strong,
.noovi-customer-flow .upload-field > span:first-child {
  color: var(--flow-orange);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.noovi-customer-flow .check-option,
.noovi-customer-flow .radio-option {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: #e7e5e4;
  transition: border-color 0.2s, background-color 0.2s;
}

.noovi-customer-flow .check-option:hover,
.noovi-customer-flow .radio-option:hover {
  border-color: rgba(202, 138, 4, 0.5);
}

.noovi-customer-flow .check-option:has(input:checked),
.noovi-customer-flow .radio-option:has(input:checked) {
  border-color: var(--flow-orange);
  background: var(--flow-orange-soft);
}

.noovi-customer-flow .check-option:has(input:focus-visible),
.noovi-customer-flow .radio-option:has(input:focus-visible) {
  outline: 2px solid var(--flow-orange-bright);
  outline-offset: 1px;
}

.noovi-customer-flow input[type="checkbox"],
.noovi-customer-flow input[type="radio"] {
  accent-color: var(--flow-orange);
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.noovi-customer-flow .button,
.noovi-customer-flow .upload-picker-button,
.noovi-customer-flow .intake-step-back,
.noovi-customer-flow .intake-step-continue {
  border-radius: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.noovi-customer-flow .button-primary,
.noovi-customer-flow .intake-step-continue {
  background: var(--flow-orange);
  border: 1px solid var(--flow-orange);
  color: #0c1f14;
  box-shadow: none;
}

.noovi-customer-flow .button-primary:hover,
.noovi-customer-flow .intake-step-continue:hover {
  background: var(--flow-orange-bright);
  border-color: var(--flow-orange-bright);
}

.noovi-customer-flow .button-primary:focus-visible,
.noovi-customer-flow .button-secondary:focus-visible,
.noovi-customer-flow .intake-step-continue:focus-visible,
.noovi-customer-flow .intake-step-back:focus-visible,
.noovi-customer-flow .upload-picker-button:focus-visible,
.noovi-customer-flow .intake-review-change:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.noovi-customer-flow .upload-picker-button {
  border: 1px solid rgba(202, 138, 4, 0.5);
  background: transparent;
  color: var(--flow-orange-bright);
  cursor: pointer;
  padding: 14px 18px;
  min-height: 48px;
}

.noovi-customer-flow .upload-picker-button:hover {
  background: var(--flow-orange-soft);
}

/* ------------------------------------------------------------------ */
/* Step-by-step intake flow                                            */
/* ------------------------------------------------------------------ */

.intake-stepper {
  margin-bottom: 26px;
}

.intake-stepper-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.intake-stepper-count {
  color: var(--flow-orange);
  font-family: var(--flow-serif);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 600;
  white-space: nowrap;
}

.intake-stepper-label {
  color: var(--flow-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: right;
}

.intake-stepper-track {
  margin-top: 12px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.intake-stepper-track > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--flow-orange);
  transition: width 0.4s ease;
}

.intake-step-title {
  margin: 0 0 6px;
  color: #fff;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.intake-step-title:focus {
  outline: none;
}

.intake-step-title em {
  color: var(--flow-orange);
  font-style: inherit;
}

.intake-step-note {
  margin: 0 0 22px;
  color: var(--flow-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.intake-step-error {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(248, 113, 113, 0.55);
  border-left: 4px solid #f87171;
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
  font-size: 0.95rem;
  line-height: 1.5;
}

.intake-step-error:empty {
  display: none;
}

.intake-step-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.intake-step-back,
.intake-step-continue {
  min-height: 52px;
  padding: 14px 28px;
  cursor: pointer;
}

.intake-step-back {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
}

.intake-step-back:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.intake-step-back[hidden],
.intake-step-continue[hidden] {
  display: none;
}

/* Optional extras accordions */
details.intake-extra {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  margin: 0 0 12px;
}

details.intake-extra > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  color: #fff;
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 48px;
}

details.intake-extra > summary::-webkit-details-marker {
  display: none;
}

details.intake-extra > summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--flow-muted);
  font-family: var(--flow-serif);
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 400;
}

details.intake-extra[open] > summary::after {
  content: "\2212";
  border-color: rgba(202, 138, 4, 0.5);
  color: var(--flow-orange);
}

details.intake-extra > summary:hover {
  color: var(--flow-orange-bright);
}

details.intake-extra > summary:focus-visible {
  outline: 2px solid var(--flow-orange-bright);
  outline-offset: -2px;
}

details.intake-extra > summary .intake-extra-hint {
  margin-left: auto;
  color: var(--flow-muted);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.2em;
}

details.intake-extra > .intake-extra-body {
  padding: 4px 18px 18px;
}

details.intake-extra .option-block {
  border: 0;
  background: transparent;
  padding: 0;
}

/* Review / confirm step summary */
.intake-review {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 22px;
}

.intake-review-row {
  display: grid;
  grid-template-columns: minmax(110px, 34%) 1fr auto;
  gap: 8px 14px;
  align-items: start;
  padding: 13px 16px;
  background: var(--flow-panel);
}

.intake-review-row > span {
  color: var(--flow-orange);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-top: 3px;
}

.intake-review-row > b {
  color: #e7e5e4;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.intake-review-change {
  border: 0;
  background: transparent;
  color: var(--flow-orange-bright);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: uppercase;
  padding: 4px;
  min-height: 32px;
}

.intake-review-change:hover {
  color: #fff;
}

/* Status area */
.noovi-customer-flow .status-text.error {
  border: 1px solid rgba(248, 113, 113, 0.55);
  border-radius: 0;
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
}

.noovi-customer-flow .status-text.success {
  border: 1px solid rgba(202, 138, 4, 0.45);
  border-radius: 0;
  background: var(--flow-orange-soft);
  color: #e7e5e4;
}

.noovi-customer-flow .status-text.pending {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.05);
  color: #d6d3d1;
}

/* Guided assistant panel */
.noovi-customer-flow .guided-assistant-panel {
  border: 1px solid var(--flow-line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
}

.noovi-customer-flow .guided-assistant-kicker,
.noovi-customer-flow .guided-assistant-lock {
  color: var(--flow-orange);
  border-radius: 0;
}

.noovi-customer-flow .guided-assistant-progress-track {
  border-radius: 0;
  background: rgba(255, 255, 255, 0.12);
}

.noovi-customer-flow .guided-assistant-progress-track span {
  border-radius: 0;
  background: var(--flow-orange);
}

.noovi-customer-flow .guided-assistant-cards article,
.noovi-customer-flow .guided-assistant-topic-buttons button {
  border-radius: 0;
}

/* ------------------------------------------------------------------ */
/* Mobile                                                              */
/* ------------------------------------------------------------------ */

@media (max-width: 880px) {
  .noovi-customer-flow .onboarding-copy {
    display: none;
  }

  .mobile-onboarding-intro {
    display: block;
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(202, 138, 4, 0.35);
  }

  .mobile-onboarding-intro p:last-child {
    margin: 0;
    color: #d6d3d1;
    line-height: 1.55;
  }

  .noovi-customer-flow .page-title {
    font-size: clamp(2.3rem, 11vw, 3.2rem);
  }
}

@media (max-width: 560px) {
  .noovi-customer-flow .nav {
    min-height: 64px;
  }

  .noovi-customer-flow .brand-mark {
    --mark-size: 34px;
  }

  .noovi-customer-flow .brand-mark::after {
    font-size: 1.15rem;
  }

  .noovi-customer-flow .brand-name {
    font-size: 1.1rem;
  }

  .intake-step-nav {
    flex-direction: column-reverse;
  }

  .intake-step-back,
  .intake-step-continue {
    width: 100%;
  }

  .intake-review-row {
    grid-template-columns: 1fr auto;
  }

  .intake-review-row > span {
    grid-column: 1 / -1;
    padding-top: 0;
  }
}
