/* ARQUIVO: css/bolsas.css */

/* =========================================================================
   SISTEMA DE DESIGN ULTRA MODERNO: CONCURSO DE BOLSAS (NAVY DARK & GOLD)
   Vanilla CSS Moderno (Tokens, CSS Grid, Glassmorphism, GPU Animations & A11y)
   ========================================================================= */

:root {
  --bolsas-primary: #0f172a;
  --bolsas-surface: #1e293b;
  --bolsas-surface-deep: #090e1c;
  --bolsas-gold: #ffc107;
  --bolsas-gold-dark: #e8a302;
  --bolsas-gold-light: #fef08a;
  --bolsas-gold-glow: rgba(232, 163, 2, 0.35);

  --bolsas-success: #10b981;
  --bolsas-success-dark: #047857;
  --bolsas-danger: #ef4444;
  --bolsas-danger-dark: #991b1b;
  --bolsas-info: #38bdf8;
  --bolsas-purple: #8b5cf6;

  --bolsas-glass-bg: rgba(15, 23, 42, 0.78);
  --bolsas-glass-card: linear-gradient(135deg, rgba(232, 163, 2, 0.96) 0%, rgba(255, 193, 7, 0.93) 100%);
  --bolsas-glass-border: rgba(255, 255, 255, 0.2);
  --bolsas-glass-border-gold: rgba(255, 193, 7, 0.45);

  --bolsas-radius-sm: 12px;
  --bolsas-radius-md: 20px;
  --bolsas-radius-lg: 26px;
  --bolsas-radius-xl: 32px;
  --bolsas-radius-pill: 9999px;

  --bolsas-ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --bolsas-ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --bolsas-transition: all 0.28s var(--bolsas-ease-smooth);
}

/* =========================================================================
   ESTRUTURA BASE & AMBIENTAÇÃO CÊNICA (MESH GRADIENTS)
   ========================================================================= */
.bolsas-wrapper {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  position: relative;
  padding: clamp(35px, 5vw, 65px) 0 clamp(60px, 8vw, 110px);
  background: radial-gradient(circle at 50% 8%, #1e293b 0%, #0f172a 58%, #090e1c 100%);
  color: #ffffff;
  min-height: 92vh;
  overflow: hidden;
}

.bolsas-wrapper::before,
.bolsas-wrapper::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
}

.bolsas-wrapper::before {
  width: min(500px, 90vw);
  height: min(500px, 90vw);
  background: radial-gradient(circle, rgba(232, 163, 2, 0.22) 0%, transparent 70%);
  top: -120px;
  left: -120px;
  animation: meshFloat 12s ease-in-out infinite alternate;
}

.bolsas-wrapper::after {
  width: min(550px, 95vw);
  height: min(550px, 95vw);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, transparent 70%);
  bottom: -140px;
  right: -140px;
  animation: meshFloat 14s ease-in-out infinite alternate-reverse;
}

@keyframes meshFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translate3d(-30px, -45px, 0) scale(1.08) rotate(8deg);
  }

  100% {
    transform: translate3d(25px, 35px, 0) scale(0.96) rotate(-6deg);
  }
}

/* =========================================================================
   BLOCO HERO/CABEÇALHO PROTEGIDO (NUNCA COLAPSA SOBRE OS CARDS)
   ========================================================================= */
.bolsas-header-hero,
.bolsas-wrapper header {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto clamp(30px, 4.5vw, 55px) auto !important;
  padding: 0 !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  float: none !important;
  clear: both !important;
  z-index: 5 !important;
  text-align: center !important;
}

/* =========================================================================
   SISTEMA NATIVO DE SCROLL REVEAL (SUBSTITUI WOW.JS A 60FPS)
   ========================================================================= */
.bolsas-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--bolsas-ease-smooth), transform 0.65s var(--bolsas-ease-smooth);
  will-change: opacity, transform;
}

.bolsas-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   TIPOGRAFIA E HIERARQUIA
   ========================================================================= */
.bolsas-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ffc107 0%, #e8a302 100%);
  border: 2px solid #ffffff;
  color: #0f172a !important;
  padding: 10px 28px;
  border-radius: var(--bolsas-radius-pill);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 0 10px 25px rgba(232, 163, 2, 0.45);
  animation: badgePulse 3.5s ease-in-out infinite;
  margin-bottom: 8px;
}

