@font-face {
  font-family: 'Season Sans';
  src: url("/assets/SeasonSans-Regular.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Season Sans';
  src: url("/assets/SeasonSans-SemiBold.woff2") format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Season Mix';
  src: url("/assets/SeasonMix-Light.woff2") format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Season Mix';
  src: url("/assets/SeasonMix-Regular.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --teal-50: #F0FAFC;
  --teal-100: #BEE7F0;
  --teal-200: #89D5E4;
  --teal-300: #51C0D7;
  --teal-400: #14AAC9;
  --teal-500: #0A93AF;
  --teal-600: #08758B;
  --teal-700: #065869;
  --navy-50: #F7F8F9;
  --navy-100: #DBE1E4;
  --navy-200: #C0CBCF;
  --navy-300: #A6B5BB;
  --navy-400: #8C9FA7;
  --navy-500: #728A94;
  --navy-600: #526F7B;
  --navy-700: #325563;
  --navy-800: #0A3344;
  --navy-900: #031A24;
  --mist-50: #F6F8F9;
  --mist-100: #D7E2E6;
  --mist-200: #B9CCD2;
  --white: #ffffff;
  --sidebar-w: 260px;
  --notes-w: 320px;
  --header-h: 72px;
}

body {
  font-family: 'Season Sans', system-ui, sans-serif;
  font-weight: 400;
  background: var(--navy-50);
  color: var(--navy-600);
  min-height: 100vh;
  line-height: 1.625;
}

/* Header */
.wizard-header {
  height: var(--header-h);
  background: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-logo svg { display: block; }

.header-divider {
  width: 1px;
  height: 28px;
  background: var(--navy-600);
  opacity: 0.4;
}

.header-title {
  font-family: 'Season Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--navy-300);
  letter-spacing: 0.02em;
}

.header-project {
  font-size: 13px;
  color: var(--navy-400);
  font-weight: 400;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notes-toggle {
  padding: 8px 20px;
  border-radius: 999px;
  font-family: 'Season Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--navy-600);
  background: transparent;
  color: var(--navy-300);
  transition: all 0.2s;
}
.notes-toggle:hover { background: var(--navy-700); color: var(--white); }

.save-status {
  font-size: 13px;
  color: var(--navy-400);
}

/* Layout */
.wizard-body {
  display: flex;
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
}

/* Sidebar / Stepper */
.wizard-sidebar {
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--mist-100);
  padding: 32px 0;
  position: fixed;
  top: var(--header-h);
  bottom: 0;
  left: 0;
  overflow-y: auto;
}

.step-list { list-style: none; }

.step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.step-item:hover { background: var(--teal-50); }

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid var(--navy-200);
  color: var(--navy-400);
  flex-shrink: 0;
  transition: all 0.3s;
}

.step-item.active .step-num {
  border-color: var(--teal-400);
  background: var(--teal-400);
  color: var(--white);
}

.step-item.completed .step-num {
  border-color: var(--teal-400);
  background: var(--teal-50);
  color: var(--teal-600);
}

.step-item.completed .step-num::after {
  content: '\2713';
  font-size: 14px;
}

.step-item.completed .step-num span { display: none; }

.step-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--navy-400);
  transition: color 0.2s;
}

.step-item.active .step-label { color: var(--navy-800); font-weight: 600; }
.step-item.completed .step-label { color: var(--navy-600); }

/* Connector line */
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 37px;
  top: 40px;
  width: 2px;
  height: calc(100% - 16px);
  background: var(--mist-100);
}
.step-item.completed:not(:last-child)::after { background: var(--teal-100); }

/* Main content */
.wizard-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 48px 64px 120px;
  max-width: 800px;
  transition: margin-right 0.3s;
}

.wizard-main.notes-open { margin-right: var(--notes-w); }

/* Section */
.wizard-section { animation: fadeSlide 0.35s ease; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-400);
}

.section-title {
  font-family: 'Season Mix', 'Times New Roman', serif;
  font-weight: 300;
  font-size: clamp(1.75rem, 1.5rem + 1vi, 2.25rem);
  color: var(--navy-800);
  margin-bottom: 8px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 15px;
  color: var(--navy-500);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Info callout */
.info-callout {
  font-size: 14px;
  color: var(--navy-500);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Form fields */
.field-group {
  margin-bottom: 32px;
}

.field-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 8px;
}

.field-input,
.field-textarea,
.field-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--mist-200);
  border-radius: 8px;
  font-family: 'Season Sans', system-ui, sans-serif;
  font-size: 15px;
  color: var(--navy-800);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  line-height: 1.5;
}

.field-input:focus, .field-textarea:focus, .field-select:focus {
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(20,170,201,0.12);
}

.field-textarea { resize: vertical; min-height: 100px; }
.field-select { cursor: pointer; }

/* Color picker */
.field-color {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 2px solid var(--mist-100);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}

