.vg-page { padding-bottom: 5rem; }

.vg-header {
  background: #041b5d;
  border-bottom: 3px solid #CBA04A;
  padding: 3rem 0 2rem;
  margin-top: 72px;
  margin-bottom: 2.5rem;
  text-align: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

.vg-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.3px;
}

.vg-header h1 {
  font-size: 2rem;
  color: #FFFFFF;
  font-weight: 800;
  margin-bottom: 0.9rem;
  line-height: 1.2;
}

.vg-header-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.vg-progress { max-width: 480px; margin: 0 auto 2rem; }
.vg-progress-steps { display: flex; align-items: center; justify-content: center; }
.vg-step { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.vg-step-circle {
  width: 38px; height: 38px; border-radius: 50%;
  background: #e5e7eb; border: 2px solid #e5e7eb;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #9CA3AF;
  transition: all 0.3s ease; position: relative;
}
.step-check { display: none; }
.vg-step.active .vg-step-circle { background: #041b5d; border-color: #041b5d; color: #fff; }
.vg-step.done .vg-step-circle { background: #CBA04A; border-color: #CBA04A; color: #fff; }
.vg-step.done .step-num { display: none; }
.vg-step.done .step-check { display: block; }
.vg-step-label { font-size: 0.72rem; font-weight: 600; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap; }
.vg-step.active .vg-step-label { color: #041b5d; }
.vg-step.done .vg-step-label { color: #CBA04A; }
.vg-step-line { flex: 1; height: 2px; background: #e5e7eb; margin: 0 0.5rem; margin-bottom: 1.4rem; transition: background 0.3s ease; max-width: 100px; }
.vg-step-line.done { background: #CBA04A; }

.vg-card {
  max-width: 720px; margin: 0 auto;
  background: #fff; border-radius: 16px;
  box-shadow: 0 4px 16px rgba(4, 27, 93, 0.08);
  border: 1px solid #E5E7EB; overflow: hidden;
}
.vg-form-step { padding: 2.25rem 2.5rem; }
.hidden { display: none !important; }

.vg-step-header {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 2rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}
.vg-step-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: #EEF2FF;
  border: 1px solid #C7D2FE;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #1E3A8A;
}
.vg-step-header h2 { font-size: 1.2rem; color: #041b5d; margin: 0 0 0.3rem; font-weight: 700; }
.vg-step-header p { color: #6B7280; font-size: 0.9rem; margin: 0; line-height: 1.5; }

.vg-inline-warning {
  display: flex; align-items: flex-start; gap: 0.5rem;
  background: #fffbeb; border: 1px solid #fcd34d;
  border-radius: 8px; padding: 0.75rem 1rem;
  margin-top: 0.75rem; font-size: 0.84rem;
  color: #92400e; line-height: 1.5;
}
.vg-inline-warning svg { flex-shrink: 0; color: #d97706; margin-top: 1px; }

.vg-note {
  display: flex; align-items: flex-start; gap: 0.5rem;
  background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: 8px; padding: 0.85rem 1rem;
  margin: 1rem 0 1.5rem; font-size: 0.84rem;
  color: #1e40af; line-height: 1.55;
}
.vg-note svg { flex-shrink: 0; color: #3b82f6; margin-top: 1px; }

.vg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; margin-bottom: 2rem; }
.vg-fields--single { grid-template-columns: 1fr; }
.vg-field { display: flex; flex-direction: column; gap: 0.4rem; }
.vg-field--full { grid-column: 1 / -1; }

.vg-field label,
.vg-label-group { font-size: 0.875rem; font-weight: 600; color: #374151; display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.vg-label-opt { font-size: 0.875rem; font-weight: 500; color: #6B7280; display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.req { color: #dc2626; font-size: 0.8rem; }

.vg-field input[type="text"],
.vg-field input[type="tel"],
.vg-field input[type="email"],
.vg-field input[type="date"],
.vg-field select,
.vg-field textarea {
  padding: 0.625rem 0.875rem; border: 1.5px solid #D1D5DB;
  border-radius: 8px; font-size: 1rem; font-family: inherit;
  color: #1f2937; background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; width: 100%;
}
.vg-field input:focus, .vg-field select:focus, .vg-field textarea:focus { border-color: #1E3A8A; box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12); outline: none; }
.vg-field input.invalid, .vg-field select.invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08); }

.vg-input-prefix {
  display: flex; align-items: center;
  border: 1.5px solid #d1d5db; border-radius: 8px;
  overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.vg-input-prefix:focus-within { border-color: #1E3A8A; box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1); }
.vg-input-prefix > span {
  padding: 0.6rem 0.75rem; background: #f9fafb;
  border-right: 1.5px solid #e5e7eb; font-size: 0.9rem;
  font-weight: 600; color: #6B7280; white-space: nowrap;
}
.vg-input-prefix input { border: none !important; box-shadow: none !important; border-radius: 0 !important; padding-left: 0.65rem !important; flex: 1; min-width: 0; }

.vg-field-error { font-size: 0.78rem; color: #dc2626; font-weight: 500; min-height: 1em; }
.vg-field-error--submit { display: block; text-align: center; margin-top: 0.75rem; font-size: 0.85rem; }

.vg-radio-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.vg-radio-group--col { flex-direction: column; flex-wrap: nowrap; }
.vg-radio-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.9rem; border: 1.5px solid #d1d5db;
  border-radius: 8px; cursor: pointer; font-size: 0.9rem;
  color: #374151; transition: all 0.2s; user-select: none;
}
.vg-radio-item:hover { border-color: #1E3A8A; background: #f0f4ff; }
.vg-radio-item input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.vg-radio-box { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #d1d5db; flex-shrink: 0; transition: all 0.2s; }
.vg-radio-item input:checked ~ .vg-radio-box { border-color: #041b5d; background: #041b5d; box-shadow: inset 0 0 0 3px #fff; }
.vg-radio-item:has(input:checked) { border-color: #041b5d; background: #f0f4ff; }
.vg-radio-group.invalid .vg-radio-item { border-color: #fca5a5; }

.vg-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.vg-check-grid--2 { grid-template-columns: 1fr 1fr; }
.vg-check-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.85rem; border: 1.5px solid #d1d5db;
  border-radius: 8px; cursor: pointer; font-size: 0.875rem;
  color: #374151; transition: all 0.2s; user-select: none;
}
.vg-check-item:hover { border-color: #1E3A8A; background: #f0f4ff; }
.vg-check-item input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.vg-check-box {
  width: 18px; height: 18px; border-radius: 5px;
  border: 2px solid #d1d5db; display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.2s; color: transparent;
}
.vg-check-item input:checked ~ .vg-check-box { background: #041b5d; border-color: #041b5d; color: #fff; }
.vg-check-item:has(input:checked) { border-color: #041b5d; background: #f0f4ff; }
.vg-check-grid.invalid .vg-check-item { border-color: #fca5a5; }
.vg-check-item--terms { border: none; padding: 0; font-size: 0.875rem; align-items: flex-start; }
.vg-check-item--terms .vg-check-box { margin-top: 2px; }
.vg-check-item--terms a { color: #1E3A8A; text-decoration: underline; }

.vg-nav { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid #f3f4f6; }
.vg-submit-area { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid #f3f4f6; gap: 1rem; flex-wrap: wrap; }

.vg-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.65rem 1.5rem; border-radius: 10px;
  font-size: 0.95rem; font-weight: 600; font-family: inherit;
  cursor: pointer; border: none; transition: all 0.2s ease;
  text-decoration: none;
}
.vg-btn--primary { background: #1E3A8A; color: #fff; border-radius: 8px; min-height: 48px; font-weight: 700; }
.vg-btn--primary:hover { background: #162F6E; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25); }
.vg-btn--ghost { background: transparent; color: #6B7280; border: 1.5px solid #e5e7eb; }
.vg-btn--ghost:hover { border-color: #d1d5db; color: #374151; background: #f9fafb; }
.vg-btn--submit { background: linear-gradient(135deg, #CBA04A 0%, #b8903d 100%); color: #fff; padding: 0.75rem 2rem; font-size: 1rem; flex: 1; justify-content: center; }
.vg-btn--submit:hover { background: linear-gradient(135deg, #d4ae5c 0%, #CBA04A 100%); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(203, 160, 74, 0.4); }
.vg-btn--submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }

.vg-disclaimer { display: flex; align-items: flex-start; gap: 0.4rem; margin-top: 1rem; font-size: 0.78rem; color: #9CA3AF; line-height: 1.5; }
.vg-disclaimer svg { flex-shrink: 0; margin-top: 1px; }

@keyframes vg-spin { to { transform: rotate(360deg); } }
.spin { animation: vg-spin 0.8s linear infinite; }

.vg-success { padding: 3.5rem 2.5rem; text-align: center; }
.vg-success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 2px solid #6ee7b7;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; color: #065f46;
}
.vg-success h2 { font-size: 1.5rem; color: #041b5d; margin-bottom: 1rem; }
.vg-success-msg { font-size: 1.05rem; color: #374151; margin-bottom: 0.75rem; line-height: 1.6; }
.vg-success-sub { font-size: 0.9rem; color: #6B7280; margin-bottom: 2rem; }
.vg-success-back { display: inline-flex; }

.vg-info-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.5rem 3rem; max-width: 720px;
  margin: 2rem auto 0; padding: 1.5rem 0;
  border-top: 1px solid #e5e7eb;
}
.vg-info-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: #6B7280; max-width: 230px; }
.vg-info-item svg { flex-shrink: 0; color: #CBA04A; }

@media (max-width: 640px) {
  .vg-header h1 { font-size: 1.65rem; }
  .vg-step-label { display: none; }
  .vg-step-line { max-width: 50px; }
  .vg-form-step { padding: 1.5rem 1.25rem; }
  .vg-fields { grid-template-columns: 1fr; }
  .vg-field--full { grid-column: 1; }
  .vg-check-grid { grid-template-columns: 1fr; }
  .vg-check-grid--2 { grid-template-columns: 1fr; }
  .vg-submit-area { flex-direction: column-reverse; }
  .vg-btn--submit { width: 100%; }
  .vg-btn--ghost { align-self: flex-start; }
  .vg-success { padding: 2.5rem 1.5rem; }
  .vg-info-row { flex-direction: column; align-items: flex-start; }
}

/* ---- Formulário: rescisão trabalhista ---- */
.vg-label-hint { font-size: 0.78rem; color: #9CA3AF; font-weight: 400; }
.vg-check-item--none { grid-column: 1 / -1; }
.vg-char-count { font-size: 0.78rem; color: #9CA3AF; text-align: right; margin-top: 0.25rem; }
.vg-field textarea { resize: vertical; min-height: 88px; }
.vg-input-prefix.invalid { border-color: #dc2626; }

/* ---- Formulário: isenção IR ---- */
.vg-mes-ano-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.vg-mes-ano-group select {
  padding: 0.625rem 0.875rem;
  border: 1.5px solid #D1D5DB;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: #1f2937;
  background: #fff;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.vg-mes-ano-group select:focus {
  border-color: #1E3A8A;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
  outline: none;
}
.vg-check-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.vg-check-item--outra { grid-column: 1 / -1; }

/* ---- Formulário: BPC/LOAS ---- */
.vg-field-hint { font-size: 0.8rem; color: #6B7280; margin: 0.35rem 0 0; line-height: 1.45; }
.vg-branch-panel {
  border-top: 1px dashed #d1d5db;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.vg-branch-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #041b5d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}
.vg-check-item--full { grid-column: 1 / -1; }
.vg-per-capita-box {
  background: #f0f4ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: #041b5d;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .vg-check-item--none { grid-column: 1; }
  .vg-step-line { max-width: 40px; }
  .vg-check-grid--3 { grid-template-columns: 1fr; }
  .vg-check-item--outra { grid-column: 1; }
  .vg-mes-ano-group { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .vg-check-grid--3 { grid-template-columns: 1fr 1fr; }
}