@keyframes badgePulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(232, 163, 2, 0.45);
  }

  50% {
    transform: scale(1.04);
    box-shadow: 0 14px 32px rgba(232, 163, 2, 0.6);
  }
}

.bolsas-title {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 30%, #ffc107 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin: 14px 0 0 0;
  letter-spacing: -0.6px;
}

.bolsas-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: #ffffff !important;
  max-width: 680px;
  margin: 14px auto 0;
  line-height: 1.65;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.bolsas-wrapper .text-muted,
.bolsas-wrapper .text-white-50,
.bolsas-wrapper .text-secondary {
  color: #ffffff !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.bolsas-card .text-muted,
.bolsas-card .text-secondary {
  color: #1e293b !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

/* =========================================================================
   CARD PRINCIPAL DO FORMULÁRIO (DOURADO GLASSMORPHISM)
   ========================================================================= */
.bolsas-card {
  position: relative;
  z-index: 1;
  background: var(--bolsas-glass-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--bolsas-radius-xl);
  padding: clamp(24px, 4vw, 36px) clamp(18px, 3.5vw, 30px);
  color: #0f172a !important;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.45), 0 0 45px rgba(232, 163, 2, 0.32);
}

.bolsas-card h4,
.bolsas-card h5,
.bolsas-card label {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.bolsas-card p {
  color: #0f172a !important;
  font-weight: 700 !important;
}

/* PÍLULAS SECCIONAIS */
.form-section-pill {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(15, 23, 42, 0.16);
  border-radius: var(--bolsas-radius-lg);
  padding: clamp(16px, 3vw, 22px);
  margin-bottom: 22px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.7);
}

.section-badge-student,
.section-badge-responsible,
.section-badge-additional {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--bolsas-radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-badge-student {
  background: #0f172a;
  color: #ffc107;
}

.section-badge-responsible {
  background: #0284c7;
  color: #ffffff;
}

.section-badge-additional {
  background: #4f46e5;
  color: #ffffff;
}

/* =========================================================================
   INPUTS DE FORMULÁRIO E MÁSCARAS
   ========================================================================= */
.bolsas-wrapper .form-group-custom {
  position: relative !important;
  margin-bottom: 18px;
}

.bolsas-wrapper .form-group-custom:last-child {
  margin-bottom: 0;
}

.bolsas-wrapper .form-group-custom label {
  display: block;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.bolsas-wrapper .form-control-animated {
  width: 100%;
  background: #ffffff !important;
  border: 2px solid #0f172a !important;
  border-radius: var(--bolsas-radius-pill) !important;
  padding: 12px 20px 12px 56px !important;
  min-height: 58px !important;
  height: 58px !important;
  color: #0f172a !important;
  font-size: 1rem;
  font-weight: 700;
  transition: var(--bolsas-transition);
  box-sizing: border-box !important;
}

.bolsas-wrapper .form-control-animated:focus,
.bolsas-wrapper .form-control-animated:focus-visible {
  background: #ffffff !important;
  border-color: #000000 !important;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.18), 0 0 24px rgba(0, 0, 0, 0.25) !important;
  outline: none;
}

.bolsas-wrapper .input-icon-custom {
  position: absolute !important;
  left: 20px !important;
  bottom: 17px !important;
  top: auto !important;
  color: #334155 !important;
  font-size: 1.15rem !important;
  pointer-events: none !important;
  z-index: 30 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
}

/* SWITCH WHATSAPP */
.switch-whatsapp-container {
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid #0f172a;
  border-radius: var(--bolsas-radius-md);
  padding: 16px 20px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.85);
  transition: var(--bolsas-transition);
}

.switch-whatsapp-aceite {
  width: 2.85em !important;
  height: 1.55em !important;
  cursor: pointer !important;
  background-color: rgba(15, 23, 42, 0.28) !important;
  border: 2px solid #0f172a !important;
  flex-shrink: 0;
  transition: var(--bolsas-transition) !important;
}

.switch-whatsapp-aceite:checked {
  background-color: #10b981 !important;
  border-color: #047857 !important;
}

.switch-whatsapp-aceite:focus-visible {
  outline: 3px solid #0f172a;
  outline-offset: 2px;
}

.switch-whatsapp-label {
  cursor: pointer;
  font-size: 0.90rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.35;
  user-select: none;
}

.recaptcha-v3-badge-info {
  font-size: 0.74rem;
  color: #0f172a;
  font-weight: 700;
  text-align: center;
  margin-top: 10px;
  opacity: 0.82;
}

.recaptcha-v3-badge-info a {
  color: #0f172a;
  text-decoration: underline;
  font-weight: 800;
}

/* =========================================================================
   CUSTOM SELECTS ACESSÍVEIS (WAI-ARIA & KEYBOARD)
   ========================================================================= */
.bolsas-wrapper .custom-select-box {
  position: relative !important;
  width: 100% !important;
  display: block !important;
  margin-bottom: 0 !important;
  z-index: 15 !important;
}

.bolsas-wrapper .custom-select-box.is-open {
  z-index: 99999 !important;
}

.bolsas-wrapper .custom-select-trigger {
  width: 100% !important;
  background: #ffffff !important;
  border: 2px solid #0f172a !important;
  border-radius: var(--bolsas-radius-pill) !important;
  padding: 12px 48px 12px 56px !important;
  min-height: 58px !important;
  height: 58px !important;
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  cursor: pointer !important;
  transition: var(--bolsas-transition) !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  user-select: none;
}

.bolsas-wrapper .custom-select-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.22), 0 0 20px rgba(0, 0, 0, 0.25) !important;
  border-color: #000000 !important;
}

.bolsas-wrapper .custom-select-trigger .trigger-text {
  display: block !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
}

.bolsas-wrapper .custom-select-trigger:after {
  content: '\f107' !important;
  font-family: 'Font Awesome 6 Free' !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  font-size: 1.15rem !important;
  position: absolute !important;
  right: 20px !important;
  top: 50%;
  transform: translateY(-50%) rotate(0deg) !important;
  transition: transform 0.28s var(--bolsas-ease-smooth), color 0.28s var(--bolsas-ease-smooth) !important;
  pointer-events: none !important;
  background: none !important;
}

.bolsas-wrapper .custom-select-box.is-open .custom-select-trigger:after {
  transform: translateY(-50%) rotate(180deg) !important;
  color: #e8a302 !important;
}

.bolsas-wrapper .custom-select-trigger.has-error {
  border-color: #dc2626 !important;
  background: #fef2f2 !important;
  animation: shakeError 0.4s ease;
}

@keyframes shakeError {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

.bolsas-wrapper .custom-select-trigger:hover,
.bolsas-wrapper .custom-select-box.is-open .custom-select-trigger {
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
}

.bolsas-wrapper .custom-select-options {
  border-radius: var(--bolsas-radius-md) !important;
  background: rgba(15, 23, 42, 0.98) !important;
  border: 2px solid #ffc107 !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65) !important;
  padding: 8px !important;
  margin-top: 8px !important;
  z-index: 999999 !important;
  max-height: 320px !important;
  overflow-y: auto !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  list-style: none !important;
  transform-origin: top center;
  animation: dropdownIn 0.2s var(--bolsas-ease-smooth);
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bolsas-wrapper .custom-select-options::-webkit-scrollbar {
  width: 8px !important;
}

.bolsas-wrapper .custom-select-options::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.8) !important;
  border-radius: 10px !important;
}

.bolsas-wrapper .custom-select-options::-webkit-scrollbar-thumb {
  background: #e8a302 !important;
  border-radius: 10px !important;
  border: 2px solid #0f172a !important;
}

.bolsas-wrapper .custom-select-options::-webkit-scrollbar-thumb:hover {
  background: #ffc107 !important;
}

.bolsas-wrapper .custom-select-option {
  color: #f8fafc !important;
  padding: 12px 18px !important;
  border-radius: var(--bolsas-radius-sm) !important;
  font-weight: 600 !important;
  transition: background 0.18s ease, color 0.18s ease !important;
  cursor: pointer !important;
}

.bolsas-wrapper .custom-select-option:hover,
.bolsas-wrapper .custom-select-option.is-focused,
.bolsas-wrapper .custom-select-option.is-selected {
  background: #ffc107 !important;
  color: #0f172a !important;
  font-weight: 800 !important;
}

/* =========================================================================
   BOTÕES DE ENVIO E AÇÃO
   ========================================================================= */
.btn-submit-bolsas {
  width: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffc107;
  font-weight: 900;
  font-size: 1.15rem;
  padding: 18px 24px;
  border: 2px solid #000000;
  border-radius: var(--bolsas-radius-pill);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: var(--bolsas-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-submit-bolsas:hover {
  background: #000000;
  color: #ffffff;
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.btn-submit-bolsas:active {
  transform: translateY(0) scale(0.99);
}

.btn-submit-bolsas:focus-visible {
  outline: 3px solid #000000;
  outline-offset: 3px;
}

.btn-submit-bolsas:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none !important;
  filter: grayscale(20%);
}

.hover-lift {
  transition: var(--bolsas-transition);
}

.hover-lift:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45) !important;
}

/* =========================================================================
   CARDS DE SUCESSO E DUPLICIDADE (FEEDBACK)
   ========================================================================= */
.sucesso-verde-box {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #047857 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 3px solid #34d399;
  border-radius: var(--bolsas-radius-xl);
  box-shadow: 0 25px 60px rgba(5, 150, 105, 0.45);
  color: #ffffff !important;
  animation: boxPopIn 0.45s var(--bolsas-ease-spring);
}

.duplicado-vermelho-box {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 50%, #7f1d1d 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 3px solid #f87171;
  border-radius: var(--bolsas-radius-xl);
  box-shadow: 0 25px 60px rgba(220, 38, 38, 0.45);
  color: #ffffff !important;
  animation: boxPopIn 0.45s var(--bolsas-ease-spring);
}

@keyframes boxPopIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.icon-sucesso-circle,
.icon-vermelho-circle {
  width: 90px;
  height: 90px;
  background: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.icon-sucesso-circle {
  color: #059669;
}

.icon-vermelho-circle {
  color: #dc2626;
}

.codigo-verde-hero {
  background: rgba(6, 78, 59, 0.88);
  border: 2px dashed #a7f3d0;
  border-radius: var(--bolsas-radius-lg);
}

.codigo-vermelho-hero {
  background: rgba(127, 29, 29, 0.88);
  border: 2px dashed #fca5a5;
  border-radius: var(--bolsas-radius-lg);
}

.codigo-numero-hero {
  font-size: clamp(3.5rem, 8vw, 4.8rem);
  font-weight: 900;
  color: #ffc107 !important;
  letter-spacing: clamp(4px, 1.5vw, 8px);
  text-shadow: 0 0 25px rgba(255, 193, 7, 0.7);
  line-height: 1.1;
  margin: 12px 0;
}

.alert-verde-dica,
.alert-vermelho-dica {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.95rem;
  border-radius: var(--bolsas-radius-md);
}

.alert-verde-dica {
  color: #ecfdf5 !important;
}

.alert-vermelho-dica {
  color: #fee2e2 !important;
}

.alert-serie-warning {
  background: #090e1c;
  color: #ffc107;
  border: 2px solid #e8a302;
  border-radius: var(--bolsas-radius-md);
  padding: 14px 18px;
  font-size: 0.9rem;
  margin-bottom: 22px;
}

/* =========================================================================
   VÍDEO VERTICAL (REELS / TIKTOK STYLE)
   ========================================================================= */
.video-reel-box {
  background: rgba(15, 23, 42, 0.88);
  border: 2px solid rgba(255, 193, 7, 0.42);
  border-radius: var(--bolsas-radius-lg);
  padding: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.ratio-reels {
  position: relative;
  width: 100%;
  max-width: 310px;
  aspect-ratio: 9 / 16 !important;
  margin: 0 auto;
  border-radius: var(--bolsas-radius-md);
  overflow: hidden;
  padding-top: 0 !important;
  background: #000;
}

.ratio-reels video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  border-radius: var(--bolsas-radius-md);
}

@media (min-width: 992px) {
  .ratio-reels {
    max-width: 290px !important;
  }
}

/* =========================================================================
   BLOCO DE PREMIAÇÕES E BOLSAS OFERTADAS
   ========================================================================= */
.premiacao-compact-section {
  margin-top: 8px;
}

.premiacao-card-premium {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.92) 100%);
  border: 1px solid rgba(255, 193, 7, 0.38);
  border-radius: var(--bolsas-radius-md);
  padding: 18px 22px;
  margin-bottom: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  transition: var(--bolsas-transition);
}

