:root {
  --pq-bg: #F4FBFF;
  --pq-card-bg: #DFF0FF;
  --pq-icon-bg: #C4E1FF;
  --pq-primary: #171940;
  --pq-text: #000000;
  --pq-icon-color: #5A4A42;
  --pq-blue: #3A99FB;
  --pq-blue-dark: #2E7FD4;
  --pq-orange: #FF8957;
  --pq-gray: #939393;
  --pq-dark: #434343;
  --pq-radius: 16px;
  --pq-radius-sm: 100px;
  --pq-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pq-transition: 0.3s ease;
}

.pq-quiz {
  font-family: var(--pq-font);
  color: var(--pq-primary);
  line-height: 1.5;
  background: var(--pq-bg);
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.pq-quiz::before,
.pq-quiz::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(180deg, #E8F4FF 0%, #F4FBFF 100%);
  pointer-events: none;
  z-index: 0;
}

.pq-quiz::before {
  width: 400px;
  height: 480px;
  right: -120px;
  top: 60px;
}

.pq-quiz::after {
  width: 320px;
  height: 320px;
  left: -120px;
  bottom: 100px;
  transform: rotate(56deg);
  opacity: 0.4;
}

.pq-container {
  position: relative;
  z-index: 1;
  max-width: 750px;
  margin: 0 auto;
  padding: 32px 24px 32px;
}

.pq-step {
  animation: pqFadeIn 0.4s ease;
}

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

/* ===== Step Zero ===== */
.pq-step-zero { padding: 0; }

.pq-step-zero-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.pq-step-zero-line {
  width: 2px;
  height: 28px;
  background: #C4E1FF;
  border-radius: 40px;
  transform: rotate(90deg);
}

.pq-step-zero-label {
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  color: var(--pq-primary);
}

.pq-step-zero-title {
  font-weight: 700;
  font-size: 34px;
  line-height: 42px;
  color: var(--pq-primary);
  margin: 0 0 24px;
  max-width: 580px;
}

.pq-step-zero-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pq-btn-zero {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  width: 100%;
  max-width: 750px;
  background: var(--pq-card-bg);
  border: none;
  border-radius: var(--pq-radius);
  cursor: pointer;
  transition: all var(--pq-transition);
  text-align: left;
  font-family: var(--pq-font);
}

.pq-btn-zero:hover {
  background: #C4E1FF;
  transform: translateX(4px);
}

.pq-btn-zero:active {
  background: #B0D4F5;
}

.pq-btn-zero-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: var(--pq-icon-bg);
  border-radius: var(--pq-radius-sm);
  flex-shrink: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  color: var(--pq-icon-color);
}

.pq-btn-zero-text {
  font-weight: 500;
  font-size: 17px;
  line-height: 21px;
  color: var(--pq-text);
}

/* ===== Progress ===== */
.pq-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.pq-progress-bar {
  flex: 1;
  height: 5px;
  position: relative;
}

.pq-progress-track {
  position: absolute;
  inset: 0;
  border: 1px solid #D5D5D5;
  border-radius: 20px;
}

.pq-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #DFF0FF 0%, var(--pq-blue) 100%);
  border-radius: 20px;
  transition: width 0.5s ease;
  position: relative;
}

.pq-progress-text {
  font-weight: 600;
  font-size: 17px;
  line-height: 21px;
  color: var(--pq-blue);
  white-space: nowrap;
  min-width: 40px;
  text-align: right;
}

/* ===== Question header ===== */
.pq-questions-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.pq-questions-line {
  width: 2px;
  height: 28px;
  background: #C4E1FF;
  border-radius: 40px;
  transform: rotate(90deg);
}

.pq-questions-block-label {
  font-weight: 600;
  font-size: 14px;
  line-height: 17px;
  color: var(--pq-primary);
}

/* ===== Questions ===== */
.pq-step-questions { padding: 0; }

.pq-question { margin-bottom: 20px; }

.pq-question-text {
  font-weight: 700;
  font-size: 34px;
  line-height: 42px;
  color: var(--pq-primary);
  margin: 0 0 10px;
  max-width: 580px;
}

.pq-question-subtitle {
  font-weight: 400;
  font-size: 17px;
  line-height: 21px;
  color: var(--pq-text);
  margin: 0 0 24px;
  max-width: 750px;
}

.pq-answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.pq-answer {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: var(--pq-card-bg);
  border-radius: var(--pq-radius);
  cursor: pointer;
  transition: all var(--pq-transition);
  width: 100%;
  border: none;
  text-align: left;
  font-family: var(--pq-font);
}

.pq-answer:hover {
  background: #D4E8FF;
  transform: translateX(2px);
}

.pq-answer input[type="radio"] { display: none; }

