/* ARQUIVO: css/bolsas.css */

/* =========================================================================
   SISTEMA DE DESIGN: CONCURSO DE BOLSAS (SISTEMA PREMIUM NAVY DARK & GOLD)
   Arquivo: css/bolsas.css
   ========================================================================= */

:root {
  --bolsas-gold: #ffc107;
  --bolsas-gold-dark: #e8a302;
  --bolsas-glass-bg: rgba(15, 23, 42, 0.75);
  --bolsas-glass-border: rgba(255, 255, 255, 0.18);
  --bolsas-glow: rgba(232, 163, 2, 0.35);
}

.bolsas-wrapper {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  position: relative;
  padding: 60px 0 90px;
  background: radial-gradient(circle at 50% 10%, #1e293b 0%, #0f172a 60%, #090e1c 100%);
  color: #ffffff;
  min-height: 90vh;
  overflow: hidden;
}

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

.bolsas-wrapper::before {
  width: 400px;
  height: 400px;
  background: rgba(232, 163, 2, 0.2);
  top: -80px;
  left: -80px;
  animation: meshFloat 9s ease-in-out infinite alternate;
}

.bolsas-wrapper::after {
  width: 500px;
  height: 500px;
  background: rgba(56, 189, 248, 0.15);
  bottom: -100px;
  right: -100px;
  animation: meshFloat 11s ease-in-out infinite alternate-reverse;
}

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

  50% {
    transform: translateY(-40px) scale(1.1) rotate(10deg);
  }

  100% {
    transform: translateY(30px) scale(0.95) rotate(-5deg);
  }
}

.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-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 26px;
  border-radius: 40px;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 0 8px 25px rgba(232, 163, 2, 0.45);
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

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

  50% {
    transform: scale(1.04);
    box-shadow: 0 12px 35px rgba(232, 163, 2, 0.7);
  }
}

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

.bolsas-subtitle {
  font-size: 1.12rem;
  color: #ffffff !important;
  max-width: 680px;
  margin: 16px auto 0;
  line-height: 1.6;
}

.bolsas-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(232, 163, 2, 0.95) 0%, rgba(255, 193, 7, 0.92) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  padding: 32px 28px;
  color: #0f172a !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(232, 163, 2, 0.3);
}

.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;
}

.form-section-pill {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(15, 23, 42, 0.15);
  border-radius: 26px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

.section-badge-student {
  display: inline-flex;
  align-items: center;
  background: #0f172a;
  color: #ffc107;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-badge-responsible {
  display: inline-flex;
  align-items: center;
  background: #0284c7;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-badge-additional {
  display: inline-flex;
  align-items: center;
  background: #4f46e5;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.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.85rem;
  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: 35px !important;
  padding: 12px 20px 12px 56px !important;
  min-height: 58px !important;
  height: 58px !important;
  color: #0f172a !important;
  font-size: 0.98rem;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box !important;
}

.bolsas-wrapper .form-control-animated:focus {
  background: #ffffff !important;
  border-color: #000000 !important;
  box-shadow: 0 0 20px 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.55);
  border: 2px solid #0f172a;
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.switch-whatsapp-aceite {
  width: 2.8em !important;
  height: 1.5em !important;
  cursor: pointer !important;
  background-color: rgba(15, 23, 42, 0.25) !important;
  border: 2px solid #0f172a !important;
  flex-shrink: 0;
  transition: all 0.3s ease !important;
}

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

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

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

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

/* DROPDOWN SELECT CUSTOMIZADO */
.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: 35px !important;
  padding: 12px 48px 12px 56px !important;
  min-height: 58px !important;
  height: 58px !important;
  color: #0f172a !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !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;
}

.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% !important;
  transform: translateY(-50%) rotate(0deg) !important;
  transition: transform 0.3s ease, color 0.3s ease !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 0 20px rgba(0, 0, 0, 0.25) !important;
}

.bolsas-wrapper .custom-select-options {
  border-radius: 24px !important;
  background: rgba(15, 23, 42, 0.98) !important;
  border: 2px solid #ffc107 !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important;
  padding: 10px !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;
}

.bolsas-wrapper .custom-select-options::-webkit-scrollbar {
  width: 9px !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: 14px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

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

/* BOTÃO SUBMIT */
.btn-submit-bolsas {
  width: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffc107;
  font-weight: 900;
  font-size: 1.15rem;
  padding: 18px;
  border: 2px solid #000000;
  border-radius: 35px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.btn-submit-bolsas:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

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

.icon-sucesso-circle {
  width: 90px;
  height: 90px;
  background: #ffffff;
  color: #059669;
  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);
}

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

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

.alert-verde-dica {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ecfdf5 !important;
  font-size: 0.95rem;
}

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

.icon-vermelho-circle {
  width: 90px;
  height: 90px;
  background: #ffffff;
  color: #dc2626;
  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);
}

.codigo-vermelho-hero {
  background: rgba(127, 29, 29, 0.85);
  border: 2px dashed #fca5a5;
  border-radius: 24px;
}

.alert-vermelho-dica {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fee2e2 !important;
  font-size: 0.95rem;
}

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

.video-reel-box {
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid rgba(255, 193, 7, 0.4);
  border-radius: 26px;
  padding: 16px;
  backdrop-filter: blur(14px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.ratio-reels {
  position: relative;
  width: 100%;
  max-width: 310px;
  aspect-ratio: 9 / 16 !important;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  padding-top: 0 !important;
}

.ratio-reels video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
}

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

.premiacao-compact-section {
  margin-top: 10px;
}

.premiacao-card-premium {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid rgba(255, 193, 7, 0.35);
  border-radius: 22px;
  padding: 16px 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premiacao-card-premium:hover {
  border-color: rgba(255, 193, 7, 0.7);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(232, 163, 2, 0.25);
}

.premiacao-header-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 8px;
  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.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

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

.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.15);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
}

.alert-condicao-especial-vibrant {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(232, 163, 2, 0.3) 100%);
  border: 2px dashed #ffc107;
  color: #ffffff;
  border-radius: 20px;
  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 20px rgba(232, 163, 2, 0.2);
}

/* =========================================================================
   SOLUÇÃO DO EDITAL PDF: DESKTOP vs MOBILE RESPONSIVO
   ========================================================================= */
.edital-pdf-container {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0f172a;
}

/* Card Mobile Otimizado para Leitura sem Iframe Quebrado do Android */
.edital-mobile-card {
  background: linear-gradient(145deg, #091328 0%, #050d1c 100%);
  border: 1.5px solid rgba(232, 163, 2, 0.4);
  border-radius: 24px;
  padding: 30px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 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: 20px;
  background: rgba(232, 163, 2, 0.15);
  border: 1.5px solid rgba(232, 163, 2, 0.4);
  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: 30px !important;
  border: none !important;
  box-shadow: 0 8px 25px rgba(232, 163, 2, 0.4) !important;
  transition: all 0.25s ease !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.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 12px 20px !important;
  border-radius: 30px !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

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

/* =========================================================================
   GRID PRINCIPAL DA PÁGINA
   ========================================================================= */
.bolsas-main-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#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: 24px;
    align-items: start;
  }

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

  .ratio-reels {
    max-width: 380px !important;
    padding-top: 110% !important;
  }

  #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;
  }
}