/* ============================================================
   3D Technology Services — Change Order Request Form
   Premium responsive design with print-to-PDF support
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  --teal-dark: #0a4040;
  --teal: #0d5c5c;
  --teal-light: #1a7a6a;
  --teal-pale: #e8f5f5;
  --gold: #C8960C;
  --gold-light: #d4a81a;
  --gold-pale: #fdf8eb;
  --green: #1A7A3A;
  --green-bg: #e8f5ec;
  --orange: #B85C00;
  --orange-bg: #fef3e6;
  --purple: #7B2D8E;
  --purple-bg: #f3e8f7;
  --red: #C02020;
  --red-bg: #fde8e8;
  --white: #ffffff;
  --gray-50: #f4f7f7;
  --gray-100: #f0f0f0;
  --gray-200: #e0e0e0;
  --gray-300: #dde5e5;
  --gray-400: #ccc;
  --gray-500: #aaa;
  --gray-600: #888;
  --gray-700: #666;
  --gray-800: #555;
  --gray-900: #333;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
  --shadow-gold: 0 4px 15px rgba(200, 150, 12, 0.3);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 20px;
  --transition: all 0.2s ease;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--gray-50);
  min-height: 100vh;
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
}

/* ---- Header ---- */
.header {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, var(--teal-light) 100%);
  padding: 20px 24px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.header h1 {
  color: var(--gold);
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}

.header p {
  color: rgba(255, 255, 255, 0.7);
  margin: 4px 0 0;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.header-badge {
  background: rgba(200, 150, 12, 0.15);
  border: 1px solid rgba(200, 150, 12, 0.3);
  border-radius: var(--radius-md);
  padding: 8px 16px;
}

.header-badge span {
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
}

/* ---- Step Indicator ---- */
.step-indicator {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 24px 0;
}

.step-indicator-inner {
  display: flex;
  gap: 4px;
}

.step-item {
  flex: 1;
  text-align: center;
}

.step-bar {
  height: 4px;
  border-radius: 2px;
  margin-bottom: 8px;
  transition: var(--transition);
  background: var(--gray-300);
}

.step-bar.active {
  background: linear-gradient(90deg, var(--teal), #1a8a8a);
}

.step-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--gray-500);
  letter-spacing: 0.3px;
}

.step-label.active {
  font-weight: 700;
  color: var(--teal);
}

/* ---- Main Container ---- */
.main-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.form-section {
  padding: 32px;
}

.form-section h2 {
  color: var(--teal);
  margin: 0 0 4px;
  font-size: 22px;
}

.form-section .subtitle {
  color: var(--gray-600);
  margin: 0 0 28px;
  font-size: 14px;
}

/* ---- Form Grid ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid .span-2 {
  grid-column: span 2;
}

/* ---- Field Styles ---- */
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.field-input:focus {
  border-color: var(--teal);
}

textarea.field-input {
  resize: vertical;
}

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

.toggle-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.toggle-btn:hover {
  border-color: var(--gray-400);
}

.toggle-btn.selected {
  border-color: var(--teal);
  background: var(--teal-pale);
  color: var(--teal);
}

/* ---- System Buttons ---- */
.system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.system-btn {
  padding: 14px 12px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: #444;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  font-family: inherit;
  transition: var(--transition);
}

.system-btn:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.system-btn.selected {
  border-color: var(--teal);
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white);
}

/* ---- Type Filter Pills ---- */
.filter-group {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: var(--transition);
}

.filter-pill:hover {
  border-color: var(--gray-400);
}

.filter-pill.selected-all {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}

/* ---- Scenario List ---- */
.scenario-list {
  display: grid;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.scenario-btn {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 2px solid #eee;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  transition: all 0.15s;
}

.scenario-btn:hover {
  border-color: var(--gray-400);
  transform: translateX(2px);
}

.scenario-type-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  min-width: 52px;
  text-align: center;
}

.scenario-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
}

.scenario-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--gray-500);
}

/* ---- Multi-Select: Selected Summary ---- */
.selected-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: var(--teal-pale);
  border: 1px solid rgba(13, 92, 92, 0.2);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
}

