/* ISPS - Instituto Superior Politécnico Sinodal */
/* Design System & Main Stylesheet - Multi-Step, Cloudinary, Live Statistics & Fully Responsive Layout */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  --primary-navy: #1a2b4c;
  --primary-blue: #1e3a8a;
  --accent-blue: #0284c7;
  --accent-teal: #0d9488;
  --text-dark: #222222;
  --text-muted: #666666;
  --text-light: #ffffff;

  --border-light: #e2e8f0;
  --topbar-bg: #ffffff;
  --header-bg: #ffffff;

  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  background-color: #f8fafc;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 1. TOP MINI BAR */
.top-bar {
  background-color: var(--topbar-bg);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.825rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
}

.top-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-contacts {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-contact-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
}

.top-contact-item:hover {
  color: var(--primary-blue);
}

.top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.top-action-btn {
  padding: 0.5rem 1.2rem;
  border-left: 1px solid var(--border-light);
  color: #555555;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.top-action-btn:hover {
  color: var(--primary-blue);
  background-color: #f3f4f6;
}

.top-action-btn.highlight {
  background-color: var(--primary-navy);
  color: white;
}

.top-action-btn.highlight:hover {
  background-color: var(--accent-blue);
}

/* 2. MAIN HEADER & NAVBAR */
.main-header {
  background-color: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.university-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.crest-icon {
  width: 52px;
  height: 52px;
  border: 2px solid var(--primary-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary-navy);
  background: #f8fafc;
}

.logo-text h1 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-navy);
  text-transform: uppercase;
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #444444;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-blue);
}

/* 3. HERO SLIDER BANNER */
.hero-slider {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 520px;
  overflow: hidden;
  background-color: #111111;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}

.hero-overlay-dark {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.2) 100%);
}

.hero-content-wrapper {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: center; z-index: 10;
}

.hero-container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-textbox {
  max-width: 580px;
  color: white;
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-subtext {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 2rem;
}

.btn-pill-outline {
  display: inline-block;
  padding: 0.95rem 2.25rem;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: var(--transition);
  background: rgba(255,255,255,0.05);
}

.btn-pill-outline:hover {
  background-color: #ffffff;
  color: var(--primary-navy);
}

.btn-pill-filled {
  display: inline-block;
  padding: 0.95rem 2.25rem;
  border: 2px solid var(--primary-blue);
  border-radius: 999px;
  background-color: var(--primary-blue);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: var(--transition);
  margin-left: 1rem;
}

.btn-pill-filled:hover {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
}

/* EVIDÊNCIA DO CARTAZ DO EXAME DE ACESSO NA HOME */
.hero-flex-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  width: 100%;
}

.hero-poster-box {
  position: relative;
  max-width: 380px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 3px rgba(245, 158, 11, 0.4);
  background: #1e293b;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
  cursor: pointer;
}

.hero-poster-box:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 0 4px rgba(245, 158, 11, 0.8);
}

.poster-badge-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #1e3a8a, #0d9488);
  color: white;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.4rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
}

.hero-poster-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
  margin-top: 1.8rem;
  background: white;
}

.poster-hover-zoom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.85);
  color: #f59e0b;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem;
  backdrop-filter: blur(4px);
}

/* 4. SECCÃO DE ESTATÍSTICAS EM TEMPO REAL E ANIMAÇÃO DE NÚMEROS */
.stats-section {
  background: #ffffff;
  padding: 4rem 2rem;
  border-bottom: 1px solid var(--border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.1);
}

.stat-card.total-highlight {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
  color: white;
  border: none;
}

.stat-card.total-highlight .stat-course-title {
  color: #e2e8f0;
}

.stat-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

/* Animação do Número a Empurrar o Outro (Push Roll Animation) */
.counter-box {
  height: 3.2rem;
  overflow: hidden;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0;
}

.counter-number {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary-navy);
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card.total-highlight .counter-number {
  color: #ffffff;
}

