/* ==========================================================================
   Roda da Vida — teste interativo (design system Mr.Coach / main.css)
   Página isolada, autossuficiente (não depende de Bootstrap/font-awesome).
   ========================================================================== */

.roda-page {
  background: var(--paper-warm);
  color: var(--ink);
}

/* ---------- Barra superior simples (só o logo) ---------- */
.rv-top {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.rv-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.rv-top .logo img {
  height: 34px;
  width: auto;
}

.rv-top-tag {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Container do teste ---------- */
.rv-main {
  max-width: 1120px;
  padding-block: clamp(28px, 5vw, 64px);
}

.rv-step {
  animation: rvFade .6s ease both;
}

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

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

/* ==========================================================================
   ETAPA 1 — Intro
   ========================================================================== */
.rv-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.rv-intro-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--teal-deep);
  margin: 14px 0 0;
}

.rv-intro-title em {
  font-style: italic;
  color: var(--teal);
}

.rv-lead {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  margin: 18px 0 0;
  max-width: 48ch;
}

.rv-tips {
  margin-top: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

.rv-tips h3 {
  margin: 0 0 14px;
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}

.rv-tips ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--teal-deep);
  font-size: 15px;
  line-height: 1.5;
}

.rv-intro-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.rv-intro-note {
  font-size: 13px;
  color: var(--muted);
}

/* Arte do lado direito (mini roda decorativa em SVG) */
.rv-intro-art {
  display: flex;
  justify-content: center;
}

.rv-intro-art svg {
  width: 100%;
  max-width: 360px;
  height: auto;
}

/* ==========================================================================
   ETAPA 2 — Layout dividido (painel + roda)
   ========================================================================== */
.rv-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* Painel da esquerda */
.rv-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 3vw, 38px);
  min-height: 420px;
}

.rv-panel h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  color: var(--teal-deep);
  margin: 0 0 6px;
}

.rv-panel .rv-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 26px;
}

/* Progresso de áreas */
.rv-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.rv-progress-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.rv-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--teal);
  transition: width .5s cubic-bezier(.16, 1, .3, 1);
}

.rv-progress-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

/* Lista de perguntas com slider */
.rv-qlist {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.rv-q {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rv-q-text {
  font-size: 15px;
  line-height: 1.45;
  color: var(--teal-deep);
}

.rv-q-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rv-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--teal) 0%, var(--teal) 50%, var(--line) 50%, var(--line) 100%);
  outline: none;
  cursor: pointer;
}

.rv-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--teal);
  box-shadow: 0 2px 6px rgba(2, 0, 3, .18);
  transition: transform .15s;
}

.rv-slider::-webkit-slider-thumb:active {
  transform: scale(1.18);
}

.rv-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--teal);
  box-shadow: 0 2px 6px rgba(2, 0, 3, .18);
}

.rv-q-value {
  flex-shrink: 0;
  width: 44px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.rv-scale-hint {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin-top: -8px;
}

/* Rodapé de ações do painel */
.rv-panel-foot {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

/* ---------- Resultado por área (4 barras) ---------- */
.rv-cat {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 26px;
}

.rv-cat-item .rv-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
}

.rv-cat-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.rv-cat-pct {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.rv-cat-track {
  height: 12px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.rv-cat-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 1s cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Área de alavanca (select) ---------- */
.rv-callout {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-md, 12px);
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--teal-deep);
  margin: 0 0 22px;
}

.rv-callout strong {
  color: var(--teal);
}

.rv-select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--teal-deep);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

.rv-select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 96, 87, .12);
}

/* ---------- Plano de ação (3 cards) ---------- */
.rv-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}

.rv-action {
  border: 1px solid var(--line);
  border-radius: var(--r-md, 14px);
  padding: 16px;
  background: var(--paper-warm);
}

.rv-action-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.rv-action-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rv-action-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 10px;
}

/* ---------- Campos genéricos ---------- */
.rv-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rv-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.rv-input,
.rv-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--teal-deep);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 13px;
  transition: border-color .2s, box-shadow .2s;
}

.rv-input::placeholder,
.rv-textarea::placeholder {
  color: var(--muted-soft);
}

.rv-input:focus,
.rv-textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 96, 87, .12);
}

.rv-textarea {
  margin-top: 10px;
  resize: vertical;
  min-height: 58px;
  line-height: 1.45;
}

.rv-err {
  color: #c0392b;
  font-size: 12.5px;
  min-height: 1em;
  margin: 4px 0 0;
}

/* ==========================================================================
   RODA SVG (lado direito)
   ========================================================================== */
.rv-wheel-wrap {
  position: sticky;
  top: 92px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(18px, 2.5vw, 30px);
  text-align: center;
}

.rv-wheel-title {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--teal-deep);
  margin: 0 0 4px;
}

.rv-wheel-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}

#rodaVida {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

#rodaVida svg {
  width: 100%;
  height: auto;
  display: block;
}

.rv-ring {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.rv-ring-outer {
  stroke: var(--line-strong);
  stroke-width: 1.5;
}

.rv-spoke {
  stroke: var(--line);
  stroke-width: 1;
}

.rv-wedge {
  transform-box: view-box;
  transform-origin: 0 0;
  /* escala em torno do centro (200,200) de forma determinística */
  transform: translate(200px, 200px) scale(0) translate(-200px, -200px);
  transition: transform .9s cubic-bezier(.16, 1, .3, 1);
}

.rv-wedge path {
  stroke: rgba(255, 255, 255, .7);
  stroke-width: 1;
}

.rv-wlabel {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  fill: var(--teal-deep);
}

.rv-wlabel.is-active {
  fill: var(--teal);
}

.rv-center-dot {
  fill: var(--paper);
  stroke: var(--line-strong);
  stroke-width: 1.5;
}

/* ==========================================================================
   ETAPA 3 — Formulário / sucesso / oferta
   ========================================================================== */
.rv-final {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.rv-final-copy h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--teal-deep);
  margin: 0 0 16px;
  line-height: 1.08;
}

.rv-final-copy p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 14px;
  max-width: 50ch;
}

.rv-form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rv-copy-field .rv-label {
  color: var(--teal);
}

.rv-alert {
  border-radius: var(--r-md, 14px);
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.55;
}

.rv-alert-success {
  background: rgba(0, 96, 87, .08);
  border: 1px solid rgba(0, 96, 87, .25);
  color: var(--teal-deep);
}

.rv-offer {
  margin-top: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px 26px;
}

.rv-offer h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 24px;
  color: var(--teal-deep);
  margin: 0 0 10px;
}

.rv-offer p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 900px) {
  .rv-intro,
  .rv-layout,
  .rv-final {
    grid-template-columns: 1fr;
  }

  .rv-intro-art {
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }

  .rv-wheel-wrap {
    position: static;
    order: -1;
    margin-bottom: 22px;
  }

  #rodaVida {
    max-width: 340px;
  }
}

@media (max-width: 480px) {
  .rv-action-grid {
    grid-template-columns: 1fr;
  }

  .rv-panel-foot {
    flex-direction: column-reverse;
  }

  .rv-panel-foot .btn {
    width: 100%;
  }
}