.selected-count {
  background: var(--teal);
  color: var(--white);
  min-width: 24px;
  height: 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

/* System button with selections indicator */
.system-btn.has-selections {
  border-color: rgba(13, 92, 92, 0.3);
}

.sys-check {
  display: inline-block;
  margin-left: 6px;
  color: var(--green);
  font-weight: 800;
}

.system-btn.selected .sys-check {
  color: var(--white);
}

/* ---- Accordion Systems ---- */
.accordion-system {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-system.open {
  border-color: var(--teal);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  transition: var(--transition);
}

.accordion-header:hover {
  background: var(--gray-50);
}

.accordion-system.open .accordion-header {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: var(--white);
}

.accordion-arrow {
  font-size: 10px;
  min-width: 14px;
  color: var(--gray-500);
}

.accordion-system.open .accordion-arrow {
  color: rgba(255, 255, 255, 0.7);
}

.accordion-title {
  font-weight: 700;
  color: var(--gray-900);
  flex: 1;
  letter-spacing: 0.3px;
}

.accordion-system.open .accordion-title {
  color: var(--white);
}

.accordion-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--green-bg);
  color: var(--green);
}

.accordion-system.open .accordion-badge {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.accordion-header.has-selections .accordion-title::after {
  content: " ✓";
  color: var(--green);
  font-weight: 800;
}

.accordion-system.open .accordion-header.has-selections .accordion-title::after {
  color: #a0ffa0;
}

.accordion-body {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
  animation: fadeInUp 0.2s ease;
}

.sys-intro {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0 0 12px;
  font-style: italic;
  line-height: 1.5;
}

/* ---- Scenario Checkboxes ---- */
.scenario-checkbox {
  font-size: 18px;
  line-height: 1;
  color: var(--gray-400);
  min-width: 22px;
}

.scenario-checked .scenario-checkbox {
  color: var(--teal);
}

/* ---- Selection Chips ---- */
.selection-list {
  margin-top: 4px;
}

.selection-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #e0e8e8;
  border-radius: var(--radius-md);
  background: #f8fafa;
  margin-bottom: 6px;
  font-size: 13px;
  animation: fadeInUp 0.2s ease;
}

.chip-system {
  font-weight: 600;
  color: var(--teal);
  font-size: 12px;
}

.chip-arrow {
  color: var(--gray-400);
  font-size: 11px;
}

.chip-scenario {
  font-weight: 500;
  color: var(--gray-900);
  flex: 1;
}

.chip-remove {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition);
  font-family: inherit;
}

.chip-remove:hover {
  background: var(--red-bg);
}

/* ---- Scenario Tabs (Questions Step) ---- */
.scenario-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 2px solid #eee;
}

.scenario-tab {
  padding: 8px 14px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border: 1px solid var(--gray-200);
  border-bottom: none;
  background: var(--gray-50);
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 100px;
}

.scenario-tab:hover {
  background: var(--white);
}

.scenario-tab.active {
  background: var(--white);
  border-color: var(--teal);
  border-bottom: 2px solid var(--white);
  margin-bottom: -2px;
  font-weight: 700;
  color: var(--teal);
}

.tab-type {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.tab-name {
  font-size: 11px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-progress {
  font-size: 10px;
  color: var(--gray-500);
  font-weight: 600;
}

.scenario-tab.active .tab-progress {
  color: var(--teal);
}

/* ---- Questions Step ---- */
.question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 8px;
}

.question-header h2 {
  margin: 0;
}

.question-type-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.progress-track {
  background: #eee;
  border-radius: var(--radius-sm);
  height: 8px;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 24px;
  margin-top: -16px;
  text-align: right;
}

/* Tips box */
.tips-box {
  background: linear-gradient(135deg, #fdf8eb, #fef5dd);
  border: 1px solid #e8d5a0;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 28px;
}

.tips-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.tip-item {
  font-size: 13px;
  color: #7a6520;
  line-height: 1.5;
  padding-left: 12px;
  margin-bottom: 2px;
}

.tip-escalate {
  color: var(--red);
  font-weight: 700;
  border-left: 3px solid var(--red);
}

/* Question cards */
.question-card {
  border: 1px solid #e8e8e8;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  background: var(--white);
  transition: var(--transition);
  margin-bottom: 16px;
}

.question-card.answered {
  border-color: rgba(13, 92, 92, 0.27);
  background: #f8fcfc;
}

.question-label {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.question-num {
  font-size: 12px;
  font-weight: 700;
  color: #bbb;
  min-width: 24px;
}

.question-card.answered .question-num {
  color: var(--teal);
}

.question-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
  line-height: 1.4;
}

/* Priority buttons */
.priority-group {
  display: flex;
  gap: 6px;
}

.priority-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: var(--transition);
}

/* ---- Additional Notes ---- */
.notes-section {
  margin-top: 32px;
  border-top: 2px solid #eee;
  padding-top: 24px;
}

/* ---- Review Step ---- */
.review-box {
  background: #f8fafa;
  border: 1px solid #e0e8e8;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 16px;
}

.review-box h3 {
  color: var(--teal);
  margin: 0 0 12px;
  font-size: 16px;
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}

.review-label {
  font-size: 12px;
  color: #999;
}

.review-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
}

