
@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; }
.upload-box { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 1.25rem; display: flex; flex-direction: column; text-align: center; gap: .25rem; cursor: pointer; }
.upload-box i { font-size: 1.5rem; color: var(--bf-blue); }
.link-voltar { color: var(--bf-muted); text-decoration: none; }
.link-voltar:hover { color: var(--bf-blue); }
.tipo-choice {display:flex; align-items:center; justify-content:space-between; gap:1rem; border:1px solid #dbe4f0; border-radius:16px; padding:1.2rem; background:#fff; min-height:138px; cursor:pointer; transition:.2s;}
.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 var(--bf-red);
  background: #ffe8eb;
  box-shadow: 0 14px 30px rgba(225, 25, 45, .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; }
.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(11, 118, 197, .12);
}
.tipo-check {width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:#fff; border:1px solid #dbe4f0; color:transparent;}
.tipo-choice:has(input:checked) .tipo-check {color:var(--bf-red); border-color:var(--bf-red);}
.tipo-choice:has(input:checked) .tipo-icon {
  background: #ffd8df;
  color: var(--bf-red);
  box-shadow: inset 0 0 0 1px rgba(225, 25, 45, .22);
}
.stepper {display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap:.5rem;}
.step {border:1px solid #dbe4f0; background:#fff; color:var(--bf-muted); border-radius:12px; padding:.7rem .8rem; font-weight:600;}
.step.active {background:#eaf4fc; border-color:var(--bf-blue); color:var(--bf-blue);}
.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 {
  background: #f0f9ff;
  border-color: #7db8e2;
  color: #2b6e9e;
}
.step {
  position: relative;
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,118,197,.10), rgba(11,118,197,.28));
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 0;
}
.step > * { position: relative; z-index: 1; }
.step.trail-active {
  border-color: #79b7e3;
  color: #1f5f8f;
  background: #f7fbff;
}
.step.trail-active::before {
  opacity: var(--step-intensity, .35);
}
.step.active {
  border-color: var(--bf-blue);
  color: #fff;
  background: linear-gradient(90deg, #0B76C5 0%, #095FA0 100%);
}
.step.active::before { opacity: 0; }
.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%; }
}
.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;
}