.premiacao-card-premium:hover {
  border-color: rgba(255, 193, 7, 0.75);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(232, 163, 2, 0.28);
}

.premiacao-header-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.premiacao-header-title {
  font-weight: 900;
  font-size: 0.98rem;
  letter-spacing: 0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.premiacao-grid-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 10px;
}

@media (max-width: 576px) {
  .premiacao-grid-pills {
    grid-template-columns: 1fr;
  }
}

.premiacao-item-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--bolsas-radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.premiacao-item-pill:hover {
  background: rgba(255, 193, 7, 0.12);
  border-color: rgba(255, 193, 7, 0.35);
}

.pill-discount-gold {
  color: #ffc107;
  font-weight: 900;
}

.pill-discount-silver {
  color: #e2e8f0;
  font-weight: 900;
}

.pill-discount-bronze {
  color: #f97316;
  font-weight: 900;
}

.pill-discount-star {
  color: #38bdf8;
  font-weight: 900;
}

.pill-qty-badge {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--bolsas-radius-pill);
}

.alert-condicao-especial-vibrant {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.22) 0%, rgba(232, 163, 2, 0.32) 100%);
  border: 2px dashed #ffc107;
  color: #ffffff;
  border-radius: var(--bolsas-radius-md);
  padding: 14px 18px;
  font-size: 0.92rem;
  font-weight: 800;
  margin-top: 18px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 8px 22px rgba(232, 163, 2, 0.22);
}

