/* Base reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

body {
  background: #f6f7f9;
  display: flex;
  justify-content: center;
  padding: 30px 20px;
}

/* Main quiz card */
.quiz-wrapper {
  width: 100%;
  max-width: 520px;
}

.quiz-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.08);
}

/* Progress bar */
.quiz-progress-wrapper {
  margin-bottom: 24px;
}

.quiz-progress-track {
  width: 100%;
  height: 8px;
  background: #ececec;
  border-radius: 100px;
}

.quiz-progress-fill {
  height: 8px;
  background: linear-gradient(135deg, #ff6b7a, #ff8f70);
  border-radius: 100px;
  transition: width 0.4s ease;
}

.quiz-progress-label {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
}

/* Titles */
.quiz-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #111;
}

.quiz-subtitle {
  font-size: 15px;
  color: #555;
  margin-bottom: 18px;
}

/* Options */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  width: 100%;
  padding: 14px 18px;
  background: #fafafa;
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-option:hover {
  background: #f0f0f0;
}

.quiz-option.selected {
  background: #ffe7eb;
  border-color: #ff758f;
}

/* Info step */
.quiz-text {
  font-size: 15px;
  margin-bottom: 12px;
  color: #444;
}

.quiz-bullets {
  margin-top: 10px;
  padding-left: 20px;
}

.quiz-bullets li {
  font-size: 14px;
  margin-bottom: 8px;
}

/* Footer buttons */
.quiz-footer {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.button-primary,
.button-secondary {
  flex: 1;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s ease;
  border: none;
}

.button-primary {
  background: linear-gradient(135deg, #ff6b7a, #ff8f70);
  color: white;
}

.button-secondary {
  background: #f0f0f0;
}

.button-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Analysis screen */
.analysis-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.analysis-percent {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}


.analysis-item .analysis-label {
  font-size: 14px;
  color: #444;
  margin-bottom: 6px;
}

.analysis-bar {
  width: 100%;
  height: 8px;
  background: #ececec;
  border-radius: 20px;
  overflow: hidden;
}

.analysis-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(135deg, #ff758f, #ff9a74);
  transition: width 0.8s ease;
}

.analysis-item.active .analysis-bar-fill {
  width: 100%;
}

.analysis-testimonial {
  margin-top: 25px;
  padding: 16px;
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.analysis-testimonial .stars {
  color: gold;
  margin-bottom: 5px;
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 999;
}

.popup-overlay.hidden {
  display: none;
}

.popup-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  animation: popupScale 0.25s ease;
}

@keyframes popupScale {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Quiz option buttons */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.quiz-option {
  padding: 14px 18px;
  background: #ffffff;
  border: 2px solid #f1f1f1;
  border-radius: 16px;
  font-size: 17px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Hover = hafif yükselme */
.quiz-option:hover {
  transform: translateY(-2px);
  border-color: #ff7777;
  box-shadow: 0 6px 18px rgba(255,120,120,0.25);
  background-color: inherit !important;
  color: inherit !important;
  box-shadow: inherit !important;
}

/* Selected state */
.quiz-option.selected {
  border-color: #ff5e76;
  background: #ffe9ee;
  box-shadow: 0 6px 20px rgba(255,90,120,0.35);
  transform: translateY(-2px);
}

.image-option {
  width: 100%;
  border: 2px solid #e6e6e6;
  border-radius: 14px;
  padding: 10px;
  background: white;
  cursor: pointer;
  transition: 0.25s ease;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.image-option img {
  width: 85px;
  height: 85px;
  object-fit: contain;
  margin-bottom: 8px;
}

.image-option:hover {
  border-color: #ff8696;
  box-shadow: 0 4px 16px rgba(255, 100, 130, 0.28);
}

.image-option.selected {
  border-color: #ff5f7e;
  background: #ffe9ee;
  box-shadow: 0 6px 20px rgba(255, 90, 120, 0.35);
}

.image-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  grid-template-columns: repeat(2, 1fr);
}

/* ICON + CHIP OPTIONS */
.chip-icon-option {
  padding: 12px 16px;
  border-radius: 999px;
  background: #f7f7f7;
  border: 1.5px solid #e6e6e6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  margin: 4px;
  transition: 0.25s ease;
}

.chip-icon-option:hover {
  background: #efefef;
}

.chip-icon-option.selected {
  background: #ffe7ee;
  border-color: #ff7a92;
  box-shadow: 0 3px 12px rgba(255, 122, 146, 0.35);
}

.chip-icon-option .icon {
  font-size: 20px;
  line-height: 1;
}

/* SCALE / LEVEL SELECTOR */
.scale-container {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 25px;
}

.scale-item {
  font-size: 30px;
  cursor: pointer;
  transition: 0.25s ease;
  opacity: 0.4;
}

.scale-item.active {
  opacity: 1;
  transform: scale(1.15);
}

.scale-item:hover {
  opacity: 0.9;
  transform: scale(1.2);
}

/* POPUP OVERLAY (for analysis + extra questions) */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 999;
}

.popup-overlay.hidden {
  display: none;
}

.popup-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  animation: popupScaleIn 0.2s ease;
}

@keyframes popupScaleIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}