:root {
  --bg-primary: #0a0a0b;
  --bg-card: #111114;
  --bg-card2: #16161a;
  --red-hot: #c8102e;
  --red-dark: #8b0a1e;
  --red-glow: rgba(200,16,46,0.25);
  --gold: #c9922a;
  --gold-light: #e8b84b;
  --gold-pale: rgba(201,146,42,0.15);
  --text-primary: #f0ece4;
  --text-muted: #7a7a8a;
  --text-dim: #4a4a5a;
  --border: rgba(255,255,255,0.07);
  --border-active: rgba(200,16,46,0.5);
  --step-done: #1a2a1a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  font-size: 16px; /* previne zoom no iOS */
  -webkit-tap-highlight-color: transparent;
}

/* ── ATMOSPHERIC BACKGROUND ── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(200,16,46,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(201,146,42,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.wrapper {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ── HEADER ── */
.header {
  text-align: center;
  margin-bottom: 48px;
  animation: fadeDown 0.8s ease both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-pale);
  border: 1px solid rgba(201,146,42,0.3);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--gold-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 8vw, 58px);
  line-height: 1.0;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.headline span {
  color: var(--red-hot);
  display: block;
}

.subheadline {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.divider-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-hot), transparent);
  margin: 20px auto;
}

/* ── LOGO ── */
.logo-wrap {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}
.logo-wrap img {
  width: 100%;
  max-width: 172px;
  height: auto;
  object-fit: contain;
}

/* ── ALERT WARNINGS ── */
.alert-warnings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
  animation: fadeUp 0.8s 0.3s ease both;
}

.alert-box {
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 14px;
  padding: 20px 24px;
  border-left: 4px solid;
  position: relative;
  overflow: hidden;
}

.alert-box::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
}

.alert-gold {
  background: rgba(201,146,42,0.1);
  border-color: var(--gold);
  border-top: 1px solid rgba(201,146,42,0.25);
  border-right: 1px solid rgba(201,146,42,0.25);
  border-bottom: 1px solid rgba(201,146,42,0.25);
}

.alert-red {
  background: rgba(200,16,46,0.1);
  border-color: var(--red-hot);
  border-top: 1px solid rgba(200,16,46,0.25);
  border-right: 1px solid rgba(200,16,46,0.25);
  border-bottom: 1px solid rgba(200,16,46,0.25);
}

.alert-green {
  background: rgba(22,163,74,0.1);
  border-color: #16a34a;
  border-top: 1px solid rgba(22,163,74,0.25);
  border-right: 1px solid rgba(22,163,74,0.25);
  border-bottom: 1px solid rgba(22,163,74,0.25);
}

.alert-icon {
  font-size: 32px;
  flex-shrink: 0;
  line-height: 1;
}

.alert-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alert-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.alert-gold .alert-title { color: var(--gold-light); }
.alert-red  .alert-title { color: var(--red-hot); }

.alert-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.alert-text strong {
  font-weight: 800;
}

.alert-gold .alert-text strong { color: var(--gold-light); }
.alert-red  .alert-text strong { color: var(--red-hot); }
.alert-green .alert-title { color: #4ade80; }
.alert-green .alert-text strong { color: #4ade80; }

@media (max-width: 480px) {
  .alert-box { padding: 16px 16px; gap: 14px; }
  .alert-icon { font-size: 26px; }
  .alert-text { font-size: 13px; }
}

/* ── PROGRESS BAR ── */
.progress-wrap {
  margin-bottom: 36px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.progress-count {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
}

.progress-track {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-dark), var(--red-hot), var(--gold));
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(.77,0,.18,1);
  box-shadow: 0 0 12px var(--red-glow);
}

/* ── STEP INDICATORS ── */
.steps-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: default;
}

.step-dot-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  transition: all 0.4s ease;
}

.step-dot.active .step-dot-circle {
  border-color: var(--red-hot);
  background: var(--red-hot);
  color: #fff;
  box-shadow: 0 0 18px var(--red-glow);
}

.step-dot.done .step-dot-circle {
  border-color: var(--gold);
  background: var(--gold-pale);
  color: var(--gold);
}

.step-dot-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  text-align: center;
  max-width: 50px;
  line-height: 1.2;
}

.step-dot.active .step-dot-label { color: var(--red-hot); }
.step-dot.done .step-dot-label { color: var(--gold); }

/* ── REQUIRED NOTICE ── */
.required-notice {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 24px;
  font-style: italic;
}
.required-notice span { color: var(--red-hot); }

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.6s ease both;
  contain: layout style;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-hot) 50%, transparent);
  opacity: 0.6;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.card-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--red-dark), rgba(200,16,46,0.3));
  border: 1px solid rgba(200,16,46,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.card-step-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red-hot);
  margin-bottom: 3px;
}

.card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  line-height: 1;
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── FORM FIELDS ── */
.field-group {
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field-label .req {
  color: var(--red-hot);
  margin-left: 3px;
}

.field-input, .field-textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 10px; /* iOS ignora border-radius sem appearance:none */
}

.field-input::placeholder, .field-textarea::placeholder {
  color: var(--text-dim);
  font-weight: 400;
}

.field-input:focus, .field-textarea:focus {
  border-color: var(--border-active);
  background: rgba(200,16,46,0.04);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.08);
}

.field-input.error, .field-textarea.error {
  border-color: var(--red-hot);
  background: rgba(200,16,46,0.06);
}

.field-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.field-error {
  font-size: 11px;
  color: var(--red-hot);
  margin-top: 6px;
  font-weight: 600;
  display: none;
}