.review-qa {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.review-qa:last-child {
  border-bottom: none;
}

.review-q {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 3px;
}

.review-a {
  font-size: 14px;
  color: #222;
}

.review-a.empty {
  color: #ccc;
  font-style: italic;
}

/* ---- Navigation Footer ---- */
.nav-footer {
  padding: 16px 32px 28px;
  border-top: 1px solid #eee;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-start-over {
  text-align: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--gray-200);
}

.btn-start-over {
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  padding: 6px 16px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-start-over:hover {
  color: var(--red);
  background: var(--red-bg);
}

.btn {
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-back {
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-800);
}

.btn-back:hover {
  border-color: var(--gray-400);
}

.btn-back:disabled {
  opacity: 0.5;
  cursor: default;
  color: var(--gray-400);
}

.btn-next {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.btn-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 92, 92, 0.3);
}

.btn-next:disabled {
  background: #ddd;
  color: var(--gray-500);
  cursor: default;
  transform: none;
  box-shadow: none;
}

.btn-submit {
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-gold);
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 150, 12, 0.4);
}

.step-counter {
  font-size: 13px;
  color: var(--gray-500);
}

/* ---- Action Bar (Print / Save / Email) ---- */
.action-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn-action {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-800);
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-action:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-1px);
}

.btn-action .icon {
  font-size: 16px;
}

.btn-action.print {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-action.email {
  border-color: var(--gold);
  color: #a07a00;
}

.btn-action.save {
  border-color: var(--green);
  color: var(--green);
}

/* ---- Success Screen ---- */
.success-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 50%, var(--teal-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.success-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 60px 40px;
  text-align: center;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.5s ease;
}

.success-check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #2aa54a);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  animation: popIn 0.4s ease 0.2s both;
}

.success-card h2 {
  color: var(--teal);
  margin: 0 0 12px;
  font-size: 28px;
}

.success-card p {
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.6;
}

.success-info {
  background: #f0f9f9;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 24px;
  text-align: left;
}

.success-info .info-label {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.success-info .info-value {
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 12px;
}

.success-info .info-value:last-child {
  margin-bottom: 0;
}

.btn-another {
  margin-top: 28px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  font-family: inherit;
  transition: var(--transition);
}

.btn-another:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.form-section {
  animation: fadeInUp 0.35s ease;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .span-2 {
    grid-column: span 1;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .header h1 {
    font-size: 18px;
  }

  .form-section {
    padding: 20px;
  }

  .nav-footer {
    padding: 16px 20px 20px;
  }

  .system-grid {
    grid-template-columns: 1fr 1fr;
  }

  .action-bar {
    flex-direction: column;
  }

  .btn-action {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   PRINT VIEW – Content styles (always available for html2pdf)
   ============================================================ */
#print-view {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10pt;
  color: #1a1a1a;
  line-height: 1.4;
}

/* ---- Letterhead ---- */
#print-view .print-letterhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 3px solid #0a4040;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

#print-view .print-company {
  display: flex;
  align-items: center;
  gap: 12px;
}

#print-view .print-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

#print-view .print-company-name {
  font-size: 18pt;
  font-weight: 900;
  color: #0a4040;
  letter-spacing: 2px;
}

#print-view .print-company-sub {
  font-size: 9pt;
  color: #888;
  letter-spacing: 1px;
  margin-top: 2px;
}

#print-view .print-doc-info {
  text-align: right;
}

#print-view .print-doc-title {
  font-size: 13pt;
  font-weight: 800;
  color: #0d5c5c;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

#print-view .print-doc-ref {
  font-size: 9pt;
  font-weight: 600;
  color: #666;
  font-family: 'Courier New', monospace;
}

#print-view .print-doc-date {
  font-size: 9pt;
  color: #888;
}

/* ---- Summary Bar ---- */
#print-view .print-summary-bar {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

#print-view .print-summary-item {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  border-right: 1px solid #ddd;
}

#print-view .print-summary-item:last-child {
  border-right: none;
}

#print-view .print-summary-label {
  display: block;
  font-size: 7pt;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

#print-view .print-summary-value {
  display: block;
  font-size: 11pt;
  font-weight: 800;
  color: #1a1a1a;
}

#print-view .print-priority-urgent {
  color: #c02020;
}

#print-view .print-priority-rush {
  color: #b85c00;
}

