:root {
  --navy-deep: #12203A;
  --navy: #1B2F50;
  --teal: #00A896;
  --teal-bright: #00C4AD;
  --teal-bg: #E8F6F4;
  --gray-bg: #F5F6F7;
  --gray-bdr: #DDE3EA;
  --gray-mid: #8A9BAE;
  --text: #1E2530;
  --white: #FFFFFF;
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--gray-bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

a { color: var(--teal); }

.brand-bar {
  background: var(--navy);
  padding: 12px 0;
}
.brand-bar .wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-bar .logo-text {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .2px;
}
.brand-logo {
  height: 68px;
  width: auto;
  border-radius: 10px;
  display: block;
  object-fit: contain;
}
.brand-admin-label {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  opacity: .85;
}

.page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-bdr);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(18,32,58,0.04);
}

h1.page-title {
  font-size: 1.6rem;
  color: var(--navy);
  margin: 0 0 8px;
}
p.page-sub {
  color: var(--gray-mid);
  font-size: .95rem;
  margin: 0 0 28px;
  line-height: 1.5;
}

.eyebrow {
  display: inline-block;
  background: var(--teal-bg);
  color: var(--teal);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title .num {
  background: var(--teal);
  color: var(--white);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  flex: none;
}
.section-desc {
  color: var(--gray-mid);
  font-size: .85rem;
  margin: 0 0 16px 36px;
}

.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.field .hint {
  font-size: .78rem;
  color: var(--gray-mid);
  margin-top: 4px;
}
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-bdr);
  border-radius: 10px;
  font-size: .92rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-bg);
}
textarea { min-height: 90px; resize: vertical; }

.radio-group, .check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.radio-pill {
  border: 1px solid var(--gray-bdr);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: .88rem;
  cursor: pointer;
  transition: all .15s;
  background: var(--white);
}
.radio-pill input { display: none; }
.radio-pill.active, .radio-pill:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-bg);
  color: var(--teal);
  font-weight: 600;
}

.inline-sub {
  margin-top: 12px;
  padding-left: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  padding: 13px 28px;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform .1s, opacity .15s;
}
.btn:active { transform: scale(0.98); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-bright); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--gray-bdr); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.progress-bar {
  height: 6px;
  background: var(--gray-bdr);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
  position: sticky;
  top: 0;
}
.progress-bar .fill {
  height: 100%;
  background: var(--teal);
  width: 0%;
  transition: width .2s;
}

.msg-box {
  text-align: center;
  padding: 60px 24px;
}
.msg-box .icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--teal-bg);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}
.msg-box h2 { color: var(--navy); margin: 0 0 10px; }
.msg-box p { color: var(--gray-mid); }

.error-text {
  color: #C0392B;
  font-size: .85rem;
  margin-top: 6px;
  display: none;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
table.data-table th {
  text-align: left;
  color: var(--gray-mid);
  font-weight: 600;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-bdr);
}
table.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--gray-bdr);
  vertical-align: top;
}
table.data-table tr:hover td { background: var(--gray-bg); }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.badge-pending { background: #FFF3CD; color: #856404; }
.badge-submitted { background: var(--teal-bg); color: var(--teal); }
.badge-expired { background: #F8D7DA; color: #C0392B; }

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(18,32,58,0.5);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  z-index: 50;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 480px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
}

.link-box {
  display: flex;
  gap: 8px;
  background: var(--gray-bg);
  border: 1px solid var(--gray-bdr);
  border-radius: 10px;
  padding: 10px 12px;
  align-items: center;
  font-size: .82rem;
  word-break: break-all;
}

.top-actions {
  display: flex; justify-content: flex-end; margin-bottom: 12px;
}

.bank-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.bank-row .bank-qtd { width: 90px; flex: none; }
.bank-row .bank-select { flex: 1; }
.bank-row .bank-remove {
  flex: none;
  background: none;
  border: 1px solid var(--gray-bdr);
  color: var(--gray-mid);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.bank-row .bank-remove:hover { color: #C0392B; border-color: #C0392B; }

@media (max-width: 600px) {
  .card { padding: 22px; }
  .page-wrap { padding: 24px 14px 60px; }
}