.field-error.show { display: block; }

/* ── RADIO GROUPS ── */
.question-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-label {
  flex: 1;
  min-width: 120px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.radio-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  user-select: none;
}

.radio-box .rb-dot {
  width: 16px; height: 16px;
  border: 2px solid var(--text-dim);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-box .rb-dot::after {
  content: '';
  width: 7px; height: 7px;
  background: var(--red-hot);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
}

.radio-label input:checked + .radio-box {
  border-color: var(--red-hot);
  background: rgba(200,16,46,0.08);
  color: var(--text-primary);
  box-shadow: 0 0 16px rgba(200,16,46,0.12);
}

.radio-label input:checked + .radio-box .rb-dot {
  border-color: var(--red-hot);
}

.radio-label input:checked + .radio-box .rb-dot::after {
  opacity: 1;
}

/* ── CONDITIONAL FIELDS ── */
.conditional-field {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  animation: fadeDown 0.3s ease;
}

.conditional-field.show { display: block; }

/* ── NAVIGATION BUTTONS ── */
.nav-buttons {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-back {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-back:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

.btn-next {
  background: linear-gradient(135deg, var(--red-dark), var(--red-hot));
  color: #fff;
  box-shadow: 0 4px 24px rgba(200,16,46,0.3);
  flex: 1;
}

.btn-next::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.08));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-next:hover {
  box-shadow: 0 6px 32px rgba(200,16,46,0.5);
  transform: translateY(-1px);
}

.btn-next:hover::before { opacity: 1; }

.btn-submit {
  background: linear-gradient(135deg, #8b6914, var(--gold), #e8b84b);
  color: #1a1000;
  box-shadow: 0 4px 24px rgba(201,146,42,0.3);
  flex: 1;
  font-size: 14px;
  padding: 18px 32px;
}

.btn-submit:hover {
  box-shadow: 0 6px 36px rgba(201,146,42,0.5);
  transform: translateY(-1px);
}

/* ── FOOTER SEAL ── */
.footer-seal {
  text-align: center;
  margin-top: 28px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: fadeUp 0.8s 0.4s ease both;
}

.seal-icon { font-size: 18px; }

.footer-seal p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 500;
  text-align: left;
}

.footer-seal strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ── SUCCESS SCREEN ── */
.success-screen {
  display: none;
  text-align: center;
  animation: fadeUp 0.8s ease both;
}

.success-screen.show { display: block; }

.success-icon-wrap {
  width: 90px; height: 90px;
  background: linear-gradient(135deg, rgba(201,146,42,0.15), rgba(201,146,42,0.3));
  border: 2px solid rgba(201,146,42,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 40px;
  box-shadow: 0 0 40px rgba(201,146,42,0.2);
  animation: popIn 0.6s cubic-bezier(.68,-.55,.27,1.55) both;
}

.success-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(30px, 7vw, 46px);
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.1;
}

.success-title span { color: var(--gold); }

.success-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 36px;
}

.success-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 28px auto;
}

.info-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
  text-align: left;
}

.info-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
}

.info-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.info-block-icon { font-size: 24px; margin-bottom: 10px; }

.info-block-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.info-block-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 500;
}

.success-warning {
  background: rgba(200,16,46,0.08);
  border: 1px solid rgba(200,16,46,0.2);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
}

.success-warning-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }

.success-warning-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 500;
}

.success-warning-text strong { color: var(--text-primary); }

/* ── FORM CONTAINER ── */
.form-screen { display: block; }
.form-screen.hidden { display: none; }

/* ── STEP TRANSITIONS ── */
.step-panel { display: none; }
.step-panel.active {
  display: block;
  animation: fadeUp 0.4s ease both;
}

/* ── ANIMATIONS ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* ── RESPONSIVE ── */

/* Mobile pequeno (até 480px) */
@media (max-width: 480px) {
  .wrapper { padding: 20px 12px 50px; }
  .card { padding: 20px 14px; }
  .headline { font-size: clamp(28px, 9vw, 40px); }
  .radio-group { flex-direction: column; }
  .radio-label { min-width: unset; width: 100%; }
  .nav-buttons { flex-direction: column; }
  .btn-back { order: 2; }
  .btn-next, .btn-submit { order: 1; }
  .steps-row { gap: 4px; }
  .step-dot-circle { width: 26px; height: 26px; font-size: 10px; }
  .step-dot-label { font-size: 8px; max-width: 40px; }
  .logo-wrap img { max-width: 126px; }
  .card-header { gap: 10px; }
  .card-icon { width: 38px; height: 38px; font-size: 16px; }
  .card-title { font-size: 18px; }
  .btn { padding: 13px 20px; font-size: 12px; }
  .info-blocks { grid-template-columns: 1fr; }
  .success-warning { flex-direction: column; gap: 8px; }
}

/* Mobile médio (481px – 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .wrapper { padding: 28px 16px 60px; }
  .card { padding: 28px 22px; }
  .radio-group { flex-direction: column; }
  .radio-label { min-width: unset; width: 100%; }
  .nav-buttons { flex-direction: column; }
  .btn-back { order: 2; }
  .btn-next, .btn-submit { order: 1; }
  .info-blocks { grid-template-columns: 1fr; }
}

/* Tablet (768px – 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .wrapper { max-width: 720px; padding: 36px 24px 70px; }
  .card { padding: 32px 28px; }
  .info-blocks { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .wrapper { max-width: 680px; padding: 48px 20px 80px; }
  .info-blocks { grid-template-columns: repeat(2, 1fr); }
}
