:root{
  --bcra-navy:#14145f;
  --bcra-navy-deep:#0d0d44;
  --bcra-orange:#f4a03a;
  --bcra-orange-deep:#e88c1e;
  --bg:#f6f7fb;
  --card:#ffffff;
  --line:#d7ddeb;
  --line-strong:#c5ccdc;
  --text:#24324a;
  --muted:#7d879d;
  --info-bg:#edf7ff;
  --info-border:#c9e2f8;
  --info-text:#5c7fa8;
  --success:#2a6f34;
  --error:#b44141;
  --shadow:0 18px 36px rgba(17, 22, 70, 0.08);
}

*{box-sizing:border-box}

html,body{
  min-height:100%;
  margin:0;
  font-family:"Segoe UI", Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

body{
  display:flex;
  flex-direction:column;
}

.topbar{
  background:var(--bcra-navy);
  box-shadow:0 1px 0 rgba(7, 8, 36, 0.4);
}

.topbar-inner{
  max-width:920px;
  margin:0 auto;
  padding:12px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
}

.brand-mark{
  width:30px;
  height:30px;
  border:1px solid rgba(255,255,255,0.35);
  border-radius:50%;
  position:relative;
}

.brand-mark::before,
.brand-mark::after{
  content:"";
  position:absolute;
  inset:6px;
  border:1px solid rgba(255,255,255,0.22);
  border-radius:50%;
}

.brand-mark::after{
  inset:11px;
}

.brand-copy{
  display:flex;
  flex-direction:column;
  gap:1px;
  line-height:1.1;
}

.brand-kicker,
.brand-sub{
  font-size:0.55rem;
  letter-spacing:0.08em;
}

.brand-kicker{
  font-weight:700;
}

.section-title{
  margin:0;
  color:var(--bcra-orange);
  font-size:0.82rem;
  font-weight:700;
}

.page-shell{
  flex:1;
  padding:34px 24px 72px;
}

.form-card{
  max-width:720px;
  margin:0 auto;
  background:var(--card);
  border:1px solid #edf0f7;
  box-shadow:var(--shadow);
  border-radius:4px;
  padding:18px 18px 26px;
}

.info-banner{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:18px;
  padding:10px 12px;
  border-radius:4px;
  border:1px solid var(--info-border);
  background:var(--info-bg);
  color:var(--info-text);
  font-size:0.76rem;
}

.info-icon{
  width:18px;
  height:18px;
  flex:0 0 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#d7ecfd;
  color:#5d88b4;
  font-size:0.72rem;
  font-weight:700;
}

.card-heading{
  margin-bottom:16px;
}

.eyebrow{
  margin:0 0 6px;
  color:var(--muted);
  font-size:0.68rem;
  font-weight:700;
  letter-spacing:0.12em;
  text-transform:uppercase;
}

h1{
  margin:0;
  color:var(--bcra-navy);
  font-size:1.38rem;
  font-weight:700;
}

.intro{
  margin:8px 0 0;
  color:var(--muted);
  font-size:0.88rem;
  line-height:1.45;
}

.noscript{
  display:block;
  margin-bottom:18px;
  padding:10px 12px;
  border:1px solid #f2d38f;
  border-radius:4px;
  background:#fff8e8;
  color:#8c661f;
  font-size:0.78rem;
}

form{
  display:flex;
  flex-direction:column;
  gap:16px;
}

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

label{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:var(--muted);
  font-size:0.78rem;
}

.label-text{
  color:#7d869a;
  font-weight:600;
}

.full-width{
  width:100%;
}

.tipo-oficio-group{
  margin:0;
  padding:0;
  border:0;
}

.tipo-oficio-box{
  border:1px solid #f1dbbb;
  border-radius:6px;
  background:#fff;
  overflow:hidden;
}

.tipo-oficio-help{
  margin:0;
  padding:11px 12px;
  color:var(--bcra-orange);
  font-size:0.78rem;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  border-bottom:1px solid #f1dbbb;
  background:#fffcf7;
}

.tipo-oficio-options-row{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.tipo-oficio-option{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  min-height:48px;
  padding:12px;
  color:var(--text);
  cursor:pointer;
  transition:background-color .12s ease;
}

.tipo-oficio-option + .tipo-oficio-option{
  border-left:1px solid #f1dbbb;
}

.tipo-oficio-option input[type="radio"]{
  width:14px;
  height:14px;
  margin:0;
  accent-color:var(--bcra-navy);
}

.tipo-oficio-box:focus-within{
  border-color:#f1b462;
  box-shadow:0 0 0 3px rgba(244, 160, 58, 0.12);
}

.tipo-oficio-option:has(input[type="radio"]:checked){
  background:#fdf7ee;
}

input[type="email"],
input[type="file"],
select,
button{
  width:100%;
  font:inherit;
}

input[type="email"],
input[type="file"],
select{
  min-height:42px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:4px;
  background:#fff;
  color:var(--text);
  outline:none;
  transition:border-color .12s ease, box-shadow .12s ease;
}

input[type="email"]::placeholder{
  color:#b0b6c5;
}

input[type="email"]:focus,
input[type="file"]:focus,
select:focus{
  border-color:#f1b462;
  box-shadow:0 0 0 3px rgba(244, 160, 58, 0.12);
}

select{
  appearance:none;
  background-image:
    linear-gradient(45deg, transparent 50%, #7e879a 50%),
    linear-gradient(135deg, #7e879a 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
}

.section-divider{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--bcra-orange);
  font-size:0.7rem;
  font-weight:700;
  letter-spacing:0.1em;
  text-transform:uppercase;
}

.section-divider::before,
.section-divider::after{
  content:"";
  flex:1;
  height:1px;
  background:#f1dbbb;
}

.help{
  margin:0;
  color:var(--muted);
  font-size:0.72rem;
  line-height:1.35;
}

.file-help{
  color:var(--info-text);
}

input[type="file"]{
  padding:6px 8px;
  color:#7d879d;
}

input[type="file"]::file-selector-button{
  margin-right:12px;
  border:1px solid #adb9d8;
  border-radius:3px;
  background:#fff;
  color:var(--bcra-navy);
  padding:8px 14px;
  font-size:0.78rem;
  font-weight:700;
  cursor:pointer;
}

input[type="file"]::file-selector-button:hover{
  background:#f5f7fd;
}

label.checkbox{
  flex-direction:row;
  align-items:center;
  gap:10px;
  padding-top:4px;
  font-size:0.8rem;
  color:#5d6780;
}

.checkbox-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.checkbox-row .checkbox{
  flex:0 1 auto;
}

.checkbox-terms{
  flex:1 1 0;
  max-width:420px;
}

input[type="checkbox"]{
  width:14px;
  height:14px;
  margin:0;
  accent-color:var(--bcra-navy);
}

#status{
  min-height:1.2rem;
  font-size:0.82rem;
  font-weight:600;
}

#status.error{
  color:var(--error);
}

#status.success{
  color:var(--success);
}