/* =========================================================================
   BLOCO DO EDITAL: RESPONSIVIDADE DESKTOP vs MOBILE
   ========================================================================= */
.edital-pdf-container {
  border-radius: var(--bolsas-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0f172a;
}

.edital-mobile-card {
  background: linear-gradient(145deg, #091328 0%, #050d1c 100%);
  border: 1.5px solid rgba(232, 163, 2, 0.42);
  border-radius: var(--bolsas-radius-lg);
  padding: 32px 20px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.edital-mobile-card::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 163, 2, 0.35) 0%, transparent 70%);
  filter: blur(35px);
  pointer-events: none;
}

.edital-mobile-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--bolsas-radius-md);
  background: rgba(232, 163, 2, 0.16);
  border: 1.5px solid rgba(232, 163, 2, 0.45);
  color: var(--bolsas-gold);
  font-size: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(232, 163, 2, 0.3);
}

.btn-open-pdf-mobile {
  background: linear-gradient(135deg, #ffc107 0%, #e8a302 100%) !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  padding: 14px 20px !important;
  border-radius: var(--bolsas-radius-pill) !important;
  border: none !important;
  box-shadow: 0 8px 25px rgba(232, 163, 2, 0.4) !important;
  transition: var(--bolsas-transition) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.btn-open-pdf-mobile:active {
  transform: scale(0.97);
}

.btn-download-pdf-mobile {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 12px 20px !important;
  border-radius: var(--bolsas-radius-pill) !important;
  transition: var(--bolsas-transition) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.btn-download-pdf-mobile:active {
  background: rgba(255, 255, 255, 0.16) !important;
}

/* =========================================================================
   GRID PRINCIPAL DA PÁGINA COM ESPAÇAMENTO CONTROLADO
   ========================================================================= */
.bolsas-main-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 2;
  margin-top: 0 !important;
}

#bloco-formulario {
  order: 1;
}

#bloco-video {
  order: 2;
}

