/* =============================================================
   iHelp — Funil · Tema dark/laranja (overlay no Nova Home)
   Re-skin do funnel.css original (que era light/navy) para a
   identidade visual do Nova Home: Geist, #FF6A2C, dark.
   Carregar DEPOIS de funnel.css.
   ============================================================= */

#funnel,
#funnel * {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* OVERLAY — mais escuro, blur maior */
#funnel.funnel-modal {
  background: rgba(7, 9, 15, 0.78);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}

/* MODAL CARD — dark glass */
#funnel .funnel-modal-content {
  background: linear-gradient(180deg, #0F1422 0%, #0B0E18 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  box-shadow: 0 40px 100px -10px rgba(0,0,0,0.7),
              0 0 0 1px rgba(255,255,255,0.04) inset;
  color: #F5F6F7;
  padding: 40px 36px 28px;
  max-width: 580px;
}

#funnel .funnel-modal-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: #A0A6B4;
  top: 16px;
  right: 16px;
  width: 36px; height: 36px;
  font-size: 22px;
}
#funnel .funnel-modal-close:hover {
  background: rgba(255,255,255,0.12);
  color: #F5F6F7;
  border-color: rgba(255,255,255,0.20);
}

/* PROGRESS — laranja */
#funnel .progress {
  background: rgba(255,255,255,0.06);
  height: 4px;
  border-radius: 999px;
  margin-bottom: 6px;
}
#funnel .progress-bar {
  background: #FF6A2C;
  box-shadow: 0 0 12px rgba(255,106,44,0.6);
  border-radius: 999px;
  transition: width .4s cubic-bezier(.16,1,.3,1);
}
#funnel .progress-label {
  display: block;
  font-family: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #A0A6B4;
  margin: 10px 0 28px;
}

/* TITLES */
#funnel h2:not(.visually-hidden),
#funnel .step h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #F5F6F7;
  margin: 0 0 10px;
  text-wrap: balance;
}
#funnel .step-subtitle,
#funnel p {
  font-size: 14px;
  color: #A0A6B4;
  line-height: 1.55;
  margin-bottom: 24px;
}

/* LABELS */
#funnel label,
#funnel legend.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #F5F6F7;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
#funnel .field-optional {
  color: #6B7280;
  font-weight: 400;
}
#funnel .required-mark {
  color: #FF6A2C;
  margin-left: 2px;
}
#funnel .field-hint {
  display: block;
  font-size: 12px;
  color: #6B7280;
  margin: -4px 0 10px;
}

/* INPUTS / SELECT / TEXTAREA */
#funnel input[type="text"],
#funnel input[type="email"],
#funnel input[type="tel"],
#funnel select,
#funnel textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: #F5F6F7;
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 15px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
#funnel input::placeholder,
#funnel textarea::placeholder {
  color: #6B7280;
}
#funnel input:focus,
#funnel select:focus,
#funnel textarea:focus {
  outline: none;
  border-color: #FF6A2C;
  background: rgba(255,106,44,0.04);
  box-shadow: 0 0 0 3px rgba(255,106,44,0.18);
}
#funnel select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%23A0A6B4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
#funnel select option {
  background: #0B0E18;
  color: #F5F6F7;
}

/* RADIO CARDS */
#funnel .radio-group {
  display: grid;
  gap: 8px;
}
#funnel .radio-option {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: all .18s cubic-bezier(.16,1,.3,1);
  min-height: 52px;
}
#funnel .radio-option:hover {
  background: rgba(255,106,44,0.06);
  border-color: rgba(255,106,44,0.40);
  transform: translateY(-1px);
}
#funnel .radio-option .radio-dot {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  margin-top: 2px;
  position: relative;
  transition: all .15s;
}
#funnel .radio-option input:checked ~ .radio-dot {
  border-color: #FF6A2C;
  background: #FF6A2C;
  box-shadow: 0 0 0 4px rgba(255,106,44,0.18);
}
#funnel .radio-option input:checked ~ .radio-dot::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: #fff;
  border-radius: 50%;
}
#funnel .radio-option:has(input:checked) {
  background: rgba(255,106,44,0.08);
  border-color: #FF6A2C;
}
#funnel .radio-label {
  font-size: 14px;
  line-height: 1.45;
  color: #C5C9D2;
  flex: 1;
}
#funnel .radio-option:has(input:checked) .radio-label {
  color: #F5F6F7;
  font-weight: 600;
}

/* TEXTAREA "OUTRO" */
#funnel .field-other textarea {
  min-height: 70px;
  margin-top: 4px;
}

