/* ═══ WRAP ═══════════════════════════════════════════════════ */
#mpf-wrap {
  --accent:      #8b5cf6;
  --accent-glow: rgba(139,92,246,.35);
  --glass-bg:    rgba(15,15,25,.72);
  --glass-border:rgba(255,255,255,.10);
  --input-bg:    rgba(255,255,255,.05);
  --input-border:rgba(255,255,255,.13);
  --text:        #f0f0f8;
  --muted:       #9090aa;
  --radius:      14px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--text);
  position: relative;
}

/* fundo escuro "efeito gelo" */
#mpf-wrap::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(80,40,160,.45) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(30,30,80,.55) 0%, transparent 70%),
    #0a0a14;
  z-index: -1;
  pointer-events: none;
}

/* ═══ CARD GLASS ═══════════════════════════════════════════ */
.mpf-card {
  border-radius: var(--radius);
  padding: 2rem 2rem 1.75rem;
}

/* ═══ HEADER ══════════════════════════════════════════════ */
.mpf-header {
  text-align: center;
  margin-bottom: 2rem;
}
.mpf-header h2 {
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0 0 .3rem;
  background: linear-gradient(135deg,#c4b5fd,#818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mpf-header p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ═══ PROGRESS BAR ════════════════════════════════════════ */
.mpf-progress-wrap {
  margin-bottom: 2rem;
}
.mpf-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.mpf-progress-labels span {
  font-size: .72rem;
  color: var(--muted);
  transition: color .3s;
}
.mpf-progress-labels span.active { color: var(--accent); font-weight: 600; }
.mpf-progress-track {
  height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 99px;
  overflow: hidden;
}
.mpf-progress-fill {
  height: 100%;
  background: linear-gradient(90deg,#8b5cf6,#6366f1);
  border-radius: 99px;
  transition: width .4s cubic-bezier(.4,0,.2,1);
}

/* ═══ STEPS ═══════════════════════════════════════════════ */
.mpf-step { display: none; animation: mpfFadeIn .35s ease; }
.mpf-step.active { display: block; }

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

.mpf-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.2rem;
}
.mpf-step-num {
  min-width: 42px; height: 30px;
  border-radius: 99px;
  background: linear-gradient(135deg,#8b5cf6,#6366f1);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; flex-shrink: 0;
  padding: 0 10px;
}
.mpf-step-title h4 { margin:0; font-size:1rem; font-weight:600; }

/* ═══ FIELDS ══════════════════════════════════════════════ */
.mpf-field { margin-bottom: 12px; }
.mpf-label {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: .02em;
}

.mpf-row-2 { display:flex; gap:12px; }
.mpf-row-2 .mpf-field { flex:1; min-width:0; }

#mpf-wrap input[type="text"],
#mpf-wrap input[type="email"],
#mpf-wrap input[type="tel"],
#mpf-wrap textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  color: var(--text);
  font-size: .92rem;
  font-family: inherit;
  padding: 13px 16px;
  outline: none;
  transition: border-color .2s, background .2s;
  resize: vertical;
}
#mpf-wrap input::placeholder,
#mpf-wrap textarea::placeholder { color: var(--muted); }
#mpf-wrap input:focus,
#mpf-wrap textarea:focus {
  border-color: var(--accent);
  background: rgba(139,92,246,.07);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ═══ RADIO ══════════════════════════════════════════════ */
.mpf-radio-group { display:flex; gap:10px; flex-wrap:wrap; }

.mpf-radio {
  flex:1; min-width:140px;
  display:flex; flex-direction:column; gap:4px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
}
.mpf-radio:hover { border-color: rgba(139,92,246,.5); background: rgba(139,92,246,.06); }
.mpf-radio:has(input:checked) {
  border-color: var(--accent);
  background: rgba(139,92,246,.13);
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.mpf-radio input[type="radio"] {
  position:absolute; opacity:0; width:0; height:0;
}
.mpf-radio-icon { font-size:1.3rem; line-height:1; }
.mpf-radio-label { font-size:.88rem; font-weight:600; }
.mpf-radio-desc  { font-size:.74rem; color:var(--muted); }

/* inline radios (emoção, voz, prazo) */
.mpf-radio-inline { flex-direction:row; align-items:center; flex:unset; min-width:unset; gap:8px; padding:10px 14px; }
.mpf-radio-inline .mpf-radio-label { font-size:.88rem; }

/* campo outro */
.mpf-outro-wrap { display:flex; align-items:center; gap:8px; flex:1; min-width:160px; }
.mpf-outro-wrap input {
  flex:1; background:transparent; border:none; border-bottom:1px solid var(--input-border);
  border-radius:0; padding:4px 6px; font-size:.85rem;
}
.mpf-outro-wrap input:focus { box-shadow:none; background:transparent; border-color:var(--accent); }

/* ═══ NAVEGAÇÃO ══════════════════════════════════════════ */
.mpf-nav {
  display:flex; justify-content:space-between; align-items:center;
  margin-top:1.75rem; gap:10px;
}
.mpf-nav-info { font-size:.8rem; color:var(--muted); }

.mpf-btn-back,
.mpf-btn-next,
#mpf-btn-submit {
  border:none; border-radius:10px; font-family:inherit;
  font-size:.9rem; font-weight:700; cursor:pointer;
  padding:12px 24px; transition:opacity .2s, transform .1s;
}
.mpf-btn-back {
  background:rgba(255,255,255,.07) !important;
  border:1px solid var(--glass-border) !important;
  color:var(--muted) !important;
}
.mpf-btn-back:hover { background:rgba(255,255,255,.12) !important; color:var(--text) !important; }

.mpf-btn-next,
#mpf-btn-submit {
  background:linear-gradient(135deg,#8b5cf6,#6366f1) !important;
  color:#fff !important;
  box-shadow:0 4px 18px rgba(99,102,241,.4) !important;
}
.mpf-btn-next:hover,
#mpf-btn-submit:hover { opacity:.88 !important; }
.mpf-btn-next:active,
#mpf-btn-submit:active { transform:scale(.97) !important; }
#mpf-btn-submit:disabled { opacity:.55 !important; cursor:not-allowed !important; }

/* ═══ ERRO ══════════════════════════════════════════════ */
.mpf-error {
  margin-top:12px; padding:11px 15px; border-radius:10px;
  font-size:.85rem; color:#fca5a5;
  background:rgba(239,68,68,.12); border:1px solid rgba(239,68,68,.3);
}

/* ═══ SUCESSO ════════════════════════════════════════════ */
#mpf-success {
  display:none; text-align:center; padding:3.5rem 1rem;
  animation:mpfFadeIn .5s ease;
}
.mpf-success-icon { font-size:4rem; margin-bottom:1rem; }
#mpf-success h3 {
  font-size:1.5rem; font-weight:700; margin:0 0 .5rem;
  background:linear-gradient(135deg,#c4b5fd,#818cf8);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
}
#mpf-success p { color:var(--muted); margin:0; }

/* ═══ RESPONSIVE ═════════════════════════════════════════ */
@media(max-width:560px){
  .mpf-row-2 { flex-direction:column; }
  .mpf-radio { min-width:unset; }
  .mpf-card  { padding:1.5rem 1.25rem; }
}