#bloco-programacao {
  order: 3;
}

#bloco-premiacoes {
  order: 4;
}

#bloco-edital {
  order: 5;
}

@media (min-width: 992px) {
  .bolsas-main-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    grid-template-areas:
      "video form"
      "programacao form"
      "premiacao form"
      "edital edital";
    gap: 28px;
    align-items: start;
  }

  .bolsas-main-grid.sem-video {
    grid-template-areas:
      "programacao form"
      "premiacao form"
      "edital edital";
  }

  #bloco-video {
    grid-area: video;
    order: unset;
  }

  #bloco-programacao {
    grid-area: programacao;
    order: unset;
  }

  #bloco-formulario {
    grid-area: form;
    order: unset;
  }

  #bloco-premiacoes {
    grid-area: premiacao;
    order: unset;
  }

  #bloco-edital {
    grid-area: edital;
    order: unset;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 0;
  }
}

/* =========================================================================
   ESTILOS EXCLUSIVOS: ESTADO DE INSCRIÇÕES ENCERRADAS (PRÉ / PÓS PROVA)
   ========================================================================= */
.bolsas-main-grid.edital-encerrado {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 32px !important;
  max-width: 1050px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.bolsas-main-grid.edital-encerrado #bloco-programacao,
.bolsas-main-grid.edital-encerrado #bloco-formulario {
  width: 100% !important;
  max-width: 1050px !important;
  margin: 0 auto !important;
}

