/* =========================================================
   APLICACAO — SITE INTEGRADO
========================================================= */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --indigo: #4f46e5;
  --success: #059669;
  --success-soft: #ecfdf5;
  --danger: #dc2626;
  --danger-soft: #fff1f2;
  --warning: #b45309;
  --warning-soft: #fffbeb;
  --text: #0f172a;
  --muted: #64748b;
  --border: #dbe4f0;
  --border-strong: #cbd5e1;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --background: #f6f8fc;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-soft: 0 4px 18px rgba(15, 23, 42, 0.05);
  --radius: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.07), transparent 30%),
    var(--background);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

.hidden {
  display: none !important;
}

/* =========================================================
   HEADER
========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 228, 240, 0.9);
}

.topbar__inner {
  max-width: 1180px;
  min-height: 68px;
  margin: 0 auto;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--primary), var(--indigo));
  color: white;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.brand__copy {
  display: grid;
  text-align: left;
}

.brand__copy strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #173b83;
  font-size: 17px;
}

.brand__copy small {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.topbar__nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-link {
  border: 0;
  background: transparent;
  color: #475569;
  font-weight: 600;
  font-size: 13px;
  border-radius: 10px;
  padding: 9px 12px;
  transition: 0.15s ease;
}

.nav-link:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.topbar__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.topbar__status .material-symbols-outlined {
  color: var(--success);
  font-size: 16px;
}

/* =========================================================
   PROGRESS
========================================================= */

.global-progress {
  height: 4px;
  background: #e8eef8;
}

.global-progress__bar {
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--indigo));
  transition: width 0.3s ease;
}



.global-progress__bar.progress-step-1 { width: 20%; }
.global-progress__bar.progress-step-2 { width: 40%; }
.global-progress__bar.progress-step-3 { width: 60%; }
.global-progress__bar.progress-step-4 { width: 80%; }
.global-progress__bar.progress-step-5 { width: 100%; }

body.modal-open {
  overflow: hidden;
}

/* =========================================================
   PAGE / CARDS
========================================================= */

