/**
 * Reusable plan quiz floor — Figma Challenge 13824:58595 / 13824:13026
 */

.plan-quiz {
  --pq-orange: #f98715;
  --pq-text: #ffffff;
  --pq-muted: #999;
  --pq-dim: #ccc;
  --pq-border: rgba(255, 255, 255, 0.08);
  --pq-chip: rgba(255, 255, 255, 0.04);
  --pq-chip-border: rgba(255, 255, 255, 0.06);
  padding: 80px 0;
  color: var(--pq-text);
  font-family: Inter, system-ui, sans-serif;
  scroll-margin-top: calc(6.100625rem + 16px);
}

.plan-quiz .container {
  max-width: 1128px;
}

.pq-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  text-align: center;
}

.pq-hero h2 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff;
}

.pq-hero h2 .pq-hero__accent {
  color: var(--pq-orange);
}

.pq-hero p {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  color: var(--pq-muted);
}

.pq-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 40px;
  overflow: hidden;
  border: 1px solid var(--pq-border);
  border-radius: 24px;
  background-image:
    linear-gradient(225.25deg, rgba(15, 9, 0, 0.4) 78.115%, rgba(15, 9, 0, 0.4) 85.44%, rgba(79, 47, 17, 0.4) 100%),
    linear-gradient(225.25deg, rgba(79, 47, 17, 0.4) 0%, rgba(15, 9, 0, 0.4) 34.958%),
    linear-gradient(90deg, #0e0e0e 0%, #0e0e0e 100%);
}

.pq-card__main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.pq-card__glow {
  position: absolute;
  left: 50%;
  top: -116px;
  width: 1128px;
  height: 230px;
  transform: translateX(-50%);
  pointer-events: none;
}

.pq-card__glow img {
  position: absolute;
  inset: -121.74% -24.82%;
  display: block;
  width: auto;
  max-width: none;
  height: auto;
}

.pq-q {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.pq-q__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: -0.18px;
  color: #fff;
}

.pq-q__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
  -webkit-appearance: none;
  appearance: none;
}

.pq-q__toggle .pq-q__title {
  flex: 1 1 auto;
  min-width: 0;
}

.pq-q__picked {
  display: none;
  flex: 0 1 auto;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--pq-orange);
}

.pq-q__chevron {
  display: none;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.pq-q--fold.is-open .pq-q__chevron {
  transform: rotate(180deg);
}

.pq-choices-wrap {
  width: 100%;
}

.pq-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.pq-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--pq-chip-border);
  border-radius: 70px;
  background: var(--pq-chip);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pq-pill:hover {
  border-color: rgba(249, 135, 21, 0.45);
}

.pq-pill.is-active {
  border-color: transparent;
  background: var(--pq-orange);
  box-shadow:
    0 0 30px #f98715,
    inset 0 2px 6px rgba(254, 254, 254, 0.32);
}

.pq-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.pq-choice {
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 24px 20px;
  border: 1px solid var(--pq-chip-border);
  border-radius: 20px;
  background: var(--pq-chip);
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.16px;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.pq-choice:hover {
  border-color: rgba(249, 135, 21, 0.45);
}

.pq-choice.is-active {
  border: 1.5px solid var(--pq-orange);
  background: rgba(249, 135, 21, 0.22);
}

.pq-q--style .pq-choice {
  min-height: 88px;
  padding: 24px;
}

.pq-result {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  grid-template-areas:
    "head cta"
    "tags cta";
  column-gap: 24px;
  row-gap: 16px;
  align-items: start;
  width: 100%;
  padding: 20px;
  border-radius: 24px;
  background-image: linear-gradient(249.22deg, rgba(255, 255, 255, 0.04) 1.4379%, rgba(255, 255, 255, 0.008) 53.601%);
}

.pq-result[hidden] {
  display: none;
}

.pq-result__head {
  grid-area: head;
  min-width: 0;
}

.pq-tags {
  grid-area: tags;
}

.pq-result__cta {
  grid-area: cta;
  align-self: center;
}

.pq-result__kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: -0.12px;
  text-transform: uppercase;
  color: var(--pq-muted);
}

