/* ====== INSTITUIÇÃO - FINAL CORRIGIDO - ICONES +6mm ====== */
#instituicao { padding: 20px; }
#instituicao .titulo { display:flex; align-items:center; justify-content:space-between; padding:0 10px 0 20px; margin-bottom:20px; flex-wrap:wrap; gap:12px; }
#instituicao .titulo h2 { display:flex; align-items:center; gap:12px; font-size:24px; font-weight:700; color:#2f0375; margin:0; }
#instituicao .titulo h2 i { color:#7163ba; font-size:24px; }
#instituicao .subtitulo { font-size:13px; color:#6b7280; margin:4px 0 0 36px; }
#instituicao .area-resultados { display:flex; justify-content:center; }

/* CARD TOQUE ESPECIAL */
#instituicao .card-instituicao { background:#fff; border-radius:3px; border:1px solid #e2e8f0; box-shadow:0 2px 12px rgba(0,0,0,0.06); width:100%; max-width:800px; margin:0 auto; overflow:hidden; transition:all .25s ease; }
#instituicao .card-instituicao:hover { transform:translateY(-3px); box-shadow:0 12px 30px rgba(99,89,150,0.12); }
.card-inst-header { background:linear-gradient(135deg,#ffffff 0%,#f8fafc 100%); color:#1e293b; padding:26px 20px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:10px; border-bottom:1px solid #f1f5f9; position:relative; }
.card-inst-header::after{content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background:linear-gradient(90deg,#635996,#7163ba,#10b981);}
.card-inst-header img { width:88px; height:88px; border-radius:50%; background:#fff; padding:3px; object-fit:cover; border:3px solid #ede9fe; box-shadow:0 4px 12px rgba(0,0,0,.1); }
.card-inst-header h3 { font-size:19px; font-weight:800; margin:0; color:#1e293b; line-height:1.3; }
.card-inst-header .lema-inst { font-size:11px; color:#635996; font-weight:700; font-style:italic; background:#ede9fe; padding:3px 10px; border-radius:12px; }
.card-inst-header p { font-size:10px; color:#64748b; margin:0; font-weight:600; text-transform:uppercase; letter-spacing:.4px; }
.card-inst-body { padding:0 20px; }
.card-inst-linha { display:flex; align-items:flex-start; gap:12px; font-size:13px; color:#374151; padding:13px 0; border-bottom:1px dashed #f1f5f9; }
.card-inst-linha:last-child { border-bottom:none; }
.card-inst-linha i { color:#635996; font-size:14px; width:20px; text-align:center; margin-top:2px; flex-shrink:0; }
.card-inst-linha span.label-inst { font-weight:800; color:#475569; min-width:110px; font-size:9px; text-transform:uppercase; letter-spacing:.3px; }
.card-inst-linha .valor { flex:1; color:#111827; font-size:12px; word-break:break-word; line-height:1.4; }
.card-inst-footer { display:flex; justify-content:space-between; align-items:center; padding:12px 20px; background:#f8fafc; border-top:1px solid #f1f5f9; }

/* MODAL - HEADER COR ORIGINAL #635996 */
.modal-matricula { position:fixed; inset:0; background:rgba(0,0,0,.45); backdrop-filter:blur(3px); display:none; align-items:center; justify-content:center; z-index:10001; }
.modal-matricula.show { display:flex; }
.modal-matricula .modal-content { background:#fff; border-radius:12px!important; width:94%; max-width:780px; max-height:92vh; display:flex; flex-direction:column; box-shadow:0 10px 40px rgba(0,0,0,.28); position:absolute; overflow:hidden; border:1px solid #94a3b8; }
.modal-drag-header { cursor:grab!important; background:#635996!important; color:#fff!important; padding:11px 14px; border-radius:12px 12px 0 0; display:flex; justify-content:space-between; align-items:center; user-select:none; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.5px; }
.modal-drag-header:active { cursor:grabbing!important; }
.modal-close-nota { width:28px; height:28px; border-radius:50%; border:1px solid rgba(255,255,255,.25); background:rgba(255,255,255,.12); color:#fff; font-size:18px; line-height:1; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all .2s ease; }
.modal-close-nota:hover { background:#ef4444; border-color:#ef4444; transform:rotate(90deg); }
.modal-body { padding:16px; overflow:auto; background:#fff; }
.modal-footer { padding:12px 16px; background:#f8fafc; border-top:1px solid #e2e8f0; display:flex; justify-content:space-between; align-items:center; margin:16px -16px -16px -16px; }
.form-section-title{ font-size:10px; font-weight:800; text-transform:uppercase; color:#635996; background:#ede9fe; padding:6px 10px; border-radius:3px; margin:18px 0 12px 0; display:flex; gap:6px; align-items:center; }
.form-section-title:first-of-type{ margin-top:0; }

/* INPUTS - FIX ICONES SUBIDOS 6MM */
.form-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media(max-width:650px){ .form-grid-2 { grid-template-columns:1fr; } }
.form-group { position:relative; margin-bottom:14px; }
.form-group label { display:block; font-size:10px; font-weight:800; text-transform:uppercase; color:#475569; margin-bottom:5px; letter-spacing:0.3px; }
/* INPUTS - ICONES TRAVADOS EM PIXEL - SUBIDOS 6mm */
.input-icon-wrap{ position:relative; display:block; }
.input-icon-wrap input, .input-icon-wrap textarea { 
width:100%; 
padding:11px 12px 11px 40px!important; 
border:1px solid #cbd5e1; 
border-radius:3px; 
font-size:12px; 
background:#fff; 
outline:none; 
font-family:inherit; 
line-height:1.2; 
height:42px;
}
.input-icon-wrap textarea { height:auto; min-height:70px; padding-top:12px!important; }

/* CORREÇÃO DEFINITIVA - SUBIU 6mm */
.icon-input { 
position:absolute!important; 
left:12px!important; 
top:15px!important; /* travado no topo - antes estava 50% por isso descia */
transform:none!important; 
color:#635996; 
font-size:13px; 
pointer-events:none; 
z-index:2; 
line-height:1;
}
.textarea-wrap .icon-input{ top:12px!important; }
/* LOGO CIRCULO ELEGANTE */
.upload-card-nota { width:120px; height:120px; border:2px dashed #94a3b8; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center; cursor:pointer; background:#f8fafc; transition:.25s; position:relative; overflow:hidden; }
.upload-card-nota:hover { border-color:#635996; background:#ede9fe; transform:translateY(-2px) scale(1.02); box-shadow:0 6px 18px rgba(99,89,150,0.18); }
.upload-card-nota.has-logo { border-style:solid; border-color:#10b981; background:#f0fdf4; }
.upload-card-nota .preview { display:flex; flex-direction:column; align-items:center; justify-content:center; width:100%; height:100%; text-align:center; padding:8px; }
.upload-card-nota .preview img { width:90px; height:90px; border-radius:50%; object-fit:cover; border:3px solid #fff; box-shadow:0 3px 10px rgba(0,0,0,.18); }
.upload-card-nota .preview i { font-size:26px; color:#94a3b8; margin-bottom:6px; }
.upload-card-nota .preview span.label { font-size:8px; font-weight:800; text-transform:uppercase; color:#475569; line-height:1.2; }
.upload-card-nota .preview small { font-size:7px; color:#64748b; margin-top:4px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; border:none; border-radius:3px; font-weight:700; cursor:pointer; transition:all .2s ease; }
.btn-sm { height:36px; padding:0 16px; font-size:11px; }
.btn-primary { background:#635996; color:#fff; }
.btn-primary:hover { background:#4b3f8a; transform:translateY(-1px); }
.empty-state-ano { text-align:center; padding:50px 20px; color:#6b7280; border:1px dashed #cbd5e1; border-radius:3px; background:#fff; max-width:800px; margin:0 auto; }

/* TOASTS Z-INDEX SUPERIOR AO MODAL */
#toastStackInst { position:fixed; top:16px; right:16px; z-index:10060!important; display:flex; flex-direction:column; gap:8px; pointer-events:none; }
.toast-inst { padding:10px 14px; border-radius:3px; font-size:11px; font-weight:700; color:#fff; box-shadow:0 6px 18px rgba(0,0,0,.25); display:flex; gap:8px; align-items:center; pointer-events:auto; animation:slideInToast .3s ease; border:1px solid rgba(0,0,0,.1); }
.toast-inst.success{ background:#1e293b; } .toast-inst.error{ background:#991b1b; } .toast-inst.info{ background:#635996; }
@keyframes slideInToast{ from{ transform:translateX(100%); opacity:0; } to{ transform:translateX(0); opacity:1; } }