/* ALFU 運動品牌行銷護城河健檢 - SPA styles
   Brand colors: navy bg + amber accent
*/

:root {
  --navy: #0F172A;
  --navy-soft: #1E293B;
  --blue: #3B82F6;
  --blue-dark: #2563EB;
  --amber: #F39800;
  --amber-deep: #E58800;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --text: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --success: #10B981;
  --danger: #EF4444;
}

/* ===== Quiz container ===== */
.quiz-tipbox {
  background: #FEF3C7;
  border-left: 4px solid var(--amber);
  padding: 18px 22px;
  border-radius: 8px;
  margin-bottom: 28px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}
.quiz-tipbox-title {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 16px;
}

.quiz-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.quiz-section {
  margin-bottom: 32px;
}
.quiz-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-cat-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--amber);
  color: white;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 900;
}

.quiz-field {
  margin-bottom: 18px;
}
.quiz-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.quiz-required {
  color: var(--danger);
}
.quiz-input {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text);
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.quiz-input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(243, 152, 0, 0.15);
}
.quiz-textarea {
  resize: vertical;
  min-height: 80px;
}

/* ===== Rating sliders ===== */
.quiz-rating {
  margin-bottom: 24px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border-radius: 10px;
}
.quiz-rating-q {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
  font-weight: 500;
}
.quiz-slider-wrap {
  display: grid;
  grid-template-columns: 1fr 48px;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: center;
}
.quiz-slider {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  --fill-pct: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--amber) var(--fill-pct), #CBD5E1 var(--fill-pct));
  cursor: pointer;
  outline: none;
}
.quiz-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
}
.quiz-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  border: none;
}
.quiz-slider-value {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 28px;
  font-weight: 900;
  color: var(--amber);
  text-align: center;
}
.quiz-slider-scale {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== Submit row ===== */
.quiz-submit-row {
  margin-top: 40px;
  text-align: center;
}
.quiz-submit-btn {
  display: inline-block;
  background: var(--amber);
  color: white;
  border: none;
  padding: 18px 48px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s, transform 0.15s;
  box-shadow: 0 10px 30px -8px rgba(243, 152, 0, 0.4);
}
.quiz-submit-btn:hover:not(:disabled) {
  background: var(--amber-deep);
  transform: translateY(-1px);
}
.quiz-submit-btn:disabled {
  background: #94A3B8;
  cursor: wait;
  box-shadow: none;
}
.quiz-submit-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.quiz-error {
  background: #FEE2E2;
  border-left: 4px solid var(--danger);
  padding: 16px 20px;
  border-radius: 8px;
  color: #991B1B;
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .quiz-section-title { font-size: 18px; }
  .quiz-rating { padding: 14px 16px; }
  .quiz-rating-q { font-size: 14px; }
  .quiz-submit-btn { padding: 16px 32px; font-size: 16px; width: 100%; max-width: 360px; }
}
