/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep:       #060b18;
  --bg-dark:       #0d1526;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.08);
  --border:        rgba(255,255,255,0.10);
  --border-focus:  rgba(63, 161, 16, 0.6);

  --primary:       #3FA110;
  --primary-dark:  #358b0d;
  --primary-light: #4ebf15;
  --accent:        #3FA110;
  --accent-dark:   #358b0d;
  --success:       #3FA110;
  --error:         #ef4444;
  --warning:       #f59e0b;

  --grad-hero:     linear-gradient(135deg, #0d2610 0%, #060b18 50%, #0d1526 100%);
  --grad-primary:  linear-gradient(135deg, #3FA110 0%, #4ebf15 100%);
  --grad-accent:   linear-gradient(135deg, #3FA110 0%, #4ebf15 100%);
  --grad-card:     linear-gradient(135deg, rgba(63, 161, 16, 0.12) 0%, rgba(78, 191, 21, 0.08) 100%);

  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --shadow-glow: 0 0 40px rgba(63, 161, 16, 0.25);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ─── Navbar ────────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(6,11,24,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar-brand {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: 'Exo 2', sans-serif; font-size: 1.35rem; font-weight: 700;
  color: var(--text-primary); text-decoration: none;
}
.navbar-brand .logo-icon {
  width: 38px; height: 38px;
  background: var(--grad-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}
.navbar-cta {
  background: var(--grad-accent);
  color: #fff; font-weight: 600; font-size: 0.875rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm); border: none; cursor: pointer;
  text-decoration: none; transition: var(--transition);
  box-shadow: 0 4px 15px rgba(245,158,11,0.3);
}
.navbar-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,158,11,0.45); }

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: 'Inter', sans-serif; font-weight: 600;
  border: none; cursor: pointer; text-decoration: none;
  transition: var(--transition); border-radius: var(--radius-md);
  white-space: nowrap;
}
.btn-hero {
  background: var(--grad-accent);
  color: #fff; font-size: 1.15rem;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(245,158,11,0.4);
  animation: pulse-glow 2.5s ease-in-out infinite;
}
.btn-hero:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 14px 40px rgba(245,158,11,0.55); }
.btn-primary {
  background: var(--grad-primary); color: #fff; font-size: 1rem;
  padding: 0.85rem 2rem; box-shadow: 0 4px 20px rgba(59,130,246,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59,130,246,0.5); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary); font-size: 0.9rem; padding: 0.7rem 1.5rem;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 8px 30px rgba(245,158,11,0.4); }
  50% { box-shadow: 0 8px 45px rgba(245,158,11,0.65), 0 0 0 8px rgba(245,158,11,0.08); }
}

/* ─── Glass Cards ───────────────────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.glass-card:hover { background: var(--bg-card-hover); border-color: rgba(99,130,246,0.2); }

/* ─── Form Elements ─────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
  font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.form-label span.required { color: var(--error); margin-left: 2px; }
.form-control {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif; font-size: 0.975rem;
  padding: 0.8rem 1rem;
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form-control:focus {
  border-color: var(--primary);
  background: rgba(59,130,246,0.08);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control {
  appearance: none;
  color: var(--text-primary);
  background-color: rgba(13, 21, 38, 0.96);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
    linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}
select.form-control:disabled {
  opacity: 0.7;
  color: var(--text-secondary);
  cursor: not-allowed;
}
select.form-control option {
  color: var(--text-primary);
  background: #0d1526;
}
.form-control.error { border-color: var(--error); box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }
.form-control.success { border-color: var(--success); }
.form-error { font-size: 0.8rem; color: var(--error); display: flex; align-items: center; gap: 4px; min-height: 18px; }

/* ─── Checkbox & Radio ──────────────────────────────────────────────────────── */
.check-group, .radio-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.check-item, .radio-item {
  display: flex; align-items: center; gap: 0.55rem;
  cursor: pointer; font-size: 0.925rem; color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.55rem 1rem;
  transition: var(--transition); user-select: none;
}
.check-item:hover, .radio-item:hover { border-color: var(--primary); color: var(--text-primary); background: rgba(59,130,246,0.08); }
.check-item input, .radio-item input { display: none; }
.check-item.selected, .radio-item.selected {
  border-color: var(--primary); color: var(--text-primary);
  background: rgba(59,130,246,0.15);
}
.check-icon, .radio-icon {
  width: 18px; height: 18px; border-radius: 4px;
  border: 2px solid var(--text-muted); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); font-size: 11px;
}
.radio-icon { border-radius: 50%; }
.check-item.selected .check-icon, .radio-item.selected .radio-icon {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* ─── Alerts ────────────────────────────────────────────────────────────────── */
.alert {
  padding: 1rem 1.25rem; border-radius: var(--radius-md);
  font-size: 0.925rem; display: flex; align-items: flex-start; gap: 0.75rem;
  animation: slideDown 0.3s ease;
}
.alert-success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: #34d399; }
.alert-error   { background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.3);  color: #f87171; }
.alert-info    { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.3); color: #60a5fa; }
.alert-warning { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3); color: #fbbf24; }
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }

