/* ============================================================
   NOVARIC® Case Progress Centre — Intake Wizard Styles
   Supplements case-progress.css for the Create a Case journey.
   Version: 20260915a
   ============================================================ */

/* ── Intro bar ────────────────────────────────────────────── */
.nv-intake-intro-bar {
  background: var(--nv-navy, #30384B);
  border-bottom: 3px solid var(--nv-cyan, #009AE4);
  padding: 1.25rem 0;
}
.nv-intake-intro-bar__inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.nv-intake-breadcrumb a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 0.85rem;
}
.nv-intake-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.nv-intake-intro-bar__h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.nv-intake-intro-bar__lead {
  font-size: 0.9rem;
  color: rgba(255,255,255,.8);
  margin: 0;
}

/* ── Progress bar ─────────────────────────────────────────── */
.nv-intake-progress-bar {
  background: #fff;
  border-bottom: 1px solid #DDE2EA;
  padding: 1rem 0;
}
.nv-intake-progress__list {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.nv-intake-progress__list::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: #DDE2EA;
  z-index: 0;
}
.nv-intake-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  position: relative;
  z-index: 1;
}
.nv-intake-progress__dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #DDE2EA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #4D5A6B;
  transition: all 200ms ease;
}
.nv-intake-progress__label {
  font-size: 0.68rem;
  color: #4D5A6B;
  text-align: center;
  white-space: nowrap;
}
.nv-intake-progress__step.is-done .nv-intake-progress__dot {
  background: #0072A9;
  border-color: #0072A9;
  color: #fff;
}
.nv-intake-progress__step.is-done .nv-intake-progress__label { color: #0072A9; }
.nv-intake-progress__step.is-active .nv-intake-progress__dot {
  background: #009AE4;
  border-color: #009AE4;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(0,154,228,.2);
}
.nv-intake-progress__step.is-active .nv-intake-progress__label {
  color: #009AE4;
  font-weight: 600;
}

/* ── Main area ────────────────────────────────────────────── */
.nv-intake-main {
  max-width: 760px;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
}

/* ── Cards ────────────────────────────────────────────────── */
.nv-intake-card {
  background: #fff;
  border: 1px solid #DDE2EA;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  overflow: hidden;
}
.nv-intake-card__header {
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid #DDE2EA;
}
.nv-intake-card__header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #30384B;
  margin: 0 0 0.25rem;
}
.nv-intake-card__header p {
  font-size: 0.875rem;
  color: #4D5A6B;
  margin: 0;
}
.nv-intake-card__body { padding: 1.75rem; }
.nv-intake-card__footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid #DDE2EA;
  background: #F4F6F8;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nv-intake-card__footer--right { justify-content: flex-end; }
