/* DayZero2DayOne - Executive AI Readiness Survey Styles */

.survey-page-container {
  max-width: 760px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

/* Header & Progress */
.survey-progress-wrapper {
  margin-bottom: 28px;
}

.survey-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.survey-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--accent-cyan-subtle);
  border: 1px solid var(--border-cyan-subtle);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.survey-invite-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: #92400e;
}

.survey-progress-track {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.survey-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--cyan-gradient);
  border-radius: var(--radius-full);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.survey-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

/* Steps & Animation */
.survey-step {
  display: none;
  animation: surveyFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.survey-step.active {
  display: block;
}

@keyframes surveyFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Executive Card Shell */
.survey-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: var(--card-shadow);
  transition: all 0.25s ease;
  position: relative;
}

.step-pretitle {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.step-question-title {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.step-instruction {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 26px;
}

/* Options / Choice Cards */
.options-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.choice-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.choice-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan-light);
  transform: translateY(-1px);
}

.choice-btn:active {
  transform: translateY(0);
}

.choice-btn.selected {
  background: var(--accent-cyan-subtle);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 1px var(--accent-cyan), 0 4px 14px rgba(2, 132, 199, 0.12);
  color: var(--accent-cyan);
  font-weight: 600;
}

.choice-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.choice-btn.checkbox .choice-indicator {
  border-radius: 5px;
}

.choice-btn.selected .choice-indicator {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan);
}

.choice-btn.selected .choice-indicator::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* Tri-Choice Yes / No / Not sure */
.tri-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 12px;
  margin-bottom: 28px;
}

.tri-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tri-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan-light);
  transform: translateY(-2px);
}

.tri-btn.selected-yes {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

.tri-btn.selected-no {
  background: #fff1f2;
  border-color: #f43f5e;
  color: #9f1239;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.15);
}

.tri-btn.selected-unsure {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
}

/* 0-10 Scale */
.scale-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: 16px 0 10px;
}

.scale-num-btn {
  flex: 1;
  aspect-ratio: 1;
  max-height: 48px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.scale-num-btn:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.scale-num-btn.selected {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.scale-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-weight: 500;
}

/* Form Controls */
.survey-field {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
  margin-bottom: 20px;
}

.survey-field:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.survey-textarea {
  min-height: 110px;
  resize: vertical;
}

/* Action Nav Footer */
.step-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.btn-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease;
}

.btn-nav-back:hover {
  color: var(--text-primary);
}

/* Welcome Screen Specifics */
.welcome-grid-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0 28px;
}

.stat-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
}

.stat-chip-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1.2;
}

.stat-chip-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.invite-verifier-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 24px;
}

.invite-verifier-box label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.invite-form-flex {
  display: flex;
  gap: 10px;
}

.invite-form-flex input {
  margin-bottom: 0;
}

.research-ethics-callout {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
  padding: 12px 14px;
  background: #f8fafc;
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 28px;
}

/* Results Screen & Quadrant Visualization */
.result-header-block {
  text-align: center;
  margin-bottom: 30px;
}

.quadrant-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.quadrant-pill.ready {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.quadrant-pill.nobody-owns {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.quadrant-pill.without-proof {
  background: #f5f3ff;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}

.quadrant-pill.uncharted {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.result-main-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.result-main-verdict {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

/* 2x2 Quadrant Matrix Layout */
.matrix-container-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
}

.matrix-2x2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.matrix-cell {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 18px 16px;
  min-height: 110px;
  position: relative;
  transition: all 0.3s ease;
}

.matrix-cell .cell-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.matrix-cell .cell-desc {
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.matrix-cell.active-cell {
  background: #f0f9ff;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.15);
}

.matrix-cell.active-cell::after {
  content: "📍 YOU ARE HERE";
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--accent-cyan);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Score Pills Row */
.scores-trio-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.score-chip-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.score-chip-val {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.score-chip-lbl {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* The One Fix Banner */
.fix-banner-card {
  background: linear-gradient(135deg, #0284c7 0%, #00b4d8 100%);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  color: #ffffff;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.25);
}

.fix-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e0f2fe;
  margin-bottom: 8px;
}

.fix-banner-action {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  color: #ffffff;
}

/* Flags / Alerts */
.flags-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.diagnostic-flag {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-secondary);
  box-shadow: var(--card-shadow);
}

.diagnostic-flag .flag-symbol {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Industry Context Box */
.benchmarks-executive-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 28px;
}

.benchmarks-executive-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.benchmark-row-item {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.benchmark-row-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Results CTA Stack */
.results-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

/* Modal Overlay */
.report-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.report-modal-backdrop.open {
  display: flex;
}

.report-modal-dialog {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 34px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.2);
  position: relative;
}

.report-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.report-modal-close:hover {
  color: var(--text-primary);
}

/* Toast */
.survey-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 11000;
  pointer-events: none;
}

.survey-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 640px) {
  .survey-page-container {
    padding: 0 14px;
    margin-top: 20px;
  }
  .survey-card {
    padding: 24px 18px;
  }
  .step-question-title {
    font-size: 1.25rem;
  }
  .welcome-grid-stats, .scores-trio-row {
    grid-template-columns: 1fr;
  }
  .matrix-2x2-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .tri-grid {
    grid-template-columns: 1fr;
  }
}