.bolsas-main-grid.edital-encerrado #bloco-programacao {
  order: 1 !important;
}

.bolsas-main-grid.edital-encerrado #bloco-formulario {
  order: 2 !important;
}

.bolsas-main-grid.edital-encerrado #bloco-programacao .premiacao-card-premium {
  padding: clamp(24px, 4vw, 36px) !important;
  border-radius: var(--bolsas-radius-xl) !important;
  border: 2px solid rgba(255, 193, 7, 0.45) !important;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.97) 0%, rgba(30, 41, 59, 0.94) 100%) !important;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.58), 0 0 35px rgba(232, 163, 2, 0.2) !important;
}

.bolsas-main-grid.edital-encerrado #bloco-programacao .premiacao-item-pill {
  padding: 14px 22px !important;
  font-size: 1rem !important;
  border-radius: var(--bolsas-radius-md) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* 1. CARD PREMIUM ANTES DA PROVA */
.card-encerrado-premium {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.97) 0%, rgba(30, 41, 59, 0.94) 100%);
  border: 2px solid rgba(255, 193, 7, 0.55);
  border-radius: var(--bolsas-radius-xl);
  padding: clamp(32px, 5vw, 48px) clamp(20px, 4vw, 36px);
  color: #ffffff !important;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.65), 0 0 45px rgba(232, 163, 2, 0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  overflow: hidden;
}

.card-encerrado-premium::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(232, 163, 2, 0.32) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.icon-encerrado-glow {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(232, 163, 2, 0.16);
  border: 2px solid rgba(255, 193, 7, 0.65);
  color: #ffc107;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  box-shadow: 0 0 35px rgba(232, 163, 2, 0.45);
  margin-bottom: 22px;
  animation: pulseGlowLock 3.2s infinite ease-in-out;
}

@keyframes pulseGlowLock {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 25px rgba(232, 163, 2, 0.35);
  }

  50% {
    transform: scale(1.06);
    box-shadow: 0 0 52px rgba(232, 163, 2, 0.72);
  }
}

.box-data-prova-banner {
  background: linear-gradient(135deg, rgba(232, 163, 2, 0.18) 0%, rgba(15, 23, 42, 0.75) 100%);
  border: 2px dashed rgba(255, 193, 7, 0.68);
  border-radius: var(--bolsas-radius-lg);
  padding: 22px 28px;
  margin: 26px auto 22px;
  max-width: 600px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.08);
}

.data-prova-big-badge {
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 900;
  color: #ffc107;
  letter-spacing: 1.5px;
  text-shadow: 0 0 18px rgba(232, 163, 2, 0.6);
}

.alert-atencao-candidato {
  background: rgba(16, 185, 129, 0.14);
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  color: #a7f3d0 !important;
  border-radius: var(--bolsas-radius-md);
  padding: 16px 24px;
  font-size: 0.98rem;
  font-weight: 700;
  max-width: 680px;
  margin: 0 auto;
}

