/* ==========================================
   ESTILOS DE CONVERSÃO - TOP 5 MELHORIAS
   ========================================== */

/* ===========================================
   1. CONTADOR DE VAGAS - BARRA DE URGÊNCIA
   =========================================== */

.urgency-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
  color: white;
  padding: 12px 16px;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
  animation: urgency-pulse 2s ease-in-out infinite;
}

@keyframes urgency-pulse {
  0%, 100% { 
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
  }
  50% { 
    box-shadow: 0 4px 30px rgba(220, 38, 38, 0.7);
  }
}

.urgency-bar .icon {
  font-size: 20px;
  animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.urgency-bar .vagas-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 16px;
  animation: vagas-blink 1s ease-in-out infinite;
}

@keyframes vagas-blink {
  0%, 100% { 
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1);
  }
  50% { 
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
  }
}

.urgency-bar .close-btn {
  position: absolute;
  right: 16px;
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.urgency-bar .close-btn:hover {
  opacity: 1;
}

/* Ajustar body quando barra está ativa */
body.has-urgency-bar {
  padding-top: 52px;
}

/* ===========================================
   2. TIMER REGRESSIVO
   =========================================== */

.countdown-container {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  color: white;
  padding: 20px;
  margin: 20px 0;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.countdown-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 70%
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.countdown-container .title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.countdown-container .timer {
  display: flex;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.countdown-container .time-block {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 12px;
  min-width: 70px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.countdown-container .time-value {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.countdown-container .time-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-top: 8px;
}

.countdown-container .urgency-text {
  margin-top: 16px;
  font-size: 13px;
  color: #fbbf24;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* ===========================================
   3. DEPOIMENTOS / AVALIAÇÕES
   =========================================== */

.testimonials-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 40px 20px;
  margin: 30px 0;
  border-radius: 20px;
}

.testimonials-section .section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.testimonials-section .section-subtitle {
  text-align: center;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 30px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: #f1f5f9;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #dc2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.testimonial-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.testimonial-info .location {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 14px;
  margin-top: 4px;
}

.testimonial-text {
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  position: relative;
  z-index: 1;
}

.testimonial-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 16px;
}

.testimonial-badge i {
  font-size: 14px;
}

/* ===========================================
   4. BOTÃO STICKY MOBILE
   =========================================== */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 16px 20px;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
  z-index: 99998;
  display: none;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta .cta-content {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.sticky-cta .cta-text {
  flex: 1;
}

.sticky-cta .cta-text .main-text {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.sticky-cta .cta-text .sub-text {
  font-size: 12px;
  color: #64748b;
}

.sticky-cta .cta-button {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
  animation: sticky-pulse 2s ease-in-out infinite;
  transition: all 0.3s ease;
}

.sticky-cta .cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(220, 38, 38, 0.5);
}

@keyframes sticky-pulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(220, 38, 38, 0.6);
  }
}

/* Mostrar em mobile */
@media (max-width: 768px) {
  .sticky-cta {
    display: block;
  }
  
  body.has-sticky-cta {
    padding-bottom: 90px;
  }
}

/* ===========================================
   5. FAQ EXPANSÍVEL
   =========================================== */

.faq-section {
  background: white;
  padding: 40px 20px;
  margin: 30px 0;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.faq-section .section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.faq-section .section-subtitle {
  text-align: center;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 30px;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #dc2626;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.1);
}

.faq-item.active {
  border-color: #dc2626;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.15);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  background: #f8fafc;
  transition: all 0.3s ease;
}

.faq-item.active .faq-question {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
}

.faq-question h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  flex: 1;
  padding-right: 16px;
}

.faq-question .icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question .icon {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(180deg);
}

.faq-question .icon i {
  font-size: 12px;
  color: #dc2626;
  transition: color 0.3s ease;
}

.faq-item.active .faq-question .icon i {
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  background: white;
}

.faq-answer-content ul {
  margin: 10px 0;
  padding-left: 20px;
}

.faq-answer-content li {
  margin-bottom: 8px;
}

/* ===========================================
   EFEITO BRILHO NO BOTÃO ORIGINAL (mantido)
   =========================================== */

a[class*="bg-red"],
button[class*="bg-red"] {
  position: relative;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.4);
}

a[class*="bg-red"]:hover,
button[class*="bg-red"]:hover {
  box-shadow: 0 0 8px 2px rgba(255, 77, 77, 0.6),
              0 0 15px 4px rgba(255, 138, 138, 0.3);
  transform: translateY(-2px);
}

@keyframes subtle-glow {
  0%, 100% {
    box-shadow: 0 0 5px 1px rgba(255, 77, 77, 0.3);
  }
  50% {
    box-shadow: 0 0 10px 2px rgba(255, 77, 77, 0.5);
  }
}

a[class*="bg-red"],
button[class*="bg-red"] {
  animation: subtle-glow 3s ease-in-out infinite;
}

a[class*="bg-red"]:active,
button[class*="bg-red"]:active {
  transform: translateY(0);
  box-shadow: 0 0 5px 1px rgba(255, 77, 77, 0.3);
}

/* ===========================================
   RESPONSIVIDADE
   =========================================== */

@media (max-width: 480px) {
  .urgency-bar {
    font-size: 12px;
    padding: 10px 12px;
    flex-wrap: wrap;
    text-align: center;
  }
  
  .urgency-bar .vagas-count {
    font-size: 14px;
  }
  
  .countdown-container .timer {
    gap: 8px;
  }
  
  .countdown-container .time-block {
    min-width: 55px;
    padding: 12px 8px;
  }
  
  .countdown-container .time-value {
    font-size: 24px;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .sticky-cta .cta-content {
    flex-direction: column;
    text-align: center;
  }
  
  .sticky-cta .cta-button {
    width: 100%;
  }
}

/* ===========================================
   ANIMAÇÕES EXTRAS
   =========================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
