/**
 * CSS para Formulário de Cadastro - Concurso de Bolsas CNSA
 * Estilo inspirado no Magic MCP - Visual Moderno e Profissional
 */

/* Importar fonte Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset e configurações básicas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #374151;
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 50%, #f0f7ff 100%);
  min-height: 100vh;
  position: relative;
}

/* Background decoration blur circles */
.blur {
  filter: blur(40px) !important;
}

/* ===== HERO SECTION - DESIGN MODERNO ===== */

/* Logo CNSA Elegante e Simples */
.hero-logo-container {
  position: relative;
  z-index: 10;
  margin-bottom: 2rem;
}

.hero-logo-simple {
  position: relative;
  display: inline-block;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.08),
    0 4px 10px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.hero-logo-simple:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.12),
    0 6px 15px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-logo-clean {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

/* Título Principal */
.hero-title-container {
  margin-bottom: 3rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: #6b7280;
  margin-top: 0.5rem;
  letter-spacing: 0.01em;
}

/* Container de Informações */
.hero-info-container {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  min-width: 280px;
}

.hero-info-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-info-primary {
  border-left: 4px solid #0066cc;
}

.hero-info-success {
  border-left: 4px solid #28a745;
}

.hero-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.hero-info-primary .hero-info-icon {
  background: linear-gradient(135deg, #0066cc, #0052a3);
  color: white;
}

.hero-info-success .hero-info-icon {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  color: white;
}

.hero-info-content {
  flex: 1;
}

.hero-info-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.hero-info-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.hero-info-detail {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.4;
}

/* Animações do Hero */
@keyframes heroLogoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Animações Personalizadas */
.animate__delay-3s {
  animation-delay: 0.3s !important;
}

.animate__delay-4s {
  animation-delay: 0.6s !important;
}

.animate__delay-5s {
  animation-delay: 0.9s !important;
}

.animate__delay-6s {
  animation-delay: 1.2s !important;
}

/* Efeito de entrada suave para campos */
.form-control, .form-select {
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
}

/* Responsividade */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-info-container {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-info-card {
    min-width: 100%;
    max-width: 320px;
  }
  
  .hero-logo-simple {
    padding: 15px;
  }
  
  .hero-logo-clean {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-info-card {
    padding: 1.25rem;
    gap: 0.75rem;
  }
  
  .hero-info-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  .hero-logo-simple {
    padding: 12px;
  }
  
  .hero-logo-clean {
    width: 60px;
    height: 60px;
  }
}

/* Animações para o efeito pulsante refinado */
@keyframes logoBreathing {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.3), 0 0 0 0 rgba(0, 102, 204, 0.4);
  }
  100% {
    box-shadow: 0 8px 30px rgba(0, 102, 204, 0.5), 0 0 0 8px rgba(0, 102, 204, 0.1);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    opacity: 0;
  }
}

@keyframes shine {
  0%, 100% {
    opacity: 0;
    transform: translateX(-100%);
  }
  50% {
    opacity: 1;
    transform: translateX(100%);
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Gradiente personalizado para Bootstrap */
.bg-gradient-primary {
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%) !important;
}

.bg-gradient-light {
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%) !important;
}

/* Cards de aluno - Modelo Magic MCP */
.aluno-card {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.aluno-card:hover {
  transform: translateY(-2px);
}

.aluno-card .card {
  border: 2px solid rgba(0, 102, 204, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.aluno-card .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0066cc, #004499);
  z-index: 1;
}

.aluno-card:hover .card {
  border-color: rgba(0, 102, 204, 0.3);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.1);
}

/* Badge do número do aluno */
.aluno-card .position-absolute.bg-gradient-primary {
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
  border: 2px solid #ffffff;
  transition: all 0.3s ease;
}

.aluno-card:hover .position-absolute.bg-gradient-primary {
  transform: scale(1.05);
}

/* Botão remover aluno */
.btn-remover-aluno {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 30px;
  height: 30px;
  background: #dc3545;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  z-index: 15;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-remover-aluno:hover {
  background: #c82333;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.5);
}

/* Esconder botão remover do primeiro aluno */
.aluno-card[data-aluno="1"] .btn-remover-aluno {
  display: none;
}

/* Campos com ícones - Estilo Magic MCP */
.form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.form-label .rounded-circle {
  flex-shrink: 0;
}

.form-control, .form-select {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
}

.form-control:focus, .form-select:focus {
  border-color: #0066cc;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
  outline: none;
}

.form-control::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Botão de adicionar alunos - Modelo Magic MCP */
#btnAdicionarAluno {
  border: 2px dashed #0066cc !important;
  background: rgba(0, 102, 204, 0.02);
  color: #0066cc;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

#btnAdicionarAluno:hover {
  background: rgba(0, 102, 204, 0.08);
  border-color: #004499 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

#btnAdicionarAluno:active {
  transform: translateY(0);
}

/* Botões principais */
.btn-lg {
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.btn-outline-secondary {
  border: 2px solid #d1d5db;
  color: #6b7280;
  background: transparent;
}

.btn-outline-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  transform: translateY(-1px);
}

/* Card principal do formulário */
.card {
  border-radius: 16px;
  border: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Barra de progresso */
.progress {
  border-radius: 10px;
  background: rgba(0, 102, 204, 0.1);
  border: 1px solid rgba(0, 102, 204, 0.1);
}

.progress-bar {
  border-radius: 10px;
  background: linear-gradient(90deg, #0066cc, #004499);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ícones coloridos nos labels */
.text-primary { color: #0066cc !important; }
.text-success { color: #059669 !important; }
.text-info { color: #0891b2 !important; }

/* Termo de aceite destacado */
.form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid #0066cc;
  border-radius: 4px;
}

.form-check-input:checked {
  background-color: #0066cc;
  border-color: #0066cc;
}

.form-check-input:focus {
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

/* Modal de sucesso */
.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Modal de Sucesso Melhorado */
.modal-content {
    animation: modalSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Ícone de Sucesso Animado */
.success-icon-container {
    position: relative;
    display: inline-block;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #fff;
    stroke-miterlimit: 10;
    margin: 10% auto;
    box-shadow: inset 0px 0px 0px #fff;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
    position: relative;
}

.success-checkmark .check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: border-box;
    border: 3px solid #fff;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.success-checkmark .check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
    border-radius: 100px 0 0 100px;
}

.success-checkmark .check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
    border-radius: 0 100px 100px 0;
    animation: rotate-circle 4.25s ease-in;
}

.success-checkmark .check-icon::before,
.success-checkmark .check-icon::after {
    content: '';
    height: 100px;
    position: absolute;
    background: rgba(255,255,255,0.2);
    transform: rotate(-45deg);
}

.success-checkmark .icon-line {
    height: 3px;
    background-color: #fff;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.success-checkmark .icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.success-checkmark .icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.success-checkmark .icon-circle {
    top: -3px;
    left: -3px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 3px solid rgba(255,255,255,0.5);
}

.success-checkmark .icon-fix {
    top: 8px;
    width: 5px;
    left: 26px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: #fff;
}

@keyframes rotate-circle {
    0% {
        transform: rotate(-45deg);
    }
    5% {
        transform: rotate(-45deg);
    }
    12% {
        transform: rotate(-405deg);
    }
    100% {
        transform: rotate(-405deg);
    }
}

@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }
    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }
    100% {
        width: 25px;
        left: 14px;
        top: 46px;
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    84% {
        width: 55px;
        right: 0px;
        top: 35px;
    }
    100% {
        width: 47px;
        right: 8px;
        top: 38px;
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 60px rgba(255,255,255,0.2);
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    animation: pulse 2s infinite;
}

.timeline-content {
    flex: 1;
}

/* Hover Effects */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Animate.css CDN será adicionado */
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');

/* Logo do Colégio no Modal de Sucesso */
.success-logo-container {
    position: relative;
    display: inline-block;
}

.logo-success-wrapper {
    position: relative;
    display: inline-block;
    padding: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-success {
    display: block;
    transition: all 0.3s ease;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(255,255,255,0.8));
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Logo Principal Flutuante */
.main-logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.main-logo-wrapper {
    position: relative;
    display: inline-block;
    padding: 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    backdrop-filter: blur(15px);
    border: 3px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
    animation: mainLogoFloat 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.main-logo-wrapper:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.main-logo {
    display: block;
    width: 100px;
    height: auto;
    transition: all 0.3s ease;
    animation: mainLogoGlow 3s ease-in-out infinite alternate;
    filter: drop-shadow(0 5px 15px rgba(102, 126, 234, 0.3));
}

.main-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: mainLogoPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes mainLogoFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(1deg);
    }
    50% {
        transform: translateY(-12px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

@keyframes mainLogoGlow {
    0% {
        filter: drop-shadow(0 5px 15px rgba(102, 126, 234, 0.3));
    }
    100% {
        filter: drop-shadow(0 8px 25px rgba(102, 126, 234, 0.5));
    }
}

@keyframes mainLogoPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Responsividade para a logo principal */
@media (max-width: 768px) {
    .main-logo {
        width: 80px;
    }
    
    .main-logo-wrapper {
        padding: 20px;
    }
    
    .main-logo-glow {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .main-logo {
        width: 70px;
    }
    
    .main-logo-wrapper {
        padding: 15px;
    }
    
    .main-logo-glow {
        width: 90px;
        height: 90px;
    }
}