.survey-header {
  padding: 6px 12px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#surveyMain {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px;
  min-height: 60vh;
}

.step {
  animation: fadeIn 0.4s ease-out;
}

.step h1 {
  color: var(--highlight-text);
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.step h2 {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.step .subtext {
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.3;
  background: white;
  padding: 5px;
  border-radius: 10px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  margin-bottom: 4px;
}

.form-group.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  cursor: pointer;
}

.form-group.checkbox-row label input[type="checkbox"] {
  flex-shrink: 0;
  margin: 0;
}

.option-btn {
  display: inline-block;
  padding: 6px 6px;
  margin: 6px 6px 6px 0;
  border: 2px solid rgb(194 213 211 / 42%);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}

.option-btn:hover {
  border-color: var(--highlight-text);
  color: var(--highlight-text);
  background: var(--btn-bg);
}

.option-btn.selected {
  background: var(--highlight-bg);
  color: var(--highlight-text);
  border-color: var(--highlight-text);
}

.option-btn.multi-selected {
  background: var(--highlight-bg);
  color: var(--highlight-text);
  border-color: var(--highlight-text);
}

.step-actions {
  margin-top: 32px;
}

.step-actions .btn-primary {
  padding: 12px 32px;
}

.error-step {
  color: #ff9b9b;
}

.collapsible {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.collapsible-header {
  padding-top: 14px;
  padding-bottom: 5px;
  padding-left: 16px;
  padding-right: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  font-weight: 500;
}

.collapsible-header.done {
  background: rgb(255 255 255);
  border-left: 4px solid #4ade80;
}

.collapsible-header.incomplete {
  background: rgb(255 255 255);
  border-left: 4px solid #f87171;
}

.collapsible-body {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.collapsible-body .option-btn {
  display: block;
  width: 100%;
  text-align: left;
  margin: 6px 0;
}

.progress-indicator {
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.progress-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--highlight-bg);
  transition: width 0.3s ease;
}

.task-columns {
  display: grid;
  gap: 24px;
}

.task-columns.report-cards-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .task-columns.report-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .task-columns.report-cards-grid {
    grid-template-columns: 1fr;
  }
}

.task-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.task-section h3 {
  color: var(--highlight-text);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.report-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.report-card h3 {
  color: var(--highlight-text);
  margin-bottom: 8px;
}

.report-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.report-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--highlight-bg);
  color: var(--highlight-text);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.report-badge.secondary {
  background: rgba(0, 128, 128, 0.12);
}

.report-card .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.report-metric {
  background: rgba(0, 128, 128, 0.06);
  border: 1px solid rgba(0, 128, 128, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.report-metric-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.report-rationale {
  margin: 12px 0 0;
  padding-left: 18px;
}

.report-rationale li {
  margin-bottom: 6px;
}

.report-card .suggested-automation {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* PDF export: high-contrast styles for readable output */
.pdf-export {
  background: #ffffff !important;
  color: #0a0a0a !important;
  margin: 0 !important;
  padding: 12px 20px 20px !important;
  width: 100% !important;
  max-width: 210mm !important;
  box-sizing: border-box !important;
}

.pdf-export h1 {
  color: #006666 !important;
  font-size: 1.4rem !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

.pdf-export .subtext {
  color: #222222 !important;
  margin: 4px 0 12px !important;
}

.pdf-export .report-section-title {
  color: #006666 !important;
  margin: 20px 0 10px !important;
  font-size: 1.1rem !important;
}

.pdf-export .report-card {
  background: #e8f4f4 !important;
  border: 1px solid #008080 !important;
  color: #000000 !important;
  opacity: 1 !important;
}

.pdf-export .report-card h3 {
  color: #000000 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

.pdf-export .report-card .meta {
  color: #000000 !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}

.pdf-export .report-card p,
.pdf-export .report-card .suggested-automation,
.pdf-export .report-card * {
  color: #000000 !important;
  opacity: 1 !important;
}

.pdf-export .report-card strong {
  color: #000000 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  max-width: 400px;
  width: 90%;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.other-input {
  margin-top: 8px;
  display: none;
}

.other-input.visible {
  display: block;
}

.task-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.task-title-row h2 {
  margin: 0;
  flex: 1;
  min-width: 180px;
}

.skip-buttons {
  display: flex;
  gap: 8px;
}

.skip-buttons .btn-skip {
  font-size: 0.9rem;
  padding: 6px 12px;
}

#stepQuestions .questions-scroll {
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 8px;
}

.report-slide {
  animation: fadeIn 0.5s ease-out;
}

.report-slide h1 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.report-section-title {
  font-size: 1.2rem;
  color: var(--highlight-text);
  margin: 32px 0 16px;
}

.report-actions {
  margin: 32px 0;
}

.learn-more-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.learn-more-section .TurnKeyCRM input,
.learn-more-section .TurnKeyCRM label {
  color: var(--text-light);
}

.learn-more-section .TurnKeyCRM input[type="submit"] {
  background: var(--highlight-bg);
  color: var(--highlight-text);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
}

#stepReportLead {
  max-width: 800px;
  margin: 0 auto 48px;
}

#stepReportLead .lead-form {
  max-width: none;
}

#stepReportLead .lead-form fieldset {
  background: var(--card-bg);
}

#stepReportLead .lead-form-note {
  color: var(--text-muted);
}