.form-actions{
  display:flex;
  justify-content:flex-end;
}

button[type="submit"]{
  min-width:192px;
  border:none;
  border-radius:4px;
  padding:12px 18px;
  background:linear-gradient(180deg, var(--bcra-orange), var(--bcra-orange-deep));
  color:#fff;
  font-size:0.86rem;
  font-weight:700;
  letter-spacing:0.02em;
  cursor:pointer;
  box-shadow:0 10px 18px rgba(244, 160, 58, 0.24);
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

button[type="submit"]:hover:not([disabled]){
  transform:translateY(-1px);
  box-shadow:0 14px 24px rgba(244, 160, 58, 0.28);
  filter:saturate(1.02);
}

button[disabled]{
  cursor:not-allowed;
  background:#d7dbe5;
  box-shadow:none;
  color:#7b8498;
}

body.modal-open{
  overflow:hidden;
}

.modal-overlay{
  position:fixed;
  inset:0;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(15, 22, 58, 0.54);
}

.modal-overlay[hidden]{
  display:none;
}

.modal-card{
  width:min(720px, 100%);
  max-height:min(85vh, 760px);
  overflow:auto;
  padding:24px 24px 20px;
  border-radius:6px;
  background:var(--card);
  box-shadow:0 28px 60px rgba(17, 22, 70, 0.22);
}

.modal-card h2{
  margin:0 0 16px;
  color:var(--bcra-navy);
  font-size:1.1rem;
}

.modal-body{
  color:#42526b;
  font-size:0.84rem;
  line-height:1.55;
}

.modal-body p{
  margin:0 0 14px;
}

.modal-body p:last-child{
  margin-bottom:0;
}

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

.modal-actions button{
  width:auto;
  min-width:120px;
}

.secondary-button{
  border:1px solid var(--line-strong);
  border-radius:4px;
  padding:12px 18px;
  background:#fff;
  color:var(--bcra-navy);
  font-size:0.84rem;
  font-weight:700;
  cursor:pointer;
  box-shadow:none;
}

.secondary-button:hover{
  background:#f7f9fd;
}

.primary-button{
  border:none;
  border-radius:4px;
  padding:12px 18px;
  background:linear-gradient(180deg, var(--bcra-orange), var(--bcra-orange-deep));
  color:#fff;
  font-size:0.84rem;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 10px 18px rgba(244, 160, 58, 0.24);
}

.primary-button:hover{
  filter:saturate(1.02);
}

.footer{
  background:var(--bcra-navy);
  color:#fff;
}

.footer-inner{
  max-width:920px;
  margin:0 auto;
  padding:16px 24px 18px;
  text-align:center;
  font-size:0.64rem;
  line-height:1.7;
}

.footer-inner p{
  margin:0;
}

@media (max-width:760px){
  .topbar-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .page-shell{
    padding:22px 14px 48px;
  }

  .form-card{
    padding:16px 14px 22px;
  }

  .field-grid,
  .file-grid{
    grid-template-columns:1fr;
  }

  .checkbox-row{
    flex-direction:column;
    gap:8px;
  }

  .checkbox-terms{
    max-width:none;
  }

  .form-actions{
    justify-content:stretch;
  }

  button[type="submit"]{
    min-width:0;
  }

  .modal-overlay{
    padding:14px;
  }

  .modal-card{
    padding:18px 16px 16px;
  }

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

  .modal-actions button{
    width:100%;
  }
}