/* ---- Two-Column Info Grid ---- */
#print-view .print-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

#print-view .print-info-col {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 14px;
}

#print-view .print-info-header {
  font-size: 9pt;
  font-weight: 800;
  color: #0d5c5c;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #e0e8e8;
  padding-bottom: 4px;
  margin-bottom: 6px;
}

#print-view .print-field {
  display: flex;
  gap: 6px;
  margin-bottom: 3px;
  font-size: 9.5pt;
  line-height: 1.4;
}

#print-view .print-field-label {
  color: #777;
  font-weight: 600;
  min-width: 65px;
  flex-shrink: 0;
}

#print-view .print-field-label::after {
  content: ":";
}

#print-view .print-field-value {
  color: #1a1a1a;
  font-weight: 500;
}

/* ---- Scenario Sections ---- */
#print-view .print-scenario {
  page-break-inside: avoid;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
}

#print-view .print-scenario-header {
  background: #0d5c5c;
  color: white;
  padding: 10px 14px;
}

#print-view .print-scenario-num {
  font-size: 8pt;
  font-weight: 800;
  letter-spacing: 1.5px;
  opacity: 0.7;
  margin-bottom: 1px;
}

#print-view .print-scenario-title {
  font-size: 12pt;
  font-weight: 700;
  margin-bottom: 4px;
}

#print-view .print-scenario-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 8.5pt;
  opacity: 0.85;
}

#print-view .print-type-badge {
  font-size: 7pt;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5px;
}

#print-view .print-type-amc {
  background: #1a7a3a;
  color: white;
}

#print-view .print-type-new {
  background: #7b2d8e;
  color: white;
}

#print-view .print-type-repair {
  background: #b85c00;
  color: white;
}

#print-view .print-type-upgrade {
  background: #0066cc;
  color: white;
}

#print-view .print-sys-name {
  font-weight: 600;
}

#print-view .print-qa-count {
  margin-left: auto;
  font-weight: 600;
}

/* ---- Q&A Table ---- */
#print-view .print-qa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9.5pt;
}

#print-view .print-qa-table thead tr {
  background: #f0f4f4;
}

#print-view .print-qa-table th {
  padding: 6px 10px;
  text-align: left;
  font-size: 8pt;
  font-weight: 700;
  color: #0d5c5c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #ddd;
}

#print-view .print-qa-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

#print-view .print-qa-table tbody tr:nth-child(even) {
  background: #fafcfc;
}

#print-view .print-qa-table .print-qa-num {
  width: 28px;
  text-align: center;
  font-weight: 700;
  color: #aaa;
}

#print-view .print-qa-table .print-qa-question {
  width: 45%;
  font-weight: 500;
  color: #333;
}

#print-view .print-qa-table .print-qa-answer {
  color: #1a1a1a;
  font-weight: 400;
}

#print-view .print-qa-empty td {
  color: #bbb;
}

#print-view .print-qa-empty em {
  font-style: italic;
  color: #bbb;
}

/* ---- Notes ---- */
#print-view .print-notes {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

#print-view .print-notes p {
  font-size: 9.5pt;
  color: #333;
  line-height: 1.5;
  margin: 6px 0 0;
}

/* ---- Signature Lines ---- */
#print-view .print-signature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 36px;
  margin-bottom: 20px;
}

#print-view .print-sig-line {
  border-bottom: 1px solid #333;
  height: 30px;
}

#print-view .print-sig-label {
  font-size: 8pt;
  color: #888;
  margin-top: 4px;
  text-align: center;
}

/* ---- Footer ---- */
#print-view .print-footer {
  margin-top: 24px;
  padding-top: 8px;
  border-top: 3px solid #0a4040;
  font-size: 8pt;
  color: #999;
  display: flex;
  justify-content: space-between;
}

/* ============================================================
   PRINT – Page-level overrides (only during actual printing)
   ============================================================ */
@media print {
  @page {
    size: letter;
    margin: 0.5in 0.6in;
  }

  body {
    background: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .step-indicator,
  .nav-footer,
  .action-bar,
  .btn,
  .btn-action,
  .btn-another,
  .btn-submit,
  .btn-next,
  .btn-back,
  #form-wizard,
  .success-screen,
  .no-print,
  .header {
    display: none !important;
  }

  #print-view {
    display: block !important;
  }

  .main-container {
    max-width: 100%;
    padding: 0;
  }

  .form-card {
    box-shadow: none;
    border: none;
  }
}

/* Hide print view on screen */
@media screen {
  #print-view {
    display: none;
  }
}