/* Face Plan™ — Typeform gate (produto-d) */
.fp-quiz-root {
  --fq-bg: #0c0a08;
  --fq-card: #16120e;
  --fq-gold: #c9a96e;
  --fq-gold-soft: rgba(201, 169, 110, 0.18);
  --fq-text: #f5f0e8;
  --fq-muted: #a89a88;
  --fq-line: rgba(201, 169, 110, 0.22);
  --fq-danger: #e07060;
  --fq-ok: #6fbf8a;
  --fq-font-display: 'Cormorant Garamond', Georgia, serif;
  --fq-font-body: 'DM Sans', system-ui, sans-serif;
}

.fp-quiz-teaser {
  margin-top: 0.5rem;
}

.fp-quiz-teaser-card {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201, 169, 110, 0.14), transparent 55%),
    linear-gradient(165deg, #1a1510 0%, #0f0d0b 100%);
  border: 1px solid var(--fq-line, rgba(201, 169, 110, 0.22));
}

.fp-quiz-teaser-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  border-radius: 12px;
  overflow: hidden;
  min-height: 140px;
}

.fp-quiz-teaser-visual figure {
  margin: 0;
  position: relative;
  min-height: 140px;
}

.fp-quiz-teaser-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 140px;
}

.fp-quiz-teaser-visual span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font: 600 10px/1 var(--fq-font-body, 'DM Sans', sans-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 4px 8px;
  border-radius: 999px;
}

.fp-quiz-teaser-copy h3 {
  font-family: var(--fq-font-display, 'Cormorant Garamond', serif);
  font-weight: 500;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  color: #f5f0e8;
  margin: 0 0 0.4rem;
  line-height: 1.2;
}

.fp-quiz-teaser-copy p {
  margin: 0 0 1rem;
  color: #a89a88;
  font-size: 0.95rem;
  line-height: 1.45;
}

.fp-quiz-teaser .btn {
  width: 100%;
}

.fp-quiz-teaser-note {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: #8a7d6c;
}

/* Overlay */
.fp-quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: none;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(201, 169, 110, 0.16), transparent 45%),
    var(--fq-bg, #0c0a08);
  color: var(--fq-text, #f5f0e8);
  font-family: var(--fq-font-body, 'DM Sans', sans-serif);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.fp-quiz-overlay.is-open {
  display: block;
}

body.fp-quiz-open {
  overflow: hidden;
}

.fp-quiz-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(12, 10, 8, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fq-line);
}

.fp-quiz-brand {
  font-family: var(--fq-font-display);
  font-size: 1.05rem;
  color: var(--fq-gold);
  white-space: nowrap;
}

.fp-quiz-progress {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.fp-quiz-progress > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #8a6030, var(--fq-gold));
  transition: width 0.35s ease;
}

.fp-quiz-close {
  border: 0;
  background: transparent;
  color: var(--fq-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
}

.fp-quiz-close:hover {
  color: #fff;
}

.fp-quiz-stage {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1.1rem 3.5rem;
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fp-quiz-step {
  display: none;
  animation: fpQuizIn 0.38s ease;
}

.fp-quiz-step.is-active {
  display: block;
}

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

.fp-quiz-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fq-gold);
  margin: 0 0 0.65rem;
}

.fp-quiz-title {
  font-family: var(--fq-font-display);
  font-weight: 500;
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  line-height: 1.15;
  margin: 0 0 0.55rem;
  color: #fff;
}

.fp-quiz-title .fp-quiz-name {
  color: var(--fq-gold);
  font-style: italic;
}

.fp-quiz-sub {
  margin: 0 0 1.35rem;
  color: var(--fq-muted);
  font-size: 1.02rem;
  line-height: 1.5;
}

.fp-quiz-visual-card {
  margin: 0 0 1.35rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--fq-line);
  background: var(--fq-card);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.fp-quiz-visual-card--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.fp-quiz-visual-card figure {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  background: #111;
}

.fp-quiz-visual-card--wide figure {
  aspect-ratio: 16 / 10;
}

.fp-quiz-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fp-quiz-visual-card figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 5px 9px;
  border-radius: 999px;
}

.fp-quiz-visual-caption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.92rem;
  color: var(--fq-muted);
  line-height: 1.4;
}

.fp-quiz-visual-caption strong {
  color: var(--fq-gold);
  font-weight: 600;
}

.fp-quiz-field {
  margin: 0 0 1rem;
}

.fp-quiz-field input[type="text"],
.fp-quiz-field input[type="tel"],
.fp-quiz-field input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--fq-line);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  font-size: 1.05rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fp-quiz-field input:focus {
  border-color: var(--fq-gold);
  box-shadow: 0 0 0 3px var(--fq-gold-soft);
}

.fp-quiz-field input::placeholder {
  color: #6f6456;
}

.fp-quiz-options {
  display: grid;
  gap: 0.65rem;
}

.fp-quiz-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--fq-line);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  text-align: left;
  color: inherit;
  font: inherit;
  width: 100%;
}

.fp-quiz-opt:hover {
  border-color: rgba(201, 169, 110, 0.55);
  background: var(--fq-gold-soft);
}

.fp-quiz-opt.is-selected {
  border-color: var(--fq-gold);
  background: var(--fq-gold-soft);
  transform: translateY(-1px);
}

.fp-quiz-opt-mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(201, 169, 110, 0.45);
  margin-top: 1px;
  position: relative;
}

.fp-quiz-opt.is-selected .fp-quiz-opt-mark {
  border-color: var(--fq-gold);
  background: var(--fq-gold);
}

.fp-quiz-opt.is-selected .fp-quiz-opt-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #1a120a;
}

.fp-quiz-opt-body {
  flex: 1;
}

.fp-quiz-opt-body strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.15rem;
}

.fp-quiz-opt-body span {
  display: block;
  font-size: 0.88rem;
  color: var(--fq-muted);
  line-height: 1.35;
}

.fp-quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
  align-items: center;
}

.fp-quiz-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font: 700 0.95rem/1.1 var(--fq-font-body);
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, background 0.15s;
}

.fp-quiz-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.fp-quiz-btn--primary {
  background: linear-gradient(135deg, #e8d4a8, var(--fq-gold) 45%, #8a6030);
  color: #1a120a;
}

.fp-quiz-btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
}

.fp-quiz-btn--ghost {
  background: transparent;
  color: var(--fq-muted);
  border: 1px solid var(--fq-line);
}

.fp-quiz-hint {
  width: 100%;
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #8a7d6c;
}

.fp-quiz-err {
  margin: 0.5rem 0 0;
  color: var(--fq-danger);
  font-size: 0.9rem;
  min-height: 1.2em;
}

.fp-quiz-exit {
  text-align: center;
  padding: 1rem 0.5rem;
}

.fp-quiz-exit h3 {
  font-family: var(--fq-font-display);
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
}

.fp-quiz-loading {
  text-align: center;
  padding: 2rem 0.5rem;
}

.fp-quiz-loading .fp-quiz-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 3px solid rgba(201, 169, 110, 0.2);
  border-top-color: var(--fq-gold);
  animation: fpQuizSpin 0.8s linear infinite;
}

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

@media (min-width: 720px) {
  .fp-quiz-teaser-card {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    padding: 1.5rem;
  }

  .fp-quiz-stage {
    padding-top: 2rem;
    padding-bottom: 4rem;
  }
}