/* Multi-select chips */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 18px;
  border: 1px solid var(--mist-200);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 400;
  color: var(--navy-600);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  background: var(--white);
}

.chip:hover { border-color: var(--teal-400); color: var(--teal-600); }
.chip.selected {
  background: var(--teal-50);
  border-color: var(--teal-400);
  color: var(--teal-700);
  font-weight: 600;
}

/* Toggle */
.toggle-group {
  display: flex;
  gap: 8px;
}

.toggle-btn {
  padding: 10px 24px;
  border: 1px solid var(--mist-200);
  border-radius: 8px;
  font-family: 'Season Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  background: var(--white);
  color: var(--navy-600);
  transition: all 0.2s;
}
.toggle-btn:hover { border-color: var(--teal-400); }
.toggle-btn.selected {
  background: var(--teal-400);
  border-color: var(--teal-400);
  color: var(--white);
  font-weight: 600;
}

/* Conditional field */
.conditional { display: none; margin-top: 12px; }
.conditional.visible { display: block; }

/* Bottom bar */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-w);
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--mist-100);
  padding: 16px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  transition: right 0.3s;
}

.bottom-bar.notes-open { right: var(--notes-w); }

.btn-back,
.btn-next {
  padding: 10px 32px;
  border-radius: 999px;
  font-family: 'Season Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-back {
  background: var(--mist-50);
  color: var(--navy-600);
  border: 1px solid var(--mist-200);
}
.btn-back:hover { background: var(--mist-100); }

.btn-next {
  background: var(--teal-400);
  color: var(--white);
}
.btn-next:hover { background: var(--teal-500); }

/* Notes panel */
.notes-panel {
  width: var(--notes-w);
  background: var(--white);
  border-left: 1px solid var(--mist-100);
  position: fixed;
  top: var(--header-h);
  bottom: 0;
  right: 0;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 90;
  display: flex;
  flex-direction: column;
}

.notes-panel.open { transform: translateX(0); }

.notes-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--mist-100);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notes-header h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.notes-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--navy-400);
}

.notes-textarea {
  flex: 1;
  width: 100%;
  min-height: 200px;
  border: 1px dashed var(--mist-200);
  border-radius: 8px;
  padding: 12px;
  margin: 20px;
  font-family: 'Season Sans', system-ui, sans-serif;
  font-size: 14px;
  resize: none;
  color: var(--navy-600);
  outline: none;
  box-sizing: border-box;
  width: calc(100% - 40px);
}

/* Brief */
.brief-container {
  display: none;
  margin-top: 32px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: 12px;
  padding: 24px;
}
.brief-container.visible { display: block; }

.brief-output {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.7;
  color: var(--navy-700);
  font-family: 'Season Sans', system-ui, sans-serif;
}

.brief-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

/* Print */
@media print {
  .wizard-header, .wizard-sidebar, .bottom-bar, .notes-panel,
  .brief-actions { display: none !important; }

  .wizard-body { display: block; }
  .wizard-main { margin: 0 !important; padding: 20px !important; max-width: 100% !important; }
  .wizard-section { display: block !important; page-break-inside: avoid; margin-bottom: 32px; }
  .section-title { font-size: 20px; margin-bottom: 4px; }
  .section-subtitle { display: none; }
  .section-eyebrow { display: none; }

  .field-group { margin-bottom: 16px; }
  .field-input, .field-textarea, .field-select { border: none !important; padding: 4px 0 !important; box-shadow: none !important; }
  .chip-group .chip:not(.selected) { display: none; }
  .chip.selected { background: none; border: none; padding: 0; color: var(--navy-800); }
  .toggle-btn:not(.selected) { display: none; }
  .toggle-btn.selected { background: none; border: none; padding: 0; color: var(--navy-800); }

  .print-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--navy-800);
    padding-bottom: 12px;
    margin-bottom: 24px;
  }

  .notes-print { display: block !important; margin-top: 8px; font-style: italic; color: var(--navy-400); font-size: 13px; }
}

.print-header { display: none; }
.notes-print { display: none; }

/* Mobile */
@media (max-width: 900px) {
  .wizard-sidebar { display: none; }
  .wizard-main { margin-left: 0; padding: 32px 20px 120px; }
  .wizard-main.notes-open { margin-right: 0; }
  .bottom-bar { left: 0; padding: 16px 20px; }
  .bottom-bar.notes-open { right: 0; }

  .mobile-stepper {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
  }

  .mobile-dots {
    display: flex;
    gap: 6px;
  }

  .mobile-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mist-200);
  }
  .mobile-dot.active { background: var(--teal-400); width: 24px; border-radius: 4px; }
  .mobile-dot.completed { background: var(--teal-100); }

  .mobile-label {
    font-size: 13px;
    color: var(--navy-400);
    font-weight: 400;
  }

  .notes-panel { width: 100%; }
}

.mobile-stepper { display: none; }
