/* Apoio recorrente — fluxo Portal */
:root {
  --ar-orange: #FF6B1A;
  --ar-orange-d: #E55A0A;
  --ar-black: #0A0A0A;
  --ar-card: #141414;
  --ar-border: rgba(255,255,255,0.1);
  --ar-glow: rgba(255,107,26,0.35);
}

/* Aviso: página aberta como file:// (sem servidor) */
#arFileProtocolBanner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147483646;
  background: linear-gradient(135deg, #1f1208 0%, #0d0d0d 100%);
  border-bottom: 3px solid var(--ar-orange);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  padding: 16px 20px;
}
.ar-fp-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ar-fp-inner > i {
  color: var(--ar-orange);
  font-size: 1.5rem;
  margin-top: 4px;
  flex-shrink: 0;
}
.ar-fp-text { font-size: 0.88rem; line-height: 1.55; color: #E0E0E0; }
.ar-fp-text strong { color: #fff; display: block; margin-bottom: 8px; font-size: 0.95rem; }
.ar-fp-text p { margin: 0 0 10px; }
.ar-fp-text code {
  font-size: 0.8rem;
  background: rgba(0,0,0,0.45);
  padding: 3px 8px;
  border-radius: 6px;
  word-break: break-all;
  color: #FFB380;
}
.ar-fp-muted { color: #9E9E9E !important; font-size: 0.82rem !important; }
.ar-fp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ar-orange);
  color: #fff !important;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
}
.ar-fp-btn:hover { background: var(--ar-orange-d); transform: translateY(-1px); }
body.ar-file-mode.ar-page {
  padding-top: 200px;
}
@media (max-width: 520px) {
  body.ar-file-mode.ar-page { padding-top: 240px; }
}

.ar-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255,107,26,0.12), transparent),
    var(--ar-black);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  padding: 100px 20px 80px;
}

.ar-shell {
  max-width: 560px;
  margin: 0 auto;
}

.ar-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9E9E9E;
  font-size: 0.9rem;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.ar-back:hover { color: var(--ar-orange); }

.ar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ar-orange);
  background: rgba(255,107,26,0.12);
  border: 1px solid rgba(255,107,26,0.25);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.ar-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.15;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.ar-sub {
  color: #9E9E9E;
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 32px;
}

.ar-card {
  background: linear-gradient(145deg, var(--ar-card) 0%, #0f0f0f 100%);
  border: 1px solid var(--ar-border);
  border-radius: 20px;
  padding: 28px 24px 32px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,107,26,0.06);
  position: relative;
  overflow: hidden;
}
.ar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ar-orange), transparent);
  opacity: 0.9;
}

.ar-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.ar-step {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  transition: background 0.35s ease, box-shadow 0.35s;
}
.ar-step.done { background: rgba(255,107,26,0.45); }
.ar-step.active {
  background: var(--ar-orange);
  box-shadow: 0 0 16px var(--ar-glow);
}

.ar-step-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #616161;
  margin-top: -18px;
  margin-bottom: 24px;
}
.ar-step-labels span.active { color: var(--ar-orange); font-weight: 600; }

.ar-panel { display: none; animation: arIn 0.45s ease; }
.ar-panel.active { display: block; }
@keyframes arIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.ar-field { margin-bottom: 18px; }
.ar-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #E0E0E0;
  margin-bottom: 8px;
}
.ar-field input,
.ar-field select {
  width: 100%;
  background: #0A0A0A;
  border: 1px solid var(--ar-border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.95rem;
  color: #fff;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ar-field input:focus,
.ar-field select:focus {
  outline: none;
  border-color: var(--ar-orange);
  box-shadow: 0 0 0 3px rgba(255,107,26,0.15);
}
.ar-field input::placeholder { color: #616161; }

.ar-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .ar-row2 { grid-template-columns: 1fr; }
}

.ar-cep-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: end;
}
@media (max-width: 480px) {
  .ar-cep-row { grid-template-columns: 1fr; }
}

.ar-btn-busca {
  padding: 14px 12px;
  background: rgba(255,107,26,0.15);
  border: 1px solid rgba(255,107,26,0.35);
  color: var(--ar-orange);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.ar-btn-busca:hover { background: rgba(255,107,26,0.25); }
.ar-btn-busca:active { transform: scale(0.98); }
.ar-btn-busca:disabled { opacity: 0.5; cursor: not-allowed; }

.ar-hint {
  font-size: 0.78rem;
  color: #757575;
  margin-top: 6px;
  line-height: 1.4;
}

.ar-pay-grid {
  display: grid;
  gap: 14px;
}
.ar-pay-opt {
  display: block;
  cursor: pointer;
  position: relative;
}
.ar-pay-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ar-pay-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 14px;
  border: 2px solid var(--ar-border);
  background: rgba(0,0,0,0.35);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.ar-pay-opt input:focus-visible + .ar-pay-box {
  outline: 2px solid var(--ar-orange);
  outline-offset: 2px;
}
.ar-pay-opt input:checked + .ar-pay-box {
  border-color: var(--ar-orange);
  background: rgba(255,107,26,0.08);
  box-shadow: 0 0 24px rgba(255,107,26,0.12);
}
.ar-pay-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,107,26,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ar-orange);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.ar-pay-box strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}
.ar-pay-box p {
  font-size: 0.85rem;
  color: #9E9E9E;
  line-height: 1.45;
  margin: 0;
}

.ar-secure {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(30,126,52,0.12);
  border: 1px solid rgba(30,126,52,0.35);
  border-radius: 12px;
  font-size: 0.82rem;
  color: #A5D6A7;
  line-height: 1.5;
  margin-top: 16px;
}
.ar-secure i { margin-top: 2px; color: #66BB6A; }

.ar-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.ar-btn {
  flex: 1;
  min-width: 120px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.ar-btn:active { transform: scale(0.98); }
.ar-btn-ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.2);
  color: #E0E0E0;
}
.ar-btn-ghost:hover { border-color: var(--ar-orange); color: var(--ar-orange); }
.ar-btn-primary {
  background: var(--ar-orange);
  color: #fff;
  box-shadow: 0 8px 28px rgba(255,107,26,0.35);
}
.ar-btn-primary:hover { background: var(--ar-orange-d); }
.ar-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.ar-error {
  background: rgba(198,40,40,0.12);
  border: 1px solid rgba(239,83,80,0.4);
  color: #FFCDD2;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 18px;
  display: none;
}
.ar-error.show { display: block; }

.ar-success {
  text-align: center;
  padding: 20px 8px 8px;
  display: none;
}
.ar-success.show { display: block; animation: arIn 0.5s ease; }
.ar-success .ar-icon-ok {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(30,126,52,0.2);
  border: 2px solid rgba(76,175,80,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #66BB6A;
  animation: arPulse 2s ease-in-out infinite;
}
@keyframes arPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(102,187,106,0.35); }
  50% { box-shadow: 0 0 0 14px rgba(102,187,106,0); }
}
.ar-success h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ar-success p {
  color: #BDBDBD;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.ar-footer-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.8rem;
  color: #616161;
}
.ar-footer-note a {
  color: var(--ar-orange);
  text-decoration: none;
}
.ar-footer-note a:hover { text-decoration: underline; }

.ar-form-body.hidden { display: none; }