.page {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.stepper {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.stepper::-webkit-scrollbar {
  display: none;
}

.stepper__item {
  min-width: max-content;
  border: 0;
  background: transparent;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  opacity: 0.72;
}

.stepper__item.is-active,
.stepper__item.is-complete {
  opacity: 1;
}

.stepper__item.is-active {
  color: var(--primary);
}

.stepper__item.is-complete {
  color: var(--success);
}

.stepper__badge {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.stepper__item.is-active .stepper__badge {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.stepper__item.is-complete .stepper__badge {
  border-color: #a7f3d0;
  background: var(--success-soft);
  color: var(--success);
}

.stepper__text {
  display: grid;
  text-align: left;
}

.stepper__text small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stepper__text strong {
  font-size: 11px;
}

.stepper__divider {
  color: #cbd5e1;
}

/* =========================================================
   HERO
========================================================= */

.hero {
  margin-top: 18px;
  overflow: hidden;
}

.hero__accent {
  height: 7px;
  background: linear-gradient(90deg, var(--primary), var(--indigo));
}

.hero__content {
  padding: 24px 26px 26px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.pill,
.hero__privacy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.pill {
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 7px 10px;
  border: 1px solid #bfdbfe;
}

.pill .material-symbols-outlined,
.hero__privacy .material-symbols-outlined {
  font-size: 15px;
}

.hero__privacy {
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hero p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.hero__help {
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.hero__help .material-symbols-outlined {
  font-size: 17px;
}

/* =========================================================
   FORM
========================================================= */

#creditForm {
  margin-top: 18px;
}

.form-card {
  padding: 24px;
}

.section-title {
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.section-number {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 13px;
}

.section-title h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
}

.section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.subsection + .subsection {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #eef2f7;
}

.subsection h3 {
  margin: 0 0 16px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid + .grid,
.grid + .field,
.field + .grid,
.field + .field {
  margin-top: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-span-2 {
  grid-column: span 2;
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.field--small {
  max-width: 420px;
}

.field--button {
  align-items: flex-start;
}

.field label {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: white;
  color: var(--text);
  padding: 11px 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
}

.field input.is-invalid,
.field select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.field-hint,
.field-error {
  display: block;
  font-size: 10px;
  line-height: 1.45;
  margin-top: 5px;
}

.field-hint {
  color: var(--muted);
}

.field-error {
  min-height: 14px;
  color: var(--danger);
  font-weight: 600;
}

.money-input {
  min-height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  display: flex;
  align-items: center;
  background: white;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.money-input:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
}

.money-input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.money-input > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding-left: 12px;
}

.money-input input {
  border: 0;
  box-shadow: none !important;
  min-height: 44px;
}

.input-with-badge {
  position: relative;
}

.input-with-badge input {
  padding-right: 120px;
}

.input-badge {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 9px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
}

/* =========================================================
   INDICATORS
========================================================= */

.indicator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.indicator-card {
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.indicator-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.indicator-card strong {
  display: block;
  margin-top: 4px;
  color: var(--primary-dark);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 17px;
}

/* =========================================================
   LOAN
========================================================= */

.loan-section__title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.loan-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}

.loan-section__title h3 {
  margin: 0;
}

.loan-section__title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.loan-value-card {
  padding: 18px;
  border-radius: 15px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.loan-value-card > div {
  display: grid;
}

.loan-value-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.loan-value-card strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--primary-dark);
  font-size: 30px;
  margin: 2px 0;
}

.loan-value-card small {
  color: var(--muted);
  font-size: 10px;
}

.loan-fixed-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: var(--primary-dark) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

.loan-fixed-badge .material-symbols-outlined {
  font-size: 14px;
}

.loan-options {
  border: 0;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.loan-options legend {
  grid-column: 1 / -1;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
}

.loan-option {
  position: relative;
  cursor: pointer;
}

.loan-option > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.loan-option__card {
  height: 100%;
  padding: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  background: white;
  display: grid;
  gap: 18px;
  transition: 0.17s ease;
}

.loan-option:hover .loan-option__card {
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.06);
}

.loan-option > input:checked + .loan-option__card {
  border-color: var(--primary);
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09);
}

.loan-option__top,
.loan-option__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.loan-option__top > span:first-child {
  display: grid;
}

.loan-option__top strong {
  font-size: 13px;
}

.loan-option__top small,
.loan-option__price small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}

.loan-tag {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.loan-option__price {
  display: flex;
  gap: 12px;
  align-items: center;
}

.loan-option__price > strong {
  color: var(--primary);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 28px;
}

.loan-option__price > span {
  display: grid;
}

.loan-option__price b {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
}

.loan-option__footer {
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  color: var(--muted);
  font-size: 10px;
}

.loan-option__footer strong {
  color: var(--text);
  font-size: 11px;
}

.loan-summary {
  margin-top: 12px;
  padding: 13px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--success-soft);
  border: 1px solid #a7f3d0;
  color: #166534;
}

.loan-summary .material-symbols-outlined {
  color: var(--success);
}

.loan-summary strong {
  font-size: 11px;
}

.loan-summary p {
  margin: 3px 0 0;
  font-size: 10px;
  color: #475569;
}

.info-box {
  margin-top: 14px;
  padding: 12px 13px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.info-box .material-symbols-outlined {
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}

.info-box p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

/* =========================================================
   FILES
========================================================= */

.security-note {
  margin-bottom: 16px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.security-note__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: var(--primary);
  flex-shrink: 0;
}

.security-note h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
}

.security-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.upload-list {
  display: grid;
  gap: 14px;
}

.upload-card {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  transition: 0.15s ease;
}

.upload-card.is-ready {
  border-color: #86efac;
  background: rgba(240, 253, 244, 0.55);
}

.upload-card.is-invalid {
  border-color: #fda4af;
  background: rgba(255, 241, 242, 0.5);
}

.upload-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.upload-card__top > div {
  display: grid;
}

.upload-card__top strong {
  font-size: 12px;
}

.upload-card__top small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.upload-status {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.upload-status.is-ready {
  background: var(--success-soft);
  color: #166534;
  border-color: #a7f3d0;
}

.file-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-zone {
  margin-top: 12px;
  min-height: 62px;
  padding: 12px;
  border: 1px dashed #93c5fd;
  border-radius: 12px;
  background: #f8fbff;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.upload-zone > .material-symbols-outlined {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: white;
  color: var(--primary);
  border: 1px solid #dbeafe;
  flex-shrink: 0;
}

.upload-zone > span:last-child {
  display: grid;
}

.upload-zone strong {
  color: var(--primary-dark);
  font-size: 10px;
}

.upload-zone small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  word-break: break-word;
}

.file-remove {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: #be123c;
  font-size: 9px;
  font-weight: 800;
  padding: 0;
}

/* =========================================================
   REVIEW
========================================================= */

.review-stack {
  display: grid;
  gap: 14px;
}

.review-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
}

.review-card--loan {
  border: 2px solid rgba(37, 99, 235, 0.28);
  background: linear-gradient(145deg, #f8fbff, #ffffff);
}

.review-card--summary {
  background: #f8fafc;
}

.review-card__head {
  padding-bottom: 12px;
  margin-bottom: 13px;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-card__head > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-card__head .material-symbols-outlined {
  color: var(--primary);
  font-size: 18px;
}

.review-card__head h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
}

.edit-link {
  border: 0;
  background: transparent;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 800;
}

.edit-link .material-symbols-outlined {
  font-size: 14px;
}

.review-grid,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.review-item {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.review-item span {
  color: var(--muted);
  font-size: 9px;
}

.review-item strong {
  color: var(--text);
  font-size: 11px;
  word-break: break-word;
}

.review-item--highlight {
  padding: 10px;
  border-radius: 10px;
  background: var(--primary-soft);
  border: 1px solid #dbeafe;
}

.review-item--highlight strong {
  color: var(--primary-dark);
  font-size: 13px;
}

.review-loan-main {
  display: grid;
  gap: 12px;
}

.review-loan-value {
  padding: 14px;
  border-radius: 12px;
  background: var(--primary-soft);
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-loan-value > div {
  display: grid;
}

.review-loan-value span {
  color: var(--muted);
  font-size: 9px;
}

.review-loan-value strong {
  margin-top: 2px;
  color: var(--primary-dark);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 26px;
}

.review-loan-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.review-loan-details > div {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: white;
  display: grid;
  gap: 3px;
}

.review-loan-details span {
  color: var(--muted);
  font-size: 8px;
}

.review-loan-details strong {
  font-size: 10px;
}

.review-documents {
  display: grid;
  gap: 8px;
}

.review-document {
  padding: 10px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-document__main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.review-document__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #fff1f2;
  color: #dc2626;
  border: 1px solid #fecdd3;
  flex-shrink: 0;
}

.review-document__icon .material-symbols-outlined {
  font-size: 18px;
}

.review-document__main > div:last-child {
  min-width: 0;
  display: grid;
}

.review-document__main strong {
  font-size: 10px;
}

.review-document__main small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  overflow-wrap: anywhere;
}

.review-document__status {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--success-soft);
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 8px;
  font-weight: 800;
  flex-shrink: 0;
}

.authorization {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #eef2f7;
}

.authorization__label {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: #f8fbff;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}

.authorization__label input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.authorization__label span {
  font-size: 10px;
  line-height: 1.55;
}

.authorization > p {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 9px;
}

/* =========================================================
   BUTTONS / ACTIONS
========================================================= */

.actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.actions--right {
  justify-content: flex-end;
}

.btn {
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: 0.15s ease;
}

.btn .material-symbols-outlined {
  font-size: 17px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: white;
  color: #475569;
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: #f8fafc;
  color: var(--text);
}

.btn--full {
  width: 100%;
}

/* =========================================================
   MODALS
========================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(780px, calc(100vh - 40px));
  overflow: auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}

.modal__panel--large {
  width: min(760px, 100%);
}

.modal__panel--small {
  width: min(420px, 100%);
  padding: 24px;
  text-align: center;
}

.modal__head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 19px 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eef2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal__eyebrow {
  display: block;
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.modal__head h2 {
  margin: 3px 0 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: white;
  display: grid;
  place-items: center;
  color: #475569;
}

.modal__body {
  padding: 20px;
}


.privacy-hero {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.privacy-hero .material-symbols-outlined {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: var(--primary);
  font-size: 22px;
}

.privacy-hero h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
}

.privacy-hero p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.how-list {
  display: grid;
  gap: 12px;
}

.how-item {
  padding: 14px;
  border-radius: 13px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
}

.how-item__number {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 800;
}

.how-item h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
}

.how-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.how-plans {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}

.how-plans span {
  padding: 7px 9px;
  border-radius: 9px;
  background: white;
  border: 1px solid var(--border);
  color: #475569;
  font-size: 9px;
}

.how-tip {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: #92400e !important;
}

.how-tip .material-symbols-outlined {
  font-size: 15px;
  color: #d97706;
}

.privacy-list {
  display: grid;
  gap: 10px;
}

.privacy-list > div {
  padding: 12px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.privacy-list .material-symbols-outlined {
  color: var(--primary);
  font-size: 19px;
}

.privacy-list p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.privacy-list strong {
  color: var(--text);
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid #a7f3d0;
}

.success-icon .material-symbols-outlined {
  font-size: 30px;
}

.modal__panel--small h2 {
  margin: 14px 0 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
}

.modal__panel--small > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.protocol-box {
  margin: 16px 0;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  display: grid;
  gap: 4px;
}

.protocol-box span {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.protocol-box strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--primary-dark);
  font-size: 16px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 760px) {
  .topbar__inner {
    grid-template-columns: 1fr auto;
  }

  .topbar__nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .topbar__status {
    display: none;
  }

  .stepper__text {
    display: none;
  }

  .stepper {
    justify-content: space-between;
  }

  .stepper__divider {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 820px);
    padding-top: 16px;
  }

  .hero__content,
  .form-card {
    padding: 18px;
  }

  .grid-2,
  .grid-3,
  .indicator-grid,
  .loan-options,
  .review-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .grid-span-2 {
    grid-column: span 1;
  }

  .loan-value-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-loan-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actions {
    flex-direction: column-reverse;
  }

  .actions--right {
    align-items: stretch;
  }

  .actions .btn {
    width: 100%;
  }

  .upload-card__top {
    flex-direction: column;
  }

  .upload-status {
    align-self: flex-start;
  }

  .review-document {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-document__status {
    align-self: flex-start;
  }

}


/* =========================================================
   ACCESSIBILITY / SAFE INTERACTIONS
========================================================= */

button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.spin {
  animation: credito-spin 0.9s linear infinite;
}

@keyframes credito-spin {
  to { transform: rotate(360deg); }
}

.submit-status {
  min-height: 18px;
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.submit-status.is-error {
  color: var(--danger);
  font-weight: 700;
}

.submit-status.is-success {
  color: var(--success);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 380px) {
  .page {
    width: min(100% - 14px, 820px);
  }

  .topbar__inner {
    padding-inline: 12px;
  }

  .topbar__nav {
    gap: 2px;
  }

  .nav-link {
    padding: 8px 9px;
    font-size: 11px;
  }

  .stepper {
    padding: 12px;
  }

  .review-loan-details {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 10px;
  }
}