.nv-intake-card__footer--space { justify-content: space-between; }
.nv-intake-card--confirmation .nv-intake-card__header { border-bottom: none; text-align: center; }
.nv-intake-card__header--success { background: #F0FDF4; border-bottom: 2px solid #22C55E; }
.nv-intake-card__header--success h2 { color: #166534; }

/* ── Forms ────────────────────────────────────────────────── */
.nv-field { margin-bottom: 1.25rem; }
.nv-field:last-child { margin-bottom: 0; }
.nv-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 580px) { .nv-field-row { grid-template-columns: 1fr; } }
.nv-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #30384B;
  margin-bottom: 0.4rem;
}
.nv-required { color: #DC2626; margin-left: 2px; }
.nv-optional { color: #4D5A6B; font-weight: 400; font-size: 0.8rem; margin-left: 4px; }
.nv-field__hint { font-size: 0.78rem; color: #4D5A6B; margin-top: 0.3rem; }
.nv-input, .nv-select, .nv-textarea {
  width: 100%;
  padding: 0.6rem 0.875rem;
  border: 1.5px solid #DDE2EA;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #1A2130;
  background: #fff;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  font-family: inherit;
  appearance: none;
}
.nv-input:focus, .nv-select:focus, .nv-textarea:focus {
  outline: none;
  border-color: #009AE4;
  box-shadow: 0 0 0 3px rgba(0,154,228,.15);
}
.nv-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234D5A6B' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.nv-textarea { min-height: 110px; resize: vertical; }
.nv-textarea--sm { min-height: 72px; }
.nv-textarea-wrap { position: relative; }
.nv-char-count { display: block; text-align: right; font-size: 0.78rem; color: #4D5A6B; margin-top: 0.3rem; }

/* ── Radio cards ──────────────────────────────────────────── */
.nv-role-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.nv-role-tiles--sm { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 500px) { .nv-role-tiles--sm { grid-template-columns: 1fr; } }
.nv-radio-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 2px solid #DDE2EA;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  background: #fff;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  font-size: 0.875rem;
  font-weight: 500;
  color: #30384B;
}
.nv-radio-card:hover { border-color: #009AE4; box-shadow: 0 0 0 3px rgba(0,154,228,.1); }
.nv-radio-card input[type="radio"] { flex-shrink: 0; accent-color: #009AE4; width: 16px; height: 16px; }
.nv-radio-card:has(input:checked) {
  border-color: #009AE4;
  background: #F0F9FF;
  border-left-width: 4px;
}
.nv-radio-card__label { line-height: 1.35; }

/* ── Checkbox ─────────────────────────────────────────────── */
.nv-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: #30384B;
  cursor: pointer;
  line-height: 1.5;
}
.nv-checkbox { flex-shrink: 0; margin-top: 3px; accent-color: #009AE4; width: 16px; height: 16px; }

/* ── Agent block ──────────────────────────────────────────── */
.nv-agent-block {
  border-left: 4px solid #F59E0B;
  background: #FFFBEB;
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
}
.nv-agent-block__heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: #30384B;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nv-agent-block__heading::before { content: '⚠'; color: #F59E0B; }
.nv-authority-confirm .nv-agent-block { background: #FFF7ED; border-left-color: #EA580C; }

/* ── Upload zone ──────────────────────────────────────────── */
.nv-upload-zone {
  border: 2px dashed #DDE2EA;
  border-radius: 8px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
  background: #F4F6F8;
}
.nv-upload-zone:hover, .nv-upload-zone.is-drag-over {
  border-color: #009AE4;
  background: #F0F9FF;
}
.nv-upload-zone__icon { color: #0072A9; margin: 0 auto 0.75rem; display: block; }
.nv-upload-zone__text { font-size: 0.95rem; color: #30384B; margin-bottom: 0.3rem; }
.nv-upload-zone__hint { font-size: 0.8rem; color: #4D5A6B; margin: 0; }

.nv-upload-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.nv-upload-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.875rem;
  background: #fff;
  border: 1px solid #DDE2EA;
  border-radius: 6px;
  font-size: 0.85rem;
}
.nv-upload-item--success { border-color: #86EFAC; background: #F0FDF4; }
.nv-upload-item--error   { border-color: #FCA5A5; background: #FEF2F2; }
.nv-upload-item--pending { border-color: #BAE6FD; background: #F0F9FF; }
.nv-upload-item__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.nv-upload-item__size { color: #4D5A6B; white-space: nowrap; font-size: 0.78rem; }
.nv-upload-item__status { white-space: nowrap; font-size: 0.78rem; color: #4D5A6B; min-width: 80px; text-align: right; }
.nv-upload-item--success .nv-upload-item__status { color: #166534; }
.nv-upload-item--error   .nv-upload-item__status { color: #991B1B; }
.nv-upload-item__progress { flex-basis: 80px; height: 4px; border-radius: 2px; }
.nv-upload-item__remove {
  background: none; border: none; cursor: pointer; color: #4D5A6B; font-size: 1rem;
  padding: 2px 4px; border-radius: 3px;
}
.nv-upload-item__remove:hover { background: #F4F6F8; color: #DC2626; }

/* ── Document checklist ───────────────────────────────────── */
.nv-checklist-block { display: flex; flex-direction: column; gap: 1rem; }
.nv-checklist-section__title { font-size: 0.875rem; font-weight: 700; color: #30384B; margin-bottom: 0.5rem; }
.nv-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.nv-checklist__item { font-size: 0.875rem; color: #30384B; padding: 0.35rem 0.5rem; border-radius: 4px; display: flex; align-items: flex-start; gap: 0.4rem; }
.nv-checklist__item--required { background: #FFF7ED; border-left: 3px solid #F59E0B; }
.nv-checklist__item--placeholder { color: #4D5A6B; font-style: italic; }
.nv-checklist__icon { flex-shrink: 0; font-weight: 700; color: #F59E0B; }

/* ── Review summary ───────────────────────────────────────── */
.nv-review-list { margin: 0 0 1rem; padding: 0; }
.nv-review-item { display: grid; grid-template-columns: 140px 1fr; gap: 0.5rem; padding: 0.6rem 0; border-bottom: 1px solid #DDE2EA; font-size: 0.875rem; }
.nv-review-item__label { font-weight: 600; color: #4D5A6B; }
.nv-review-item__value { color: #30384B; }
.nv-review-edit-hint { font-size: 0.8rem; color: #4D5A6B; }

/* ── Consent declarations ─────────────────────────────────── */
.nv-consent-block { border: none; padding: 0; margin: 0; }
.nv-consent-block__title { font-size: 0.95rem; font-weight: 700; color: #30384B; margin-bottom: 0.25rem; }
.nv-consent-block__intro { font-size: 0.825rem; color: #4D5A6B; margin-bottom: 1rem; }
.nv-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem;
  border: 1px solid #DDE2EA;
  border-radius: 6px;
  margin-bottom: 0.6rem;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #1A2130;
  transition: border-color 200ms ease, background 200ms ease;
}
.nv-consent-label:hover { border-color: #009AE4; background: #F0F9FF; }
.nv-consent-label:has(input:checked) { border-color: #22C55E; background: #F0FDF4; }

/* ── Step error ───────────────────────────────────────────── */
.nv-step-error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #991B1B;
  font-weight: 500;
}

/* ── Buttons ──────────────────────────────────────────────── */
.nv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
  line-height: 1.3;
}
.nv-btn--primary { background: #009AE4; color: #fff; border-color: #009AE4; }
.nv-btn--primary:hover { background: #0072A9; border-color: #0072A9; }
.nv-btn--ghost { background: transparent; color: #30384B; border-color: #DDE2EA; }
.nv-btn--ghost:hover { background: #F4F6F8; }
.nv-btn--sm { padding: 0.4rem 0.875rem; font-size: 0.8rem; }
.nv-btn--submit { min-width: 200px; justify-content: center; }
.nv-btn:disabled { opacity: 0.5; cursor: not-allowed; }
@keyframes spin { to { transform: rotate(360deg); } }
.nv-spinner { animation: spin 0.8s linear infinite; }

/* ── Confirmation step ────────────────────────────────────── */
.nv-confirm-icon { display: flex; justify-content: center; margin-bottom: 0.75rem; color: #22C55E; }
.nv-confirm-ref-block { text-align: center; padding: 1.5rem; background: #F0F9FF; border-radius: 8px; margin-bottom: 1.5rem; }
.nv-confirm-ref-label { font-size: 0.8rem; font-weight: 600; color: #0072A9; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.nv-confirm-ref {
  font-size: 1.6rem;
  font-weight: 800;
  color: #30384B;
  letter-spacing: 0.04em;
  font-family: 'Courier New', Courier, monospace;
  user-select: all;
  margin-bottom: 1rem;
}
.nv-confirm-ref-actions { display: flex; justify-content: center; gap: 0.75rem; }
.nv-confirm-email-status { text-align: center; font-size: 0.875rem; margin-bottom: 1.25rem; }
.nv-confirm-fraud-warn {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 6px;
  padding: 0.875rem 1rem;
  font-size: 0.825rem;
  color: #92400E;
  margin-bottom: 1.5rem;
}
.nv-confirm-actions { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
@media (min-width: 480px) { .nv-confirm-actions { flex-direction: row; justify-content: center; } }

/* ── Intake notes ─────────────────────────────────────────── */
.nv-intake-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #4D5A6B;
}
.nv-intake-notices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem auto; max-width: 760px; padding: 0 1rem; }
@media (max-width: 640px) { .nv-intake-notices { grid-template-columns: 1fr; } }

/* ── Draft assistant button + disclosure ─────────────────── */
.nv-draft-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.nv-draft-disclosure {
  font-size: 0.75rem;
  color: #4D5A6B;
  font-style: italic;
}

/* ── Draft modal overlay ──────────────────────────────────── */
.nv-draft-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,37,55,0.55);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(2px);
}
.nv-draft-overlay[hidden] { display: none; }

/* ── Draft panel ──────────────────────────────────────────── */
.nv-draft-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,.22);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Panel header */
.nv-draft-panel__header {
  background: #30384B;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.nv-draft-panel__header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #009AE4;
}
.nv-draft-panel__header { position: relative; }
.nv-draft-panel__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nv-draft-panel__title-icon { color: #009AE4; font-size: 1.1rem; }
.nv-draft-panel__close {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
}
.nv-draft-panel__close:hover { color: #fff; background: rgba(255,255,255,.1); }
.nv-draft-panel__close:focus-visible { outline: 2px solid #009AE4; }

/* Panel body */
.nv-draft-panel__body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

/* Panel footer */
.nv-draft-panel__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #DDE2EA;
  background: #F4F6F8;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

/* ── Draft questions ──────────────────────────────────────── */
.nv-draft-intro {
  font-size: 0.85rem;
  color: #4D5A6B;
  margin: 0 0 1.25rem;
  line-height: 1.6;
}
.nv-draft-question { margin-bottom: 1.1rem; }
.nv-draft-question:last-child { margin-bottom: 0; }
.nv-draft-question label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #30384B;
  margin-bottom: 0.35rem;
}
.nv-draft-question .nv-required { color: #DC2626; margin-left: 2px; }
.nv-draft-question textarea,
.nv-draft-question input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid #DDE2EA;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
  color: #1A2130;
  background: #fff;
  resize: vertical;
}
.nv-draft-question textarea { min-height: 70px; }
.nv-draft-question textarea:focus,
.nv-draft-question input:focus {
  outline: none;
  border-color: #009AE4;
  box-shadow: 0 0 0 3px rgba(0,154,228,.15);
}

/* ── Fraud warning block ──────────────────────────────────── */
.nv-draft-fraud-warn {
  background: #FEF2F2;
  border: 1.5px solid #FCA5A5;
  border-radius: 6px;
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: #991B1B;
  font-weight: 600;
  line-height: 1.55;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

/* ── Loading state ────────────────────────────────────────── */
.nv-draft-loading {
  text-align: center;
  padding: 2rem 1rem;
  color: #4D5A6B;
  font-size: 0.9rem;
}
.nv-draft-loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #DDE2EA;
  border-top-color: #009AE4;
  border-radius: 50%;
  animation: nv-spin 0.8s linear infinite;
  margin: 0 auto 0.75rem;
}
@keyframes nv-spin { to { transform: rotate(360deg); } }

/* ── Draft review ─────────────────────────────────────────── */
.nv-draft-review-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0072A9;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
}
.nv-draft-preview {
  width: 100%;
  min-height: 160px;
  padding: 0.75rem;
  border: 1.5px solid #009AE4;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
  color: #1A2130;
  background: #F0F9FF;
  resize: vertical;
  line-height: 1.6;
}
.nv-draft-preview:focus {
  outline: none;
  border-color: #0072A9;
  box-shadow: 0 0 0 3px rgba(0,154,228,.15);
}
.nv-draft-disclosure-review {
  display: block;
  font-size: 0.78rem;
  color: #4D5A6B;
  font-style: italic;
  margin-top: 0.5rem;
  line-height: 1.5;
}
.nv-draft-char-count {
  font-size: 0.75rem;
  color: #4D5A6B;
  text-align: right;
  margin-top: 0.25rem;
}

/* ── Error state ──────────────────────────────────────────── */
.nv-draft-error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: 6px;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: #991B1B;
  margin-bottom: 1rem;
}

/* ── Dual CTA on main CPC page ────────────────────────────── */
.ncp-dual-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 640px) { .ncp-dual-cta { grid-template-columns: 1fr; } }
.ncp-cta-card {
  background: #fff;
  border: 1px solid #DDE2EA;
  border-radius: 8px;
  padding: 2rem 1.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ncp-cta-card--primary { border-top: 4px solid #009AE4; }
.ncp-cta-card--secondary { border-top: 4px solid #30384B; }
.ncp-cta-card__title { font-size: 1.15rem; font-weight: 700; color: #30384B; }
.ncp-cta-card__desc { font-size: 0.875rem; color: #4D5A6B; flex: 1; line-height: 1.6; }
.ncp-cta-card__action { margin-top: 0.5rem; }
