
@font-face {
  font-family: 'Gilroy';
  src: url('/fonts/Gilroy/Gilroy-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Gilroy';
  src: url('/fonts/Gilroy/Gilroy-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Gilroy';
  src: url('/fonts/Gilroy/Gilroy-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Gilroy';
  src: url('/fonts/Gilroy/Gilroy-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Gilroy';
  src: url('/fonts/Gilroy/Gilroy-Heavy.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

:root {
  --bf-blue: #0B76C5;
  --bf-blue-hover: #095FA0;
  --bf-red: #E1192D;
  --bf-gold: #E0A11B;
  --bf-bg: #F5F7FA;
  --bf-text: #111827;
  --bf-muted: #6B7280;
}
body { background: var(--bf-bg); color: var(--bf-text); font-family: 'Gilroy', sans-serif; font-size: 1rem; }
.h1, .h2, .h3, .h4, h1, h2, h3, h4, .logo-bahia, .step, .btn, .form-control, .form-select, .form-label, .text-muted, p, small, a, span, li {
  font-family: 'Gilroy', sans-serif;
}
.logo-bahia { font-weight: 800; letter-spacing: .3px; color: var(--bf-blue); }
.logo-bahia span { color: var(--bf-gold); }
.card-main { border: 0; border-radius: 16px; box-shadow: 0 8px 30px rgba(15,23,42,.08); }
.form-control, .form-select { border-radius: 12px; padding: .65rem .85rem; }
.form-control:focus, .form-select:focus, .visual-radio-option:focus-within, .upload-box:focus-visible { outline: 3px solid rgba(11,118,197,.2); border-color: var(--bf-blue); box-shadow: none; }
.btn-bahia { background: var(--bf-blue); border-color: var(--bf-blue); border-radius: 12px; padding: .7rem 1.25rem; }
.btn-bahia:hover { background: var(--bf-blue-hover); border-color: var(--bf-blue-hover); }
.required-asterisk { color: var(--bf-red); }
.form-section { margin-bottom: 2rem; }
.section-header h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .4px; margin-bottom: .5rem; }
.section-line { height: 2px; width: 100%; background: var(--bf-blue); margin-bottom: 1rem; }
.visual-radio-group { display: flex; gap: .75rem; flex-wrap: wrap; }
.visual-radio-option { border: 1px solid #d1d5db; border-radius: 12px; padding: .6rem 1rem; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-width: 130px; background: #fff; }
.visually-hidden-radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.visual-radio-option .check-icon { display: none; color: var(--bf-red); }
.visual-radio-option:has(input:checked) { border-color: var(--bf-red); background: #fff1f2; }
.visual-radio-option:has(input:checked) .check-icon { display: inline-block; }
.visual-radio-option:has(input[value="Sim"]:checked) {
  border-color: var(--bs-success);
  background: rgba(25, 135, 84, .1);
}
.visual-radio-option:has(input[value="Sim"]:checked) .check-icon {
  color: var(--bs-success);
}
.visual-radio-option:has(input[value="Sim"]:checked) span {
  color: #146c43;
}
.upload-box {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: .9rem 1rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: .2rem;
  cursor: pointer;
  min-height: 112px;
  justify-content: center;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.upload-box i { font-size: 1.35rem; color: var(--bf-blue); }
.upload-box span { font-size: .95rem; font-weight: 600; color: #1f2937; }
.upload-box .file-name { font-size: .82rem; color: var(--bf-muted); word-break: break-word; }
.upload-box:hover {
  border-color: var(--bf-blue);
  background: rgba(11, 118, 197, .04);
  box-shadow: 0 10px 24px rgba(11, 118, 197, .08);
  transform: translateY(-1px);
}
.upload-box.is-dragover {
  border-color: var(--bf-blue);
  background: rgba(11, 118, 197, .12);
  box-shadow: 0 14px 32px rgba(11, 118, 197, .16);
  transform: scale(1.01);
}
.link-voltar { color: var(--bf-muted); text-decoration: none; }
.link-voltar:hover { color: var(--bf-blue); }
.tipo-choice {display:grid; grid-template-columns: 1fr auto; align-items:center; gap:1rem; border:1px solid #dbe4f0; border-radius:16px; padding:1.2rem; background:#fff; min-height:138px; cursor:pointer; transition:.2s; text-align:center;}
.tipo-choice:hover {border-color:#bfd6ea; transform: translateY(-2px); box-shadow:0 10px 24px rgba(11,118,197,.08);}
.tipo-choice:has(input:checked) {
  border: 2px solid #198754;
  background: #f0fdf4;
  box-shadow: 0 14px 30px rgba(25, 135, 84, .16);
}
.tipo-title {font-size:1.15rem; font-weight:700;}
.tipo-desc {font-size:.92rem; color:var(--bf-muted);}
.tipo-content { display:flex; flex-direction:column; gap:.4rem; align-items:center; text-align:center; justify-content:center; justify-self:center; }
.tipo-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #edf5fc;
  color: var(--bf-blue);
  font-size: 2rem;
  margin-bottom: .35rem;
  box-shadow: inset 0 0 0 1px rgba(25, 135, 84, .12);
}
.tipo-check {width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:#fff; border:1px solid #dbe4f0; color:transparent; justify-self:end;}
.tipo-choice:has(input:checked) .tipo-check {color:#198754; border-color:#198754;}
.tipo-choice:has(input:checked) .tipo-icon {
  background: #d1fae5;
  color: #198754;
  box-shadow: inset 0 0 0 1px rgba(25, 135, 84, .22);
}
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  position: relative;
  padding: .45rem .15rem;
}
.stepper::before {
  content: "";
  position: absolute;
  left: calc(1.375rem + .15rem);
  right: calc(1.375rem + .15rem);
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(11,118,197,.18), rgba(11,118,197,.35));
  border-radius: 999px;
}
.step {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid #dbe4f0;
  background: #fff;
  color: var(--bf-muted);
  border-radius: 999px;
  padding: 0;
  font-weight: 700;
  line-height: 1;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}
.step.active { background: #fff; border-color: var(--bf-blue); color: var(--bf-blue); box-shadow: 0 0 0 3px rgba(11,118,197,.12); }
.form-step {display:none;}
.form-step.active {display:block;}
.brand-logo {max-width: 220px; width: 100%; height: auto;}
@media (max-width: 576px) { .brand-logo {max-width: 170px;} }
.cadastro-header .brand-logo { margin-bottom: 1.25rem; }
.cadastro-header h2 { margin-top: .35rem; }
.step.completed,
.step.trail-active {
  background: #1f5f8f;
  border-color: #1f5f8f;
  color: #ffffff;
}
.step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}
.step > * { position: relative; z-index: 1; }
.step.trail-active::before { opacity: 0; }
@media (max-width: 576px) {
  .stepper {
    gap: .25rem;
    padding: .35rem 0;
  }
  .stepper::before {
    left: calc(1.2rem / 2);
    right: calc(1.2rem / 2);
  }
  .step {
    width: 2.4rem;
    height: 2.4rem;
    font-size: .85rem;
  }
}
.social-options { display:flex; flex-wrap:wrap; gap:.5rem; }
.social-option { border:1px solid #dbe4f0; background:#fff; border-radius:999px; padding:.38rem .75rem; font-size:.9rem; color:#334155; }
.social-option.active { border-color: var(--bf-blue); background:#eaf4fc; color:var(--bf-blue); }
.social-list { display:flex; flex-direction:column; gap:.45rem; }
.social-item { display:flex; align-items:center; justify-content:space-between; border:1px solid #dbe4f0; border-radius:10px; padding:.5rem .7rem; background:#fff; }
.social-tag { font-weight:600; color:#1f5f8f; margin-right:.6rem; }
.social-remove { border:0; background:transparent; color:#b91c1c; }
.boot-loader {
  position: fixed;
  inset: 0;
  background: rgba(245, 247, 250, .96);
  backdrop-filter: blur(2px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .25s ease, visibility .25s ease;
}
.boot-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot-loader-card {
  min-width: 280px;
  text-align: center;
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
}
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15,23,42,.14);
  padding: .85rem 1rem;
  display: flex;
  gap: .8rem;
  align-items: center;
  justify-content: space-between;
}
.cookie-text { color: #334155; font-size: .95rem; }
.cookie-actions { display: flex; gap: .5rem; }
@media (max-width: 768px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { width: 100%; }
}
.success-badge {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(13,110,253,.14), rgba(25,135,84,.16));
  color: #198754;
  font-size: 2.1rem;
  box-shadow: inset 0 0 0 1px rgba(25,135,84,.12);
}
.protocol-box {
  border: 1px dashed #bfd6ea;
  background: #f8fbff;
  border-radius: 16px;
  padding: 1rem 1.1rem;
}
.protocol-box code {
  display: inline-block;
  padding: .7rem .9rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dbe4f0;
  color: #0f172a;
}
.footer-public { border-top: 1px solid #dbe4f0; background: #fff; }
.remove-idioma.icon-only {
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-size: 1.1rem;
  line-height: 1;
  padding: .4rem;
}
.remove-idioma.icon-only:disabled {
  opacity: .35;
  cursor: not-allowed;
}
