/* Gift Finder Quiz
   ================================================ */

.gift-finder-quiz {
  background-color: #ede8df;
  padding: 0;
}

.gfq-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 20px 72px;
  transition: max-width 0.3s ease;
}

.gfq-container.is-result-visible {
  max-width: 1080px;
}

/* ── Quiz Panel ──────────────────────────────────── */

.gfq-quiz-panel {
  background-color: #ffffff;
}

.gfq-step {
  display: none;
}

.gfq-step.is-active {
  display: block;
}

/* Progress Bar */

.gfq-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 32px;
  border-bottom: 1px solid #e8e3dc;
}

.gfq-progress__label {
  font-family: "Now-Regular", sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-color, #09344a);
  white-space: nowrap;
}

.gfq-progress__track {
  flex: 1;
  height: 2px;
  background-color: #ddd8cf;
  position: relative;
}

.gfq-progress__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background-color: var(--primary-color, #09344a);
  transition: width 0.4s ease;
}

.gfq-progress__counter {
  font-family: "Now-Regular", sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--primary-color, #09344a);
  white-space: nowrap;
}

/* Question */

.gfq-question {
  padding: 40px 48px 32px;
}

.gfq-question__subtitle {
  display: block;
  font-family: "Now-Regular", sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b8922a;
  margin-bottom: 14px;
}

.gfq-question__title {
  font-family: "FreightBig Pro", Georgia, serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  color: var(--primary-color, #09344a);
  margin: 0 0 36px;
  line-height: 1.2;
}

/* Options */

.gfq-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gfq-option {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 18px 24px;
  border: 1px solid #d5cfc6;
  background-color: #ffffff;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.gfq-option:hover {
  border-color: var(--primary-color, #09344a);
}

.gfq-option.is-selected {
  background-color: var(--primary-color, #09344a);
  border-color: var(--primary-color, #09344a);
}

.gfq-option__letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #c8c2b8;
  font-family: "Now-Regular", sans-serif;
  font-size: 12px;
  color: var(--primary-color, #09344a);
  transition:
    border-color 0.2s,
    color 0.2s;
}

.gfq-option.is-selected .gfq-option__letter {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.gfq-option__text {
  font-family: "Now-Regular", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: var(--primary-color, #09344a);
  transition: color 0.2s;
}

.gfq-option.is-selected .gfq-option__text {
  color: #ffffff;
}

/* Navigation */

.gfq-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px 32px;
  border-top: 1px solid #e8e3dc;
}

.gfq-nav__back {
  display: inline-flex;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  font-family: "Now-Regular", sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color, #09344a);
  cursor: pointer;
  transition: opacity 0.2s;
  line-height: 1;
}

.gfq-nav__back:hover {
  opacity: 0.55;
}

.gfq-nav__back.is-invisible {
  visibility: hidden;
}

.gfq-nav__continue {
  display: inline-flex;
  gap: 10px;
  background-color: var(--primary-color, #09344a);
  color: #ffffff;
  border: none;
  padding: 16px 32px;
  font-family: "Now-Regular", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
  line-height: 1;
}

.gfq-nav__continue:hover {
  opacity: 0.85;
}

.gfq-nav__continue:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ── Result Panel ────────────────────────────────── */

.gfq-result-header {
  text-align: center;
  padding: 56px 20px 40px;
}

.gfq-result-header__subtitle {
  display: block;
  font-family: "Now-Regular", sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b8922a;
  margin-bottom: 16px;
}

.gfq-result-header__title {
  font-family: "FreightBig Pro", Georgia, serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 400;
  color: var(--primary-color, #09344a);
  margin: 0 0 14px;
  line-height: 1.2;
}

.gfq-result-header__description {
  font-family: "Now-Regular", sans-serif;
  font-size: 16px;
  color: var(--primary-color, #09344a);
  margin: 0 0 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Tally pill */

.gfq-tally {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid #d5cfc6;
  border-radius: 100px;
  padding: 10px 24px;
  font-family: "Now-Regular", sans-serif;
  font-size: 12px;
  color: var(--primary-color, #09344a);
}

.gfq-tally__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gfq-tally__item strong {
  font-weight: 500;
  color: var(--primary-color, #09344a);
}

.gfq-tally__item.is-winner strong {
  color: #b8922a;
}

.gfq-tally__arrow {
  color: #b8922a;
}

.gfq-tally__arrow strong {
  color: #b8922a;
}

/* Result Boxes */

.gfq-result-boxes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.gfq-result-box {
  display: grid;
  grid-template-columns: 45% 1fr;
  overflow: hidden;
}

.gfq-result-box__image {
  background-color: var(--primary-color, #09344a);
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 24px;
}
.gfq-result-box__image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background:
    radial-gradient(
      ellipse at 30% 40%,
      rgba(184, 148, 90, 0.32),
      transparent 55%
    ),
    radial-gradient(ellipse at 70% 60%, rgba(20, 52, 71, 0.6), transparent 60%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.03) 0 1px,
      transparent 1px 16px
    );
}

.gfq-result-box__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gfq-result-box__img-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: "Now-Regular", sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.gfq-result-box__content {
  background-color: #ffffff;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gfq-result-box__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.gfq-result-box__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: #b8922a;
  font-family: "Now-Regular", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.gfq-result-box__meta-label {
  font-family: "Now-Regular", sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b8922a;
}

.gfq-result-box__title {
  font-family: "FreightBig Pro", Georgia, serif;
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 400;
  color: var(--primary-color, #09344a);
  margin: 0 0 16px;
  line-height: 1.2;
}

.gfq-result-box__description {
  font-family: "Now-Regular", sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: var(--primary-color, #09344a);
  opacity: 0.8;
  margin: 0 0 28px;
}

.gfq-result-box__cta {
  display: inline-flex;
  gap: 10px;
  align-self: flex-start;
  background-color: var(--primary-color, #09344a);
  color: #ffffff;
  text-decoration: none;
  font-family: "Now-Regular", sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 24px;
  transition: opacity 0.2s;
  line-height: 1;
}

.gfq-result-box__cta:hover {
  color: #ffffff;
  opacity: 0.85;
}

/* Result Footer */

.gfq-result-footer {
  text-align: center;
  padding: 0 0 48px;
}

.gfq-result-footer__divider {
  border: none;
  border-top: 1px solid #ddd8cf;
  margin: 0 0 36px;
}

.gfq-retake__text {
  font-family: "Now-Regular", sans-serif;
  font-size: 16px;
  color: var(--primary-color, #09344a);
  margin: 0 0 18px;
}

.gfq-retake__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--primary-color, #09344a);
  padding: 14px 28px;
  font-family: "Now-Regular", sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color, #09344a);
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.gfq-retake__btn:hover {
  background-color: var(--primary-color, #09344a);
  color: #ffffff;
}

/* ── Responsive ──────────────────────────────────── */

@media only screen and (max-width: 767px) {
  .gfq-container {
    padding: 32px 16px 56px;
  }

  .gfq-progress {
    padding: 16px 20px;
  }

  .gfq-question {
    padding: 28px 24px 24px;
  }

  .gfq-nav {
    padding: 20px 24px 28px;
  }

  .gfq-result-box {
    grid-template-columns: 1fr;
  }

  .gfq-result-box__image {
    min-height: 260px;
  }

  .gfq-result-box__content {
    padding: 32px 24px;
  }
}
