/**
 * LegalStatusCheck.in - Responsive Stylesheet
 * Breakpoints: 1200px, 992px, 768px, 480px
 */

/* Medium Desktops & Laptops (<= 1200px) */
@media (max-width: 1200px) {
  .site-container {
    max-width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .nav-content {
    gap: 0.85rem;
  }

  .header-search-wrap {
    flex: 0 1 240px;
    max-width: 250px;
  }

  .nav-link {
    padding: 0.4rem 0.5rem;
    font-size: 0.835rem;
    gap: 0.22rem;
  }

  .mega-panel {
    width: 500px;
    max-width: calc(100vw - 2rem);
  }

  .mega-panel-large {
    width: 660px;
    left: 15%;
    transform: translateX(-15%);
  }

  .mega-panel-finance,
  .mega-panel-right,
  .nav-item:last-child .mega-panel {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
    width: 500px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 1.75rem;
  }
}

/* Tablets Landscape & Small Desktops (<= 1040px) */
@media (max-width: 1040px) {
  .top-bar {
    display: none; /* Simplify mobile view */
  }

  .desktop-nav {
    display: none; /* Use mobile drawer */
  }

  .header-search-wrap {
    max-width: 240px;
  }

  .mobile-toggle-btn {
    display: flex;
  }

  .tool-workspace-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .results-card {
    position: static; /* Unstick on mobile/tablet */
    margin-top: 1rem;
  }

  .category-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid, .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .form-row.three-cols {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }

  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .nav-container {
    padding: 0.6rem 0;
  }

  .site-logo-img {
    height: 32px;
  }

  .logo-text {
    font-size: 1.15rem;
  }

  .header-search-wrap {
    display: none; /* Replaced by drawer search and hero search */
  }

  .hero-section {
    padding: 2.5rem 0 2rem;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-search-input {
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    font-size: 0.95rem;
  }

  .tool-page-title {
    font-size: 1.65rem;
  }

  .tool-card, .results-card {
    padding: 1.25rem;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .features-grid, .steps-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bottom-flex {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .bottom-legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
  }

  .enquiry-card {
    padding: 1.5rem;
  }

  .enquiry-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .enquiry-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .enquiry-submit-btn {
    width: 100%;
  }

  .search-modal-backdrop {
    padding: 5vh 1rem 1rem;
  }
}

/* Small Mobile Phones (<= 480px) */
@media (max-width: 480px) {
  .site-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .category-card-grid {
    grid-template-columns: 1fr;
  }

  .tool-button-group {
    flex-direction: column;
  }

  .tool-button-group .btn {
    width: 100%;
  }

  .results-actions {
    flex-direction: column;
  }

  .results-actions .btn {
    width: 100%;
  }

  .segmented-control {
    flex-direction: column;
  }
}