/* TRUST BLOCK */
#funnel .trust-block {
  background: rgba(255,106,44,0.06);
  border: 1px solid rgba(255,106,44,0.18);
  border-left: 3px solid #FF6A2C;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 26px;
}
#funnel .trust-block h3 {
  font-size: 14px;
  font-weight: 600;
  color: #F5F6F7;
  margin: 0 0 10px;
}
#funnel .trust-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#funnel .trust-block li {
  padding: 5px 0 5px 22px;
  font-size: 13px;
  color: #C5C9D2;
  line-height: 1.5;
  position: relative;
}
#funnel .trust-block li::before {
  content: '✓';
  color: #FF6A2C;
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 5px;
}

/* FIELD ERRORS */
#funnel .field-error {
  background: rgba(220, 38, 38, 0.10);
  border-left: 3px solid #DC2626;
  color: #FCA5A5;
  border-radius: 6px;
  font-size: 13px;
  padding: 9px 12px;
  margin-top: 8px;
}
#funnel .errors-summary {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.30);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 22px;
  color: #FCA5A5;
}
#funnel .errors-summary h3 {
  font-size: 13px;
  font-weight: 600;
  color: #FCA5A5;
  margin: 0 0 6px;
}
#funnel .errors-summary ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.5;
}

/* NAV BUTTONS — neutraliza o .nav global da home (que é fixed/top:0)
   e força o comportamento esperado pelo funnel.css upstream */
.funnel-modal-content #nav,
.funnel-modal-content .nav {
  position: static !important;
  inset: auto !important;
  top: auto !important; left: auto !important; right: auto !important;
  width: auto !important;
  z-index: auto !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  padding: 22px 0 0 !important;
  margin: 28px 0 0 !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 12px !important;
  justify-content: space-between !important;
  align-items: center !important;
}
@media (max-width: 479px) {
  .funnel-modal-content #nav,
  .funnel-modal-content .nav {
    flex-direction: column-reverse !important;
    align-items: stretch !important;
  }
  .funnel-modal-content #nav .btn,
  .funnel-modal-content .nav .btn {
    width: 100% !important;
  }
}
.funnel-modal-content .btn {
  background: #FF6A2C !important;
  border-radius: 999px !important;
  font-family: 'Geist', sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  letter-spacing: -0.005em !important;
  padding: 14px 28px !important;
  box-shadow: 0 10px 30px -10px rgba(255,106,44,0.6) !important;
  transition: background .15s, transform .18s cubic-bezier(.16,1,.3,1), box-shadow .25s !important;
  height: 48px !important;
}
.funnel-modal-content .btn:hover:not(:disabled) {
  background: #E5491B !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 36px -8px rgba(255,106,44,0.7) !important;
}
.funnel-modal-content .btn:active:not(:disabled) {
  transform: translateY(0) !important;
}
.funnel-modal-content .btn:disabled,
.funnel-modal-content .btn.loading {
  opacity: 0.7;
  cursor: progress;
}
.funnel-modal-content .btn-secondary {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  color: #F5F6F7 !important;
  box-shadow: none !important;
}
.funnel-modal-content .btn-secondary:hover {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.30) !important;
  transform: translateY(-1px) !important;
}

/* SUCCESS SCREEN (fallback in-modal) */
#funnel .success {
  text-align: center;
  padding: 8px 0;
}
#funnel .success-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border-radius: 50%;
  font-size: 36px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 16px 40px -8px rgba(34,197,94,0.5);
}
#funnel .success-subtitle {
  margin-bottom: 24px;
}
#funnel .success-steps {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#funnel .success-step {
  display: flex; gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}
#funnel .success-step-number {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,106,44,0.14);
  color: #FF6A2C;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
#funnel .success-step h3 {
  font-size: 14px;
  margin: 2px 0 4px;
}
#funnel .success-step p {
  font-size: 13px;
  margin: 0;
}
#funnel .success-footer {
  font-size: 13px;
  color: #A0A6B4;
  font-style: italic;
  margin-top: 20px;
}
#funnel .success-share {
  font-size: 12px;
  color: #6B7280;
  margin-top: 10px;
}

/* DISQUALIFY SCREEN */
#funnel .disqualify {
  padding: 12px 0;
}
#funnel .disqualify-text {
  margin-bottom: 22px;
}
#funnel .disqualify-alt {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 22px 22px 24px;
  text-align: center;
}
#funnel .disqualify-alt h3 {
  font-size: 15px;
  margin: 0 0 10px;
  color: #F5F6F7;
}
#funnel .disqualify-alt p {
  font-size: 13px;
  margin-bottom: 16px;
}
#funnel .disqualify-alt .btn {
  display: inline-block !important;
  text-decoration: none !important;
}

/* MOBILE */
@media (max-width: 560px) {
  #funnel .funnel-modal-content {
    padding: 32px 22px 20px;
    border-radius: 18px;
    max-height: 96vh;
  }
  #funnel h2:not(.visually-hidden) { font-size: 21px; }
  #funnel .funnel-modal-close { top: 12px; right: 12px; }
}

/* VISUALLY HIDDEN */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
