:root {
  --skq-bg: #F8F7F4;
  --skq-primary: #A8C3B1;
  --skq-primary-dark: #7DA38D;
  --skq-secondary: #D9E7E1;
  --skq-text: #2E2E2E;
  --skq-text-light: #6B6B6B;
  --skq-white: #FFFFFF;
  --skq-border: #E8E8E4;
  --skq-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --skq-radius: 16px;
  --skq-radius-sm: 10px;
  --skq-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skq-quiz-wrapper *,
.skq-results-container * {
  box-sizing: border-box;
}

.skq-quiz-wrapper {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 20px;
  background: var(--skq-bg);
  min-height: 500px;
  position: relative;
  color: var(--skq-text);
}

.skq-quiz-wrapper h1, .skq-quiz-wrapper h2, .skq-quiz-wrapper h3,
.skq-quiz-wrapper h4, .skq-quiz-wrapper h5 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
}

.skq-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--skq-secondary);
  z-index: 1000;
}

.skq-progress-fill {
  height: 100%;
  background: var(--skq-primary);
  transition: width var(--skq-transition);
  border-radius: 0 2px 2px 0;
}

.skq-progress-text {
  text-align: center;
  font-size: 13px;
  color: var(--skq-text-light);
  margin-bottom: 32px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.skq-quiz-header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 8px;
}

.skq-quiz-header h2 {
  font-size: 24px;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.skq-quiz-header p {
  font-size: 15px;
  color: var(--skq-text-light);
  margin: 0;
  line-height: 1.6;
}

.skq-question-screen {
  animation: skqFadeIn 0.35s ease;
}

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

.skq-question-label {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--skq-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}

.skq-question-text {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 28px;
  color: var(--skq-text);
}

.skq-answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skq-answer-option {
  position: relative;
}

.skq-answer-option input[type="radio"],
.skq-answer-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.skq-answer-label {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: var(--skq-white);
  border: 1.5px solid var(--skq-border);
  border-radius: var(--skq-radius-sm);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: all var(--skq-transition);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 56px;
}

.skq-answer-label:hover {
  border-color: var(--skq-primary);
  background: #FDFCFA;
}

.skq-answer-option input:checked + .skq-answer-label {
  border-color: var(--skq-primary-dark);
  background: var(--skq-secondary);
  color: var(--skq-text);
}

.skq-answer-option input:focus-visible + .skq-answer-label {
  outline: 2px solid var(--skq-primary);
  outline-offset: 2px;
}

.skq-answer-label .skq-check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--skq-border);
  border-radius: 50%;
  margin-right: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--skq-transition);
}

.skq-answer-option input[type="checkbox"] ~ .skq-answer-label .skq-check {
  border-radius: 4px;
}

.skq-answer-option input:checked + .skq-answer-label .skq-check {
  border-color: var(--skq-primary-dark);
  background: var(--skq-primary-dark);
}

.skq-answer-option input:checked + .skq-answer-label .skq-check::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--skq-white);
  border-radius: 50%;
  display: block;
}

.skq-answer-option input[type="checkbox"]:checked + .skq-answer-label .skq-check::after {
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  background: var(--skq-white);
  width: 12px;
  height: 12px;
  border-radius: 0;
}

.skq-questions-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 12px;
}

.skq-btn-back {
  background: none;
  border: 1.5px solid var(--skq-border);
  border-radius: var(--skq-radius-sm);
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--skq-transition);
  color: var(--skq-text-light);
  font-family: 'Inter', sans-serif;
  min-height: 52px;
}

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

.skq-btn-back:disabled {
  opacity: 0;
  pointer-events: none;
}

.skq-btn-next {
  flex: 1;
  background: var(--skq-primary-dark);
  color: var(--skq-white);
  border: none;
  border-radius: var(--skq-radius-sm);
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--skq-transition);
  font-family: 'DM Sans', sans-serif;
  min-height: 52px;
  letter-spacing: 0.01em;
}

.skq-btn-next:hover {
  background: #6E9A7E;
  transform: translateY(-1px);
}

.skq-btn-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.skq-btn-next.skq-btn-submit {
  background: var(--skq-primary-dark);
}

.skq-hidden {
  display: none !important;
}

@media (max-width: 480px) {
  .skq-quiz-wrapper {
    padding: 16px;
  }

  .skq-question-text {
    font-size: 19px;
  }

  .skq-answer-label {
    padding: 14px 16px;
    font-size: 14px;
    min-height: 50px;
  }

  .skq-btn-next, .skq-btn-back {
    padding: 12px 20px;
    font-size: 14px;
    min-height: 48px;
  }

  .skq-quiz-header h2 {
    font-size: 20px;
  }
}

@media (min-width: 768px) {
  .skq-answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .skq-quiz-wrapper {
    padding: 32px 24px;
  }
}
