/* Responsive design - media queries */

/* Tablet landscape and small desktop */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .expert-content {
    padding-left: 1rem;
  }

  .expert-quote {
    font-size: 1.3rem;
  }
}

/* AI button collapses to circle + AI badge on tablet/mobile, above sticky CTA */
@media (max-width: 991px) {
  .ai-chat-button {
    bottom: 72px;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    gap: 0;
  }

  .ai-chat-button::before {
    border-radius: 50%;
  }

  .ai-chat-button-label {
    display: none;
  }

  /* Badge "AI" in corner — signals function when text is hidden */
  .ai-chat-button::after {
    content: 'AI';
    position: absolute;
    top: -4px;
    right: -4px;
    background: #FF6B35;
    color: white;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 8px;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    line-height: 1;
  }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .hero-content {
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-stats {
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .calculator-card {
    padding: 1.5rem;
    margin-top: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

  .expert-content {
    padding-left: 0;
    margin-top: 2rem;
    text-align: center;
  }

  .expert-quote {
    font-size: 1.2rem;
  }

  .expert-contact {
    justify-content: center;
    flex-wrap: wrap;
  }

  .online-status {
    margin-left: 0;
  }

  .faq-item .accordion-button {
    padding: 16px 20px;
    font-size: 0.95rem;
  }

  .faq-item .accordion-body {
    padding: 0 20px 20px;
  }

  .faq-icon {
    font-size: 1.1rem;
    margin-right: 8px;
    width: 28px;
  }

  .exit-benefit-item {
    font-size: 0.9rem;
    padding: 6px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .result-details {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Contact section - mobile vertical centering */
  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
    width: 100%;
  }

  .contact-item > div:last-child {
    align-items: center;
    width: 100%;
    height: auto;
    flex: unset;
  }

  .contact-item .contact-btn {
    margin-left: 0;
    margin-top: 0.75rem;
    align-self: center;
    width: auto;
  }

  .contact-card > .row {
    flex-direction: column;
    align-items: center;
  }

  .contact-card > .row > div {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .contact-card > .row > div:last-child {
    margin-bottom: 0;
  }

  .btn-modern {
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .calculator-cta-buttons .btn-modern {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile landscape */
@media (max-width: 640px) {
  .hero-section {
    min-height: auto;
    padding: 4rem 0;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    margin-top: 2rem;
    gap: 0.75rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .calculator-card {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .section-modern {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .feature-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .feature-icon {
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
  }

  .benefit-item {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .expert-quote {
    font-size: 1.1rem;
  }

  .expert-message {
    font-size: 1rem;
  }

  .ai-chat-button {
    bottom: 68px;
    right: 16px;
  }

  .mobile-sticky-cta {
    padding: 10px 12px;
  }

  .sticky-cta-text strong {
    font-size: 0.9rem;
  }

  .sticky-cta-text small {
    font-size: 0.75rem;
  }

  .sticky-cta-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .calculator-card {
    padding: 1rem;
    margin: 1.5rem 0.5rem 0;
  }

  .calculator-title {
    font-size: 1.25rem;
  }

  .calculator-subtitle {
    font-size: 0.9rem;
  }

  .form-control-modern,
  .form-select-modern {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .btn-wizard {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .result-amount {
    font-size: 2rem;
  }

  .result-title {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .feature-title {
    font-size: 1.1rem;
  }

  .feature-description {
    font-size: 0.9rem;
  }

  .expert-quote {
    font-size: 1rem;
  }

  .faq-item .accordion-button {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .faq-item .accordion-body {
    padding: 0 16px 16px;
    font-size: 0.9rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-btn {
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .modal-content {
    margin: 1rem 0.5rem;
  }

  .modal-body {
    padding: 1.5rem !important;
  }

  .exit-benefit-item {
    font-size: 0.85rem;
  }

  .value-item strong {
    font-size: 0.9rem;
  }

  .value-item small {
    font-size: 0.8rem;
  }

  .trust-signals .d-flex {
    flex-direction: column;
    gap: 0.5rem !important;
  }

  .form-check-label {
    font-size: 0.8rem !important;
    line-height: 1.35;
  }

  .promo-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .variant-inquiry-btn {
    width: 100%;
    text-align: center;
  }
}

/* Extra small mobile */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .calculator-card {
    padding: 0.75rem;
    margin: 1rem 0.25rem 0;
  }

  .section-modern {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 1.375rem;
  }

  .feature-card,
  .benefit-item {
    padding: 1rem;
  }

  .expert-avatar {
    width: 100px;
    height: 100px;
  }

  .online-indicator {
    width: 20px;
    height: 20px;
  }

  .pulse {
    width: 10px;
    height: 10px;
  }

  .faq-item .accordion-button {
    padding: 12px 14px;
  }

  .faq-item .accordion-body {
    padding: 0 14px 14px;
  }

  .form-control-modern,
  .form-select-modern {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .btn-wizard {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .form-label-modern {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .ai-chat-button {
    width: 48px;
    height: 48px;
    bottom: 64px;
    right: 12px;
  }

  .ai-chat-button::after {
    font-size: 0.56rem;
    padding: 2px 4px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-size: 2000px 2000px;
  }
}

/* Reduced motion */
@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;
  }

  .pulse,
  .loading-spinner,
  .loading-dots span {
    animation: none !important;
  }
}

/* Print styles */
@media print {
  .hero-section,
  .mobile-sticky-cta,
  .ai-chat-button,
  .modal,
  .btn {
    display: none !important;
  }

  .section-modern {
    padding: 2rem 0;
  }

  .calculator-card {
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }

  .feature-card,
  .benefit-item,
  .faq-item {
    box-shadow: none;
    border: 1px solid #e5e7eb;
    break-inside: avoid;
  }
}