/* =============================================================
 * Navalshore 2026 - Inscricao
 * Estilo limpo, fundo branco, mobile-first (Bootstrap 5)
 * ============================================================= */

:root {
  --ns-azul: #0b3d91;
  --ns-azul-claro: #1565c0;
  --ns-cinza: #6c757d;
  --ns-bg: #ffffff;
}

html, body { height: 100%; }
body {
  background: var(--ns-bg);
  color: #212529;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

/* ---- Banner ---- */
.ns-banner {
  width: 100%;
  display: block;
}
.ns-banner img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

/* ---- Navbar ---- */
.ns-navbar {
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
}
.ns-navbar img.logo { height: 40px; width: auto; }

/* ---- Card do formulario ---- */
.ns-card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(11, 61, 145, 0.07);
}
.ns-card .card-header {
  background: #ffffff;
  border-bottom: 2px solid #eef2f7;
  border-radius: 14px 14px 0 0 !important;
}

/* ---- Passos / Steps ---- */
.ns-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.ns-step {
  flex: 1 1 0;
  text-align: center;
  position: relative;
  font-size: .8rem;
  color: var(--ns-cinza);
  white-space: nowrap;
  padding: 0 .25rem;
}
.ns-step .ns-step-num {
  width: 32px; height: 32px;
  line-height: 30px;
  border-radius: 50%;
  border: 2px solid #dce3ec;
  background: #fff;
  color: var(--ns-cinza);
  font-weight: 700;
  margin: 0 auto .35rem;
  display: block;
}
.ns-step.active .ns-step-num {
  background: var(--ns-azul);
  border-color: var(--ns-azul);
  color: #fff;
}
.ns-step.done .ns-step-num {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
}
.ns-step.active { color: var(--ns-azul); font-weight: 600; }

/* ---- Form controls ---- */
.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
.form-label .req { color: #dc3545; }
.form-text { font-size: .78rem; }
.ns-tel-ddd { max-width: 90px; }

/* ---- Validacao visual (CNPJ) ---- */
.form-control.is-valid { border-color: #198754 !important; background-image: none; }
.form-control.is-invalid { border-color: #dc3545 !important; background-image: none; }
.valid-feedback, .invalid-feedback { display: none; font-size: .78rem; margin-top: .25rem; }
.valid-feedback { color: #198754; }
.invalid-feedback { color: #dc3545; }
.form-control.is-valid ~ .valid-feedback { display: block; }
.form-control.is-invalid ~ .invalid-feedback { display: block; }

/* ---- Checkboxes em grade ---- */
.ns-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .35rem .75rem;
}
.ns-check-grid .form-check { margin-bottom: 0; }

/* ---- Alertas de seguranca ---- */
.ns-security {
  background: #f1f8ff;
  border: 1px solid #cfe8ff;
  border-radius: 10px;
}
.ns-security .ns-ico { color: var(--ns-azul-claro); }

/* ---- Botoes ---- */
.btn-primary {
  background: var(--ns-azul);
  border-color: var(--ns-azul);
}
.btn-primary:hover { background: var(--ns-azul-claro); border-color: var(--ns-azul-claro); }
.btn-outline-secondary { color: var(--ns-cinza); }

/* ---- PIX ---- */
.ns-pix-box {
  background: #f8f9fa;
  border: 1px dashed #c7ccd1;
  border-radius: 12px;
}
.ns-pix-box img { max-width: 240px; width: 100%; }

/* ---- Resumo confirmacao ---- */
.ns-confirm-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; margin: 0 auto;
}

/* ---- Footer (fundo branco - a logo e um JPG de fundo branco) ---- */
.ns-footer {
  flex-shrink: 0;
  background: #ffffff;
  color: #212529;
  padding: 1.25rem 0 1rem;
  margin-top: 2.5rem;
  border-top: 1px solid #e9ecef;
}
.ns-footer-logo-wrap {
  text-align: center;
  margin-bottom: .5rem;
}
/* Logo do rodape: fluída - ocupa a largura do rodape, nunca maior que o
   tamanho natural (sem ampliar), sem distorcao. */
.ns-footer .ns-footer-logo {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.ns-footer .ns-footer-msg {
  font-size: .82rem;
  color: #6c757d;
}

/* ---- Small screens ---- */
@media (max-width: 575.98px) {
  .ns-step { font-size: .7rem; }
  .ns-step .ns-step-num { width: 26px; height: 26px; line-height: 24px; }
  .ns-check-grid { grid-template-columns: 1fr; }
}
