html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

#chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  transition: z-index 0.1s step-end;
}

#chatbot.active {
  z-index: 1000;
  transition: z-index 0.1s step-start;
}

@media (max-width: 768px) {
  .chatbot-toggler {
    min-width: auto;
    padding: 8px 12px;
    z-index: 100;
  }

  .toggler-text {
    display: none;
  }

  .toggler-avatar {
    width: 36px;
    height: 36px;
    margin-right: 0;
  }

  #chatbot {
    bottom: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .chatbot-toggler {
    min-width: auto;
    width: auto;
    height: auto;
    padding: 8px;
    border-radius: 50%;
  }
}

@media (max-width: 769px) {
  .hero {
    padding: 7rem 0 5rem;
  }

  .hero-title {
    font-size: 2.4rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
  }

  .hero-actions {
    align-items: center;
    width: 100%;
  }

  .hero-checks {
    width: 100%;
  }

  .hero-check-item {
    width: 100%;
    text-align: right;
  }
  #Herobtn {
    width: 50%;
  }
  .btn-lg {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: small;
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 280px;
    padding: 1.8rem;
    min-height: 220px;
  }

  .testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .testimonial-author {
    flex-wrap: wrap;
  }

  .testimonial-badge {
    margin-top: 0.8rem;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .badge-content {
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 576px) {
  .popup-container {
    width: 100%;
    max-height: 85vh;
    border-radius: 12px;
  }
  #Herobtn {
    width: 100%;
  }
  .popup-content,
  .popup-sidebar {
    padding: 1.2rem;
  }

  .form-row {
    flex-direction: column;
    gap: 1rem;
  }

  .form-group input,
  .form-group select {
    padding: 0.9rem 1rem;
    font-size: 1rem;
  }

  .form-badge {
    display: block;
    text-align: center;
  }

  .btn-full {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 5rem 0 1rem;
  }

  .footer-info,
  .footer-contact,
  .footer-whatsapp {
    min-width: 100%;
    margin-bottom: 2rem;
  }

  .footer-description {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.8rem;
  }
  .btn-accent {
    font-size: small;
  }
  .divider {
    display: none;
  }
}

@media (max-width: 576px) {
  .nav-item,
  .btn,
  .slider-btn,
  .form-check,
  .footer-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .slider-controls {
    gap: 2rem;
  }

  .slider-btn {
    width: 44px;
    height: 44px;
  }

  .eligibility-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }

  .eligibility-item-inner {
    padding: 1rem;
  }

  .eligibility-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .cta-content {
    padding: 1.5rem;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .cta-text {
    font-size: 1rem;
  }

  .cta-features {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
    margin-bottom: 0.8rem;
  }
}

@media (max-width: 320px) {
  html {
    font-size: 14px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .badge,
  .hero-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .eligibility-grid {
    grid-template-columns: 1fr 1fr;
  }

  .chatbot-box {
    width: 300px;
    right: -10px;
  }
}

.eligibility-btn,
.hero-actions .btn,
.cta-buttons .btn,
.tax-stats .stat-item,
.form-actions .btn {
  position: relative;
  z-index: 10;
}

html {
  scroll-padding-top: 80px;
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }
}

input,
select,
textarea {
  font-size: 16px !important;
}