.pq-answer-marker {
  width: 32px;
  height: 32px;
  background: var(--pq-icon-bg);
  border-radius: var(--pq-radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.pq-answer-marker::before {
  content: '';
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  border: 1px solid var(--pq-gray);
  border-radius: 50%;
  display: block;
}

.pq-answer input[type="radio"]:checked ~ .pq-answer-marker::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--pq-blue);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pq-answer-texts {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pq-answer-text {
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  color: var(--pq-text);
}

.pq-answer-subtext {
  font-weight: 300;
  font-size: 14px;
  line-height: 17px;
  color: var(--pq-text);
}

/* ===== Navigation ===== */
.pq-question-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.pq-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--pq-font);
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  border: none;
  border-radius: 60px;
  cursor: pointer;
  transition: all var(--pq-transition);
  text-align: center;
}

.pq-btn-back {
  background: #FFFFFF;
  border: 1px solid var(--pq-blue);
  color: var(--pq-dark);
  padding: 14px 30px;
}

.pq-btn-back:hover { background: #F0F7FF; }

.pq-btn-back .pq-btn-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  background: var(--pq-blue);
  border-radius: 50%;
}

.pq-btn-back .pq-btn-icon svg {
  width: 8px;
  height: 11px;
}

.pq-btn-next {
  background: var(--pq-blue);
  color: #FFFFFF;
  padding: 14px 36px;
}

.pq-btn-next:hover {
  background: var(--pq-blue-dark);
  transform: translateY(-1px);
}

.pq-btn-next .pq-btn-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  background: #F4FBFF;
  border-radius: 50%;
}

.pq-btn-next .pq-btn-icon svg {
  width: 8px;
  height: 11px;
}

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

/* ===== Result ===== */
.pq-step-result { padding: 0; }

.pq-result-badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 28px;
  background: var(--pq-orange);
  border-radius: 60px;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  color: #333333;
  margin-bottom: 18px;
}

.pq-result-title {
  font-weight: 700;
  font-size: 34px;
  line-height: 42px;
  color: var(--pq-primary);
  margin: 0 0 10px;
  max-width: 750px;
}

.pq-result-desc {
  font-weight: 400;
  font-size: 17px;
  line-height: 21px;
  color: var(--pq-text);
  margin: 0 0 28px;
  max-width: 750px;
}

.pq-result-cards {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
}

.pq-result-card {
  flex: 1;
  background: var(--pq-card-bg);
  border-radius: 20px;
  padding: 24px 24px 22px;
}

.pq-result-card-label {
  font-weight: 400;
  font-size: 18px;
  line-height: 22px;
  color: var(--pq-text);
  margin-bottom: 8px;
}

.pq-result-card-value {
  font-weight: 700;
  font-size: 48px;
  line-height: 58px;
  color: var(--pq-primary);
}

.pq-result-card-value .pq-card-divider {
  font-weight: 700;
  font-size: 24px;
  color: var(--pq-primary);
  opacity: 0.5;
  vertical-align: middle;
}

/* ===== Recommendations ===== */
.pq-recommendations {
  background: var(--pq-card-bg);
  border-radius: 20px;
  padding: 28px 28px;
  margin-bottom: 28px;
}

.pq-recommendations-title {
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  color: var(--pq-text);
  margin: 0 0 18px;
}

.pq-rec-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.pq-rec-item:last-child { margin-bottom: 0; }

.pq-rec-number {
  width: 32px;
  height: 32px;
  background: var(--pq-blue);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  color: #FFFFFF;
  flex-shrink: 0;
}

.pq-rec-text {
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: var(--pq-text);
}

/* ===== Form ===== */
.pq-result-form-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 26px;
  color: var(--pq-text);
  text-align: center;
  margin: 0 0 18px;
}

.pq-result-form-inline {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.pq-field-wrap {
  flex: 1;
  background: var(--pq-card-bg);
  border-radius: var(--pq-radius);
  padding: 13px 18px;
  display: flex;
  align-items: center;
}

.pq-field {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--pq-font);
  font-weight: 300;
  font-size: 15px;
  line-height: 19px;
  color: var(--pq-text);
}

.pq-field::placeholder {
  color: var(--pq-text);
  opacity: 0.6;
}

.pq-field.error {
  color: #D32F2F;
}

.pq-btn-submit {
  display: block;
  margin: 0 auto;
  padding: 14px 40px;
  background: var(--pq-blue);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 60px;
  min-width: 360px;
  text-align: center;
}

.pq-btn-submit:hover {
  background: var(--pq-blue-dark);
}