.pq-result__title {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.36px;
  color: #fff;
}

.pq-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 544px;
}

.pq-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 70px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  line-height: 14px;
  letter-spacing: -0.12px;
  color: var(--pq-dim);
  white-space: nowrap;
}

.pq-tag strong {
  margin-left: 0.25em;
  font-weight: 600;
  letter-spacing: 0.24px;
  color: #fff;
}

.pq-result__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 245px;
}

.pq-result__price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pq-result__starting {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}

.pq-result__starting[hidden],
.pq-result__fee[hidden] {
  display: none;
}

.pq-result__price {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 50px;
  letter-spacing: -0.36px;
  color: var(--pq-orange);
  text-align: center;
}

.pq-result__fee {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: -0.12px;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}

.pq-result__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 245px;
  height: 60px;
  padding: 16px 24px;
  border: 0;
  border-radius: 8px;
  background: var(--pq-orange);
  box-shadow:
    0 0 30px #f98715,
    inset 0 2px 6px rgba(254, 254, 254, 0.32);
  color: #fefefe;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.2px;
  text-decoration: none;
  cursor: pointer;
}

.pq-result__btn:hover,
.pq-result__btn:focus-visible {
  filter: brightness(1.06);
  color: #fefefe;
  text-decoration: none;
}

.pq-result__compare {
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
  letter-spacing: -0.12px;
  color: var(--pq-orange);
  text-decoration: none;
}

.pq-result__compare:hover,
.pq-result__compare:focus-visible {
  color: var(--pq-orange);
  text-decoration: underline;
}

.pq-sprint {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: -0.12px;
}

.pq-sprint__prompt {
  color: var(--pq-muted);
}

.pq-sprint__link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--pq-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pq-sprint__link:hover,
.pq-sprint__link:focus-visible {
  color: var(--pq-orange);
}

.pq-sprint__link img {
  display: block;
  width: 14px;
  height: 14px;
}

@media (max-width: 991.98px) {
  .plan-quiz {
    padding: 80px 0 56px;
  }

  .pq-hero {
    margin-bottom: 28px;
  }

  .pq-card {
    gap: 8px;
    padding: 24px;
  }

  .pq-card__main {
    gap: 20px;
  }

  .pq-card__glow {
    width: 100%;
    top: -80px;
  }

  .pq-q--fold {
    scroll-margin-top: calc(6.100625rem + 12px);
  }

  .pq-q__toggle {
    min-height: 44px;
    cursor: pointer;
  }

  .pq-q--fold.is-collapsed .pq-q__picked:not(:empty) {
    display: inline;
  }

  .pq-q__chevron {
    display: block;
  }

  .pq-q--fold.is-collapsed {
    gap: 0;
  }

  .pq-q--fold .pq-choices-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }

  .pq-q--fold.is-open .pq-choices-wrap {
    max-height: 28rem;
  }

  .pq-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .pq-choice,
  .pq-q--style .pq-choice {
    min-height: 64px;
    padding: 16px;
  }

  .pq-result {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "cta"
      "tags";
  }

  .pq-tags {
    max-width: none;
  }

  .pq-result__cta,
  .pq-result__btn {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .plan-quiz {
    scroll-margin-top: 96px;
  }

  .pq-q--fold {
    scroll-margin-top: 84px;
  }
}

@media (max-width: 575.98px) {
  .pq-hero p {
    font-size: 15px;
  }

  .pq-pills {
    gap: 10px;
  }

  .pq-pill {
    padding: 10px 14px;
  }

  .pq-choices {
    grid-template-columns: 1fr;
  }

  .pq-q__title {
    font-size: 16px;
    line-height: 22px;
  }

  .pq-result__title,
  .pq-result__price {
    font-size: 28px;
    line-height: 40px;
  }

  .pq-result__btn {
    font-size: 16px;
  }
}
