:root {
  --red: #C8181A;
  --red-dark: #8B1012;
  --red-deep: #5C0A0B;
  --orange: #E8722A;
  --blue: #1A8BC8;
  --blue-light: #4AB0E8;
  --green: #2A9E4A;
  --yellow: #C8B818;
  --yellow-light: #E0D030;
  --off-white: #F5F0EB;
  --warm-gray: #E8E2DA;
  --text-dark: #1A1410;
  --text-mid: #4A3C32;
  --text-light: #7A6A5A;
}

.app-shell,
.app-panel {
  color: rgba(0, 0, 0, 0.95);
}

.mode-switch {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 14px;
}

.mode-btn,
.btn {
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

.mode-btn {
  background: #ffffff;
  color: #3a2e25;
}

.mode-btn.active {
  background: #1a1410;
  color: #fff;
  border-color: #1a1410;
}

.stepper {
  margin-top: 14px;
  font-size: 14px;
  color: #6f6358;
}

.question-title {
  font-size: 24px;
  margin: 0 0 8px;
  line-height: 1.1;
}

.question-wheel-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(34px, 5.2vw, 52px);
  line-height: 1.05;
  margin: 0 0 8px;
  letter-spacing: 0.2px;
}

.question-subtitle {
  margin: 0 0 18px;
  color: #6f6358;
  font-size: 14px;
}

.question-help {
  margin: 6px 0 16px;
  color: #8a8076;
  font-size: 13px;
  line-height: 1.4;
}

.options {
  display: grid;
  gap: 12px;
}

.option {
  border: 2px solid #ddd6cf;
  border-radius: 10px;
  padding: 18px 20px;
  cursor: pointer;
  background: #fff;
  text-align: left;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.12s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.option:hover {
  border-color: #cfc6bc;
  transform: translateY(-1px);
}

.option-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #c6beb4;
  margin-top: 3px;
  flex-shrink: 0;
  background: #fff;
}

.option-label {
  display: block;
  flex: 1;
}

.option-info-wrap {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}

.option-info-trigger {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #c6beb4;
  color: #6f6358;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  cursor: help;
  user-select: none;
}

.option-tooltip {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  max-width: 280px;
  background: #1f2937;
  color: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  display: none;
  z-index: 5;
}

.option-tooltip.open {
  display: block;
}

.option.selected {
  border-color: #1a8bc8;
  background: rgba(26, 139, 200, 0.1);
  box-shadow: inset 0 0 0 1px rgba(26, 139, 200, 0.18);
}

.option.selected .option-dot {
  border-color: #1a8bc8;
  background: radial-gradient(circle at center, #1a8bc8 0 5px, #ffffff 6px);
}

.actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-secondary {
  background: #ece7e1;
  color: #3a2e25;
}

.btn-primary {
  background: #c8181a;
  color: #fff;
  border-color: #c8181a;
}

.btn-next {
  border: 2px solid #c8181a;
  border-radius: 999px;
  background: #c8181a;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  padding: 14px 26px;
  min-height: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-next:hover:not(:disabled) {
  background: #fff;
  color: #c8181a;
  border-color: #c8181a;
}

.btn-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.score-card {
  border-radius: 12px;
  border: 1px solid #ece7e1;
  padding: 12px;
}

.score-card strong {
  font-size: 20px;
}

.level {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  background: #f2efeb;
}

.diag-box {
  border-left: 4px solid #1a8bc8;
  background: #f4f9fc;
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #3a2f27;
  line-height: 1.45;
  font-size: 14px;
}

.cta-box {
  margin-top: 18px;
  border-radius: 12px;
  padding: 16px;
  background: #1a1410;
  color: #fff;
}

.cta-box a {
  color: #fff;
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  font-weight: 700;
}

.app-shell {
  padding-bottom: 28px;
}

.app-stage {
  margin-top: 20px;
}

.app-panel {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.app-start-btn {
  width: auto !important;
  min-width: 220px;
  min-height: 58px;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-confirm-btn {
  margin-top: 8px;
  width: auto !important;
  min-width: 220px;
  min-height: 48px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-confirm-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.app-start-btn:disabled {
  background: rgba(200, 24, 26, 0.4) !important;
  border-color: rgba(200, 24, 26, 0.4) !important;
  color: rgba(255, 255, 255, 0.88) !important;
  cursor: not-allowed;
  box-shadow: none;
}

.lead-capture {
  margin: 10px 0 14px;
}

.lead-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.lead-row-single {
  grid-template-columns: 1fr;
}

.lead-input {
  width: 100%;
  min-height: 56px;
  border-radius: 6px;
}

.lead-input.err {
  border-color: #c8181a;
  background: rgba(200, 24, 26, 0.04);
}

.lead-hint {
  margin: 2px 0 0;
  font-size: 13px;
  color: #6f6358;
}

.mini-title {
  margin: 18px 0 6px;
  font-size: 16px;
}

.risk-box {
  border-left-color: #c8181a;
  background: rgba(200, 24, 26, 0.08);
}

.pdf-gate {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #ddd6cf;
  border-radius: 10px;
  background: #faf8f5;
}

.pdf-gate p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #5e534a;
}

@media (max-width: 780px) {
  .result-grid {
    grid-template-columns: 1fr;
  }

  .question-title {
    font-size: 22px;
  }

  .option {
    padding: 15px 16px;
    font-size: 14px;
  }

  .option-tooltip {
    right: auto;
    left: 0;
    min-width: 200px;
    max-width: min(86vw, 300px);
  }

  .lead-row {
    grid-template-columns: 1fr;
  }
}