/* ─── Badges ────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.65rem;
  border-radius: 100px; letter-spacing: 0.05em;
}
.badge-primary { background: rgba(59,130,246,0.18); color: var(--primary-light); border: 1px solid rgba(59,130,246,0.3); }
.badge-accent  { background: rgba(245,158,11,0.18); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }

/* ─── Section headings ──────────────────────────────────────────────────────── */
.section-tag {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary);
  display: flex; align-items: center; gap: 0.5rem;
}
.section-tag::before { content:''; display:block; width:20px; height:2px; background:var(--primary); border-radius:2px; }
.section-title {
  font-family: 'Exo 2', sans-serif; font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15;
  color: var(--text-primary);
}
.section-title .highlight {
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-desc { font-size: 1.05rem; color: var(--text-secondary); max-width: 560px; }

/* ─── Loading spinner ───────────────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Org modal ─────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-box {
  background: #0f1b30; border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2rem; max-width: 420px; width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), var(--shadow-glow);
  animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalIn { from { opacity:0; transform:scale(0.9); } to { opacity:1; transform:scale(1); } }
.modal-box h3 { font-family:'Exo 2',sans-serif; font-size:1.4rem; font-weight:700; margin-bottom:0.5rem; }
.modal-box p { color:var(--text-secondary); font-size:0.9rem; margin-bottom:1.25rem; }

/* ─── Divider ───────────────────────────────────────────────────────────────── */
.divider {
  height: 1px; background: var(--border);
  margin: 1.5rem 0;
}

/* ─── Page Background ───────────────────────────────────────────────────────── */
.page-bg {
  position: fixed; inset: 0; z-index: -1;
  background: 
    linear-gradient(rgba(6, 11, 24, 0.85), rgba(6, 11, 24, 0.95)),
    url('https://assets.dg5.com.br/sicredi-conecta/images/sicredi-conecta-feira-de-negocios-0017.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(10px); /* Desfoque mais intenso */
  transform: scale(1.15); /* Aumenta um pouco mais a escala para cobrir as bordas do blur */
}

/* ─── Utility ───────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); font-size: 0.875rem; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }
.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.w-full { width: 100%; } .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cred-container { max-width: 600px; }
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .navbar { padding: 0.85rem 1.25rem; }
  .navbar-brand { font-size: 1.15rem; }
  .navbar-brand img { width: 24px !important; height: 24px !important; }
  
  .check-group, .radio-group { gap: 0.5rem; }
  .check-item, .radio-item { font-size: 0.85rem; padding: 0.5rem 0.75rem; flex: 1 1 140px; }
  
  .section-title { font-size: 2rem; }
  .section-desc { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .navbar-brand span { display: none; } /* Hide text if too narrow, keeping icon */
  .btn-hero { font-size: 1rem; padding: 0.9rem 1.5rem; width: 100%; }
  .btn-primary { padding: 0.75rem 1.5rem; font-size: 0.95rem; }
  
  .glass-card { border-radius: var(--radius-md); }
  
  .footer { padding: 2rem 1rem; margin-top: 2rem; }
  .footer p { font-size: 0.8rem; }
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  padding: 3rem 1rem;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  background: rgba(0,0,0,0.2);
}
.footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.footer strong {
  color: var(--primary);
  font-weight: 700;
}