/* 2. CARD PÓS-EVENTO ULTRA ELEGANTE */
.card-pos-evento {
  width: 100% !important;
  max-width: 1050px !important;
  margin: 0 auto !important;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.28) 0%, rgba(15, 23, 42, 0.98) 55%, rgba(6, 11, 24, 0.99) 100%) !important;
  border: 2px solid rgba(129, 140, 248, 0.55) !important;
  box-shadow: 0 30px 85px rgba(0, 0, 0, 0.8), 0 0 50px rgba(99, 102, 241, 0.28), 0 0 30px rgba(56, 189, 248, 0.2) !important;
  border-radius: var(--bolsas-radius-xl) !important;
  padding: clamp(36px, 6vw, 58px) clamp(20px, 4vw, 36px) !important;
  text-align: center !important;
}

.card-pos-evento .icon-encerrado-glow {
  width: 105px;
  height: 105px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.24) 0%, rgba(56, 189, 248, 0.3) 100%) !important;
  border: 2px solid rgba(129, 140, 248, 0.72) !important;
  color: #38bdf8 !important;
  font-size: 3rem !important;
  box-shadow: 0 0 45px rgba(99, 102, 241, 0.52) !important;
  animation: pulseGlowPosEvento 3.5s infinite ease-in-out !important;
  margin-bottom: 24px;
}

@keyframes pulseGlowPosEvento {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
  }

  50% {
    transform: scale(1.06);
    box-shadow: 0 0 65px rgba(56, 189, 248, 0.8);
  }
}

.badge-ano-pos-evento {
  display: inline-block;
  background: linear-gradient(135deg, #6366f1 0%, #38bdf8 100%);
  color: #ffffff;
  font-weight: 900;
  padding: 8px 24px;
  border-radius: var(--bolsas-radius-pill);
  font-size: 0.95rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.48);
  margin-bottom: 20px;
}

.texto-destaque-pos-evento {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.subtexto-pos-evento {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #e2e8f0;
  font-weight: 700;
  max-width: 720px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.box-agradecimento-pos {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--bolsas-radius-lg);
  padding: 22px 28px;
  max-width: 650px;
  margin: 0 auto 32px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.06);
}

.btn-instagram-luxo {
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 1.1rem !important;
  padding: 16px 42px !important;
  border-radius: var(--bolsas-radius-pill) !important;
  border: 2px solid rgba(255, 255, 255, 0.38) !important;
  box-shadow: 0 12px 35px rgba(236, 72, 153, 0.48) !important;
  transition: var(--bolsas-transition) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
}

.btn-instagram-luxo:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 18px 48px rgba(236, 72, 153, 0.68) !important;
  color: #ffffff !important;
}

.btn-matricula-luxo {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 1.15rem !important;
  padding: 16px 42px !important;
  border-radius: var(--bolsas-radius-pill) !important;
  border: 2px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.48) !important;
  transition: var(--bolsas-transition) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.btn-matricula-luxo:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 18px 48px rgba(16, 185, 129, 0.68) !important;
  color: #ffffff !important;
}

/* =========================================================================
   LIGHTBOX MODERNO COM SWIPE, TECLADO E ACELERAÇÃO POR GPU
   ========================================================================= */
.vlightbox-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 18, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  touch-action: pan-y;
}

.vlightbox-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.vlightbox-container {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vlightbox-img {
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--bolsas-radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.28);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
  user-select: none;
}

.vlightbox-img.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.vlightbox-caption {
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 700;
  margin-top: 12px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.vlightbox-counter {
  position: absolute;
  top: 24px;
  left: 30px;
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.75);
  padding: 6px 14px;
  border-radius: var(--bolsas-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.vlightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--bolsas-transition);
  line-height: 1;
}

.vlightbox-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: scale(1.08);
}

.vlightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.8);
  border: 1.5px solid rgba(255, 193, 7, 0.45);
  color: #ffc107;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--bolsas-transition);
}

.vlightbox-nav:hover {
  background: #ffc107;
  color: #0f172a;
  transform: translateY(-50%) scale(1.1);
}

.vlightbox-prev {
  left: 20px;
}

.vlightbox-next {
  right: 20px;
}

@media (max-width: 768px) {
  .vlightbox-nav {
    display: none !important;
  }
}

/* =========================================================================
   ACESSIBILIDADE: PREFERÊNCIA DE MOVIMENTO REDUZIDO (A11Y)
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .bolsas-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}