.counter-number.number-push-anim {
  animation: numberPushUp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes numberPushUp {
  0% {
    transform: translateY(100%);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-15%);
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

.live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  margin-left: 0.4rem;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.stat-course-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* SECTION & PAGE CONTAINERS */
.main-wrapper {
  max-width: 1100px;
  width: 92%;
  margin: 3rem auto;
  padding-bottom: 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* MULTI-STEP PROGRESS BAR */
.step-wizard-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.step-indicator-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  background: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.step-indicator-item.active {
  border-color: var(--primary-navy);
  background: var(--primary-navy);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(26, 43, 76, 0.2);
}

.step-indicator-item.completed {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  background: #f0fdf4;
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.step-indicator-item.active .step-badge {
  background: #ffffff;
  color: var(--primary-navy);
}

.step-divider-line {
  width: 50px;
  height: 2px;
  background: var(--border-light);
}

/* TABS SELECTION */
.tab-selector {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid var(--border-light);
  background: white;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.tab-btn:hover, .tab-btn.active {
  border-color: var(--primary-navy);
  color: var(--primary-navy);
  background: #f1f5f9;
}

.tab-btn.active {
  background: var(--primary-navy);
  color: white;
}

/* FORM CARD STYLING */
.form-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  border: 1px solid var(--border-light);
}

.form-header {
  border-bottom: 2px dashed var(--border-light);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.dept-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.badge-saude { background: #e6fffa; color: #0d9488; border: 1px solid #99f6e4; }
.badge-sociais { background: #e0f2fe; color: #0284c7; border: 1px solid #7dd3fc; }

.form-section {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  background: #fafafa;
}

.form-section legend {
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary-navy);
  padding: 0 0.75rem;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.span-2 { grid-column: span 2; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #334155;
}

.form-group label .required {
  color: #ef4444;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  height: 44px;
  padding: 0.65rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.925rem;
  font-family: 'Montserrat', sans-serif;
  color: #1e293b;
  transition: var(--transition);
  background-color: #ffffff;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

textarea {
  height: auto;
  min-height: 110px;
  padding: 0.8rem 1rem;
  resize: vertical;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  background-color: #ffffff;
}

.search-input-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.search-input-group input {
  flex: 1;
  height: 48px;
  font-size: 0.95rem;
}

.search-input-group button {
  height: 48px;
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-group {
  display: flex;
  gap: 1.25rem;
  padding-top: 0.4rem;
  flex-wrap: wrap;
}

.radio-label, .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

/* UPLOAD DE DOCUMENTOS */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.upload-box {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  background: #ffffff;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.upload-box:hover {
  border-color: var(--primary-blue);
  background: #f8fafc;
}

.upload-box.has-file {
  border-color: var(--accent-teal);
  background: #f0fdf4;
}

.upload-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.upload-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-navy);
  margin-bottom: 0.25rem;
}

.upload-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.upload-input {
  display: none;
}

.btn-choose-file {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.file-preview-info {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-teal);
  word-break: break-all;
}

.total-size-tracker {
  background: #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ESTILOS DA FICHA DE INSCRIÇÃO OFICIAL ISPS (CONFORME MODELO IMPRESSO FISICO) */
.official-header-grid {
  display: grid;
  grid-template-columns: 2.2fr 2.5fr 1.3fr;
  border: 1.5px solid #1e293b;
  margin-bottom: 1.5rem;
  background: #ffffff;
}

.header-box-institution {
  border-right: 1.5px solid #1e293b;
  padding: 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-logo-img {
  height: 52px;
  width: auto;
  margin-bottom: 0.3rem;
  object-fit: contain;
}

.inst-title {
  font-size: 0.725rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.inst-acronym {
  font-size: 1.1rem;
  font-weight: 900;
  color: #1e3a8a;
  margin: 0.1rem 0;
}

.inst-motto {
  font-size: 0.675rem;
  color: #475569;
  margin: 0;
  font-weight: 700;
}

.header-box-title {
  border-right: 1.5px solid #1e293b;
  padding: 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ficha-main-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 0.4rem 0;
}

.ficha-num-row {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.3rem;
}

.ficha-number-text {
  color: #0284c7;
  font-size: 1.1rem;
}

.ficha-submotto {
  font-size: 0.725rem;
  color: #64748b;
  margin: 0;
  font-weight: 600;
}

.header-box-regime {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}

.regime-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 0.2rem 0;
  text-transform: uppercase;
}

.regime-option {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.checkbox-square {
  display: inline-block;
  min-width: 22px;
  height: 22px;
  border: 2px solid #1e293b;
  text-align: center;
  line-height: 18px;
  font-weight: 900;
  font-size: 0.85rem;
  color: #0f172a;
  background: #ffffff;
}

.checkbox-square.checked {
  background: #1e293b;
  color: #ffffff;
}

.pdf-dept-box {
  border: 1.5px solid #1e293b;
  margin-bottom: 1.5rem;
  background: #ffffff;
}

.pdf-subsection-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #1e3a8a;
  text-transform: uppercase;
  margin: 1.25rem 0 0.5rem 0;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dept-box-title {
  background: #f1f5f9;
  border-bottom: 1.5px solid #1e293b;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  text-transform: uppercase;
}

.dept-especialidades-list {
  padding: 1rem 1.25rem;
}

.especialidades-header {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.6rem 0;
}

.especialidade-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed #e2e8f0;
}

.especialidade-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.official-signatures-wrapper {
  margin-top: 2.5rem;
  border-top: 1.5px solid #1e293b;
  padding-top: 1.5rem;
}

.signatures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 1.5rem;
}

.signature-column {
  text-align: center;
}

.signature-line {
  border-bottom: 1.5px solid #1e293b;
  margin-bottom: 0.5rem;
  height: 35px;
}

.signature-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.official-location-date {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  padding-top: 0.5rem;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 5mm 8mm;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .no-print, header, footer, .top-bar, .main-header, .action-toolbar, .search-section .section-header, #searchForm {
    display: none !important;
  }

  .print-page-break {
    page-break-before: always !important;
    break-before: page !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    clear: both !important;
  }

  .pdf-sheet, #searchResultBox, #searchResultContent {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
  }

  .official-header-grid {
    border-color: #000000 !important;
    margin-bottom: 0.35rem !important;
    padding-bottom: 0.25rem !important;
  }

  .header-logo-img {
    height: 42px !important;
  }

  .inst-title {
    font-size: 0.8rem !important;
  }

  .ficha-main-title {
    font-size: 1rem !important;
  }

  .pdf-dept-box {
    border-color: #000000 !important;
    margin-bottom: 0.35rem !important;
    padding: 0.35rem 0.6rem !important;
  }

  .dept-box-title {
    border-color: #000000 !important;
    background: #f1f5f9 !important;
    padding: 0.2rem 0.5rem !important;
    font-size: 0.78rem !important;
  }

  .especialidades-header {
    font-size: 0.72rem !important;
    margin-bottom: 0.15rem !important;
  }

  .especialidade-row {
    font-size: 0.72rem !important;
    margin-bottom: 0.1rem !important;
  }

  .checkbox-square {
    border-color: #000000 !important;
  }

  .pdf-section-title {
    margin: 0.35rem 0 0.2rem !important;
    padding: 0.2rem 0.5rem !important;
    font-size: 0.75rem !important;
  }

  .pdf-subsection-title {
    margin: 0.25rem 0 0.15rem !important;
    font-size: 0.7rem !important;
  }

  .pdf-data-grid {
    gap: 0.25rem !important;
    margin-bottom: 0.2rem !important;
  }

  .pdf-data-item {
    padding: 0.2rem 0.45rem !important;
    border: 1px solid #64748b !important;
    border-radius: 4px !important;
  }

  .pdf-data-item label {
    font-size: 0.58rem !important;
    margin-bottom: 0.05rem !important;
  }

  .pdf-data-item span,
  .pdf-data-item strong {
    font-size: 0.78rem !important;
    line-height: 1.1 !important;
  }

  .official-signatures-wrapper {
    margin-top: 0.5rem !important;
    padding-top: 0.35rem !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .signatures-grid {
    margin-bottom: 0.4rem !important;
  }

  .signature-line {
    border-color: #000000 !important;
    margin-bottom: 0.2rem !important;
  }

  .signature-label {
    font-size: 0.72rem !important;
  }

  .official-location-date {
    font-size: 0.75rem !important;
    padding-top: 0.15rem !important;
  }
}

/* CONTAINER RESPONSIVO DE TABELAS */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
  border-radius: 8px;
}

/* BUTTONS & FOOTER */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  padding: 0.9rem 2rem;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-primary { background: var(--accent-teal); color: white; }
.btn-primary:hover { background: #0f766e; }

.btn-secondary { background: var(--primary-navy); color: white; }
.btn-secondary:hover { background: #111827; }

.btn-outline { background: transparent; border: 2px solid var(--border-light); color: var(--text-dark); }
.btn-outline:hover { background: #f1f5f9; }

/* MODAL */
.alert-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; opacity: 0; visibility: hidden;
  transition: var(--transition);
  padding: 1rem;
}

.alert-overlay.show { opacity: 1; visibility: visible; }
.alert-box { background: white; padding: 2.5rem; border-radius: 16px; text-align: center; max-width: 500px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }

.alert-icon.success { width: 50px; height: 50px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 1.8rem; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; }
.alert-icon.error { width: 50px; height: 50px; border-radius: 50%; background: #fee2e2; color: #dc2626; font-size: 1.8rem; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; }

.reg-code { background: #f1f5f9; padding: 0.6rem 1.2rem; border-radius: 6px; font-weight: 800; color: var(--primary-navy); margin: 1rem 0; font-size: 1.1rem; }

footer {
  text-align: center;
  padding: 2rem;
  background: #111827;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* MEDIA QUERIES RESPONSIVAS PARA TODO O DISPOSITIVO MÓVEL */
@media (max-width: 1024px) {
  .hero-headline { font-size: 2.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .upload-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-container { flex-direction: column; gap: 1rem; text-align: center; }
  .main-nav { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .top-bar-container { flex-direction: column; gap: 0.5rem; text-align: center; }
  .top-contacts, .top-actions { justify-content: center; }
  .hero-slider { height: 60vh; min-height: 400px; }
  .hero-headline { font-size: 1.9rem; }
  .hero-subtext { font-size: 0.95rem; }
  .btn-pill-filled { margin-left: 0; margin-top: 0.75rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1 !important; }
  .stats-grid { grid-template-columns: 1fr; }
  .upload-grid { grid-template-columns: 1fr; }
  .form-card { padding: 1.5rem; }
  .step-divider-line { display: none; }
  .step-wizard-indicator { flex-direction: column; width: 100%; }
  .step-indicator-item { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 1.5rem; }
  .section-header h2 { font-size: 1.6rem; }
  .tab-btn { width: 100%; text-align: center; }
  .btn { width: 100%; }
  .form-actions { flex-direction: column; }
}

/* ESTILOS DOS DADOS DO CANDIDATO (ALTA VISIBILIDADE E NEGRITO) */
.pdf-data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .pdf-data-grid {
    grid-template-columns: 1fr;
  }
}

.pdf-data-item {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.pdf-data-item label {
  display: block;
  font-size: 0.725rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.pdf-data-item span,
.pdf-data-item strong {
  display: block;
  font-weight: 800 !important;
  color: #0f172a !important;
  font-size: 0.95rem;
  word-break: break-word;
}