.pq-result-disclaimer {
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  line-height: 16px;
  color: var(--pq-text);
  margin-top: 28px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Thanks ===== */
.pq-step-thanks {
  text-align: center;
  padding: 60px 20px;
}

.pq-step-thanks h3 {
  font-size: 28px;
  color: var(--pq-primary);
  margin: 0 0 12px;
}

.pq-step-thanks p {
  font-size: 16px;
  color: var(--pq-primary);
  opacity: 0.7;
}

/* ===== Loading ===== */
.pq-loading {
  opacity: 0.6;
  pointer-events: none;
}

.pq-loading::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid #E0ECF7;
  border-top-color: var(--pq-blue);
  border-radius: 50%;
  animation: pqSpin 0.6s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes pqSpin {
  to { transform: rotate(360deg); }
}

/* ===== Mobile (max 430px) ===== */
@media (max-width: 430px) {
  .pq-container { padding: 40px 44px 60px; }

  .pq-step-zero-header {
    gap: 12px;
    margin-bottom: 24px;
  }

  .pq-step-zero-line { height: 20px; }

  .pq-step-zero-label {
    font-size: 14px;
    line-height: 17px;
  }

  .pq-step-zero-title {
    font-size: 26px;
    line-height: 32px;
    margin-bottom: 24px;
    max-width: 342px;
  }

  .pq-step-zero-options { gap: 15px; }

  .pq-btn-zero {
    padding: 15px 15px;
    gap: 14px;
    border-radius: 18px;
    max-width: 342px;
    height: 65px;
  }

  .pq-btn-zero-icon {
    width: 35px;
    height: 35px;
    font-size: 16px;
    border-radius: 10px;
  }

  .pq-btn-zero-text {
    font-size: 16px;
    line-height: 20px;
  }

  /* Progress */
  .pq-progress {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 12px;
    flex-direction: column;
  }

  .pq-progress-bar {
    width: 100%;
    height: 4px;
    margin-top: 6px;
    order: 2;
  }

  .pq-progress-text {
    font-size: 16px;
    line-height: 20px;
    min-width: auto;
    order: 1;
    text-align: left;
  }

  .pq-progress-track {
    border-radius: 20px;
  }

  .pq-progress-fill {
    border-radius: 20px;
  }

  /* Question header */
  .pq-questions-header {
    margin-bottom: 20px;
    margin-top: 16px;
  }
  .pq-questions-line { height: 20px; }
  .pq-questions-block-label { font-size: 14px; line-height: 17px; }

  /* Question */
  .pq-question-text {
    font-size: 26px;
    line-height: 32px;
    margin-bottom: 10px;
    max-width: 342px;
  }

  .pq-question-subtitle {
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 20px;
    max-width: 342px;
  }

  .pq-answers {
    gap: 10px;
    margin-bottom: 30px;
  }

  .pq-answer {
    padding: 13px 15px;
    gap: 15px;
    border-radius: 18px;
    height: auto;
    min-height: 65px;
  }

  .pq-answer-marker {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .pq-answer-marker::before {
    width: 16px;
    height: 16px;
  }

  .pq-answer input[type="radio"]:checked ~ .pq-answer-marker::after {
    width: 12px;
    height: 12px;
  }

  .pq-answer-text { font-size: 14px; line-height: 17px; }
  .pq-answer-subtext { font-size: 14px; line-height: 17px; }

  /* Navigation — stacked vertically on mobile */
  .pq-question-nav {
    flex-direction: column-reverse;
    gap: 10px;
    align-items: stretch;
  }

  .pq-btn {
    font-size: 18px;
    padding: 11px 24px;
    line-height: 22px;
    gap: 8px;
    justify-content: center;
    height: 45px;
    width: 100%;
  }

  .pq-btn-next {
    padding: 11px 24px;
  }

  .pq-btn-back {
    padding: 11px 24px;
    justify-content: center;
  }

  .pq-btn-back .pq-btn-icon,
  .pq-btn-next .pq-btn-icon {
    width: 28px;
    height: 28px;
  }

  .pq-btn-back .pq-btn-icon svg,
  .pq-btn-next .pq-btn-icon svg {
    width: 10px;
    height: 14px;
  }

  /* Result */
  .pq-result-badge {
    font-size: 20px;
    line-height: 24px;
    padding: 8px 24px;
    border-radius: 60px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 342px;
    text-align: center;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .pq-result-title {
    font-size: 26px;
    line-height: 32px;
    margin-bottom: 12px;
  }

  .pq-result-desc {
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 20px;
  }

  .pq-result-cards {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
  }

  .pq-result-card {
    padding: 20px;
    border-radius: 20px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .pq-result-card-value {
    font-size: 50px;
    line-height: 61px;
  }

  .pq-result-card-label {
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 0;
  }

  .pq-recommendations {
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 30px;
  }

  .pq-recommendations-title {
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 20px;
  }

  .pq-rec-item {
    gap: 15px;
    margin-bottom: 16px;
    align-items: flex-start;
  }

  .pq-rec-item:last-child { margin-bottom: 0; }

  .pq-rec-number {
    width: 28px;
    height: 28px;
    font-size: 16px;
    line-height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .pq-rec-text {
    font-size: 14px;
    line-height: 17px;
  }

  .pq-result-form-title {
    font-size: 0;
    margin-bottom: 0;
    display: none;
  }

  .pq-result-form-inline {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
  }

  .pq-field-wrap {
    padding: 20px 30px;
    border-radius: 20px;
    height: 66px;
    box-sizing: border-box;
  }

  .pq-field {
    font-size: 18px;
    line-height: 22px;
  }

  .pq-btn-submit {
    font-size: 16px;
    line-height: 20px;
    padding: 14px 40px;
    min-width: auto;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
  }

  .pq-result-disclaimer {
    font-size: 16px;
    line-height: 20px;
    margin-top: 36px;
    max-width: 340px;
  }
}
