/* ================ */
/* Base Styles */
/* ================ */
:root {
  --primary-color: #0074D9;
  --secondary-color: #00c3ff;
  --dark-color: #222;
  --light-color: #f8f9fa;
  --text-color: #333;
  --white: #fff;
  --black: #000;
  --yellow-accent: #F5C400;
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: var(--light-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

*, *:before, *:after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}


/* ================ */
/* Header & Logo */
/* ================ */
header {
  background: linear-gradient(to right, #0057d9, #ffffff);
  text-align: center;
  padding: 20px 70px 20px 20px;
  position: relative;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-container {
  text-align: center;
  padding: 0;
  margin: 0 auto;
}

.logo-img {
  width: 250px;
  height: auto;
  max-width: 80%;
  animation: fadeIn 0.8s ease-in;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-img:hover {
  opacity: 0.9;
  transform: scale(1.02);
}


/* Auth section */
.auth-section {
  padding: 1rem;
  text-align: right;
  background: #f5f5f5;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auth-btn {
  background: #0074D9;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

/* Profile page */
.profile-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ================ */
/* Navigation - Enhanced for Mobile */
/* ================ */
.navbar {
  background-color: var(--dark-color);
  display: flex;
  justify-content: center;
  padding: 10px 0;
  position: relative;
  width: 100%;
}

.navbar-container {
  background-color: var(--dark-color);
  padding: 0;
  position: relative;
  width: 100%;
}

.navbar-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar-links a {
  color: var(--white);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: bold;
}

.navbar a:hover, 
.navbar a.active {
  background-color: var(--primary-color);
  color: white;
}

/* ================ */
/* Mobile Menu Toggle - Fixed Alignment */
/* ================ */
.menu-toggle {
  display: none;
  position: fixed;
  right: 20px;
  top: 20px;
  width: 56px;
  height: 56px;
  background: var(--primary-color);
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  -webkit-tap-highlight-color: transparent;

  /* Center all content */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Icon alignment */
.menu-toggle .hamburger,
.menu-toggle .close {
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.menu-toggle .close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .hamburger {
  display: none;
}

.menu-toggle[aria-expanded="true"] .close {
  display: flex;
}

.menu-toggle:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Backdrop filter support */
@supports (backdrop-filter: blur(5px)) {
  .navbar-links {
    backdrop-filter: blur(5px);
    background-color: rgba(34, 34, 34, 0.95);
  }
}

/* Prevent body scroll when menu is open */
body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Android Chrome form fix */
@media (-webkit-min-device-pixel-ratio:0) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* ================ */
/* Responsive Design - Mobile */
/* ================ */
@media (max-width: 768px) {
  .navbar {
    padding: 0;
    flex-direction: column;
    height: auto;
    min-height: 60px;
  }
  
  .navbar-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--dark-color);
    z-index: 1000;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 100px;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    gap: 0;
  }
  
  .navbar-links.active {
    transform: translateX(0);
  }

  .menu-toggle {
    display: flex;
  }

  .navbar-links li {
    width: 100%;
    margin: 0;
    text-align: center;
  }

  .navbar-links a {
    display: block;
    padding: 18px 20px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    font-size: 1.1rem;
  }

  .logo-img {
    width: 180px;
  }

  header {
    padding: 15px 70px 15px 15px;
  }

  /* Hero section */
  .hero {
    padding: 60px 20px;
    margin-top: 0;
  }

  .hero h1 {
    font-size: 2rem;
    margin-top: 0;
  }

  .hero p {
    font-size: 1.1rem;
  }

  /* Form fixes */
  input, select, textarea {
    min-height: 48px;
    font-size: 16px;
  }

  /* Button enhancements */
  .btn, button {
    min-height: 48px;
    padding: 12px 24px;
  }

   /* Modal adjustments*/
  .modal-content {
    padding: 20px 15px;
  }
  
  #contact-form input,
  #contact-form textarea {
    padding: 10px;
  }


  /* Layout adjustments */
  .section {
    padding: 40px 15px;
  }

  .features, 
  .pricing-options, 
  .vehicle-grid,
  .listings-grid,
  .insurance-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

   .search-filter-container {
    gap: 15px;
  }
  
  .filter-controls {
    flex-direction: column;
  }
  
  .filter-controls select, 
  .filter-controls button,
  .search-box input {
    width: 100%;
  }
  
  .search-box {
    flex-direction: column;
  }

  /* Listing specific mobile styles */
  .listing-image-container {
    height: 180px;
  }
  
  .card-header {
    padding: 12px;
  }
  
  .listing-details {
    padding: 12px;
  }
}

  /* Safe area insets for notches */
  @supports (padding: max(0px)) {
    body {
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);
    }
    
    .navbar-links {
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);
      padding-bottom: max(20px, env(safe-area-inset-bottom));	
    }
    
    .floating-cta {
      bottom: calc(20px + env(safe-area-inset-bottom));
      right: calc(20px + env(safe-area-inset-right));
    }
  }
}

/* iPhone 5/SE specific */
@media (max-width: 320px) {
  .hero h1 {
    font-size: 1.7rem;
  }
  
  .logo-img {
    width: 150px;
  }

  .menu-toggle {
    width: 48px;
    height: 48px;
    right: 15px;
    top: 15px;
  }

  .menu-toggle .hamburger,
  .menu-toggle .close {
    font-size: 24px;
  }

  .hero {
    padding: 40px 15px;
  }
  
  .section {
    padding: 30px 15px;
  }

}

/* ================ */
/* Hero Sections */
/* ================ */
.hero {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
  margin-top: 0;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

.yellow-hero {
  background: linear-gradient(to right, var(--yellow-accent), #FFD700);
  color: var(--black);
}

.yellow-hero h1 {
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

/* ================ */
/* Content Sections */
/* ================ */
.section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  font-size: 2rem;
}

/* Feature Cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.feature-card {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-card h3 {
  color: var(--primary-color);
  margin-top: 0;
  font-size: 1.5rem;
}

.feature-card p {
  margin-bottom: 25px;
}

/* ================ */
/* Vehicle Listings */
/* ================ */
.vehicle-grid, .listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.vehicle-card, .listing-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.vehicle-card:hover, .listing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* ================ */
/* Listing Image Styles - UPDATED */
/* ================ */
.listing-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.listing-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.listing-image:hover {
  transform: scale(1.03);
}

.image-placeholder {
  color: #999;
  font-size: 16px;
  text-align: center;
  padding: 20px;
}

.image-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-fallback.hidden {
  display: none;
}

.card-header {
  padding: 15px;
  background: var(--primary-color);
  color: white;
}

.card-header h3 {
  margin: 0 0 5px 0;
  font-size: 1.2rem;
}

.tlc-plate {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

.price-badge {
  background: var(--yellow-accent);
  color: var(--black);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: bold;
  float: right;
}

.listing-details {
  padding: 15px;
}

.listing-details p {
  margin: 8px 0;
}

.contact-info {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.phone-number {
  font-family: monospace;
  letter-spacing: 1px;
}

/* ================ */
/* Pricing Options */
/* ================ */
.pricing-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.pricing-card {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-top: 4px solid var(--yellow-accent);
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-card h3 {
  color: var(--yellow-accent);
  margin-top: 0;
  font-size: 1.3rem;
}

.pricing-card .price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 15px 0;
}

.pricing-card ul {
  padding-left: 20px;
  margin: 15px 0;
}

.pricing-card li {
  margin-bottom: 8px;
  position: relative;
}

.pricing-card li::before {
  content: "•";
  color: var(--yellow-accent);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* ================ */
/* Steps */
/* ================ */
.steps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px 0;
}

.step {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 20px;
  position: relative;
}

.step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  line-height: 40px;
  font-weight: bold;
  margin-bottom: 15px;
}

/* ================ */
/* Partners */
/* ================ */
.partners {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin: 40px 0;
}

.partner {
  text-align: center;
  max-width: 300px;
}

.partner img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--primary-color);
}

/* ================ */
/* Insurance Specific */
/* ================ */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.insurance-card {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-left: 4px solid var(--yellow-accent);
}
.contact-btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s;
  width: 100%;
  text-align: center;
}

.contact-btn:hover {
  background: #005ea6;
}

.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--yellow-accent);
  color: var(--black);
  padding: 12px 20px;
  border-radius: 50px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 100;
  transition: all 0.3s;
}

.floating-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* ================ */
/* Forms */
/* ================ */
form {
  background-color: var(--white);
  padding: 30px;
  max-width: 600px;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

input, select, textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

select[multiple] {
  height: auto;
  min-height: 120px;
}

.services-select, .shift-select {
  height: auto;
  min-height: 120px;
  padding: 10px;
}

.services-select option, .shift-select option {
  padding: 8px;
  margin: 4px 0;
  background: #FFFBE6;
  border-radius: 4px;
}

.services-select option:checked, 
.shift-select option:checked {
  background: var(--yellow-accent);
  color: white;
  font-weight: bold;
}

.shift-select option.selected {
  background: var(--yellow-accent);
  color: #000;
}

.file-input {
  border: 2px dashed var(--primary-color);
  padding: 20px;
  text-align: center;
  background: rgba(0,116,217,0.05);
  cursor: pointer;
}

.file-input:hover {
  background: rgba(0,116,217,0.1);
}

.file-input::file-selector-button {
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  margin-right: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.file-input::file-selector-button:hover {
  background: #005ea6;
}

.file-upload-container {
  text-align: center;
  margin: 20px 0;
}

#csv-filename {
  display: block;
  margin-top: 10px;
  font-style: italic;
}

.loading {
  display: none;
  padding: 10px;
  background: #f0f0f0;
  border-radius: 4px;
  margin-top: 10px;
  text-align: center;
  font-weight: bold;
}

/* Error message styling */
.hidden {
  display: none !important;
}

#error-message {
  background: #ffebee;
  color: #c62828;
  padding: 15px;
  border-radius: 4px;
  margin: 20px 0;
  text-align: center;
}

/* Loading message */
#loading-message {
  text-align: center;
  padding: 20px;
  font-size: 1.2rem;
  color: #0074D9;
}

/* Listing cards */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.listing-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
}

.no-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #666;
}

/* ================ */
/* Buttons & CTAs */
/* ================ */
.btn, button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.btn:hover, button:hover {
  background-color: #005ea6;
  transform: translateY(-2px);
}

.btn:disabled, button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

.btn.secondary {
  background-color: var(--yellow-accent);
  color: var(--black);
}

.btn.secondary:hover {
  background-color: #e0b000;
}

/* ================ */
/* Testimonials */
/* ================ */
.testimonial {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin: 20px 0;
  border-left: 5px solid var(--primary-color);
}

.testimonial blockquote {
  font-style: italic;
  margin: 0 0 15px;
  font-size: 1.1rem;
}

.testimonial p {
  font-weight: bold;
  margin: 0;
  color: var(--primary-color);
}

/* ================ */
/* Verification Badges */
/* ================ */
.verified-badge {
  background: var(--yellow-accent);
  color: var(--black);
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
  display: inline-block;
}

/* ================ */
/* Listing Badges */
/* ================ */
.new-badge {
  background: var(--yellow-accent);
  color: var(--black);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  animation: pulse 2s infinite;
}

.favorite-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,0.8);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ====Listings Page Styles==== */
.listing-card:hover {
  transform: translateY(-5px);
}

.card-header {
  padding: 15px;
  background: #0074D9;
  color: white;
}

.card-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.tlc-plate {
  margin: 5px 0 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.images {
  height: 200px;
  overflow: hidden;
  background: #f5f5f5;
}

.images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
}

.listing-details {
  padding: 15px;
}

.listing-details p {
  margin: 5px 0;
}

.contact-info {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.no-listings {
  text-align: center;
  padding: 40px;
  font-size: 1.2rem;
  color: #666;
}

/* ================ */
/* Listing Image Styles */
/* ================ */
.listing-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.listing-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.listing-image:hover {
  transform: scale(1.03);
}

.image-placeholder {
  color: #999;
  font-size: 16px;
  text-align: center;
  padding: 20px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .listing-image-container {
    height: 180px;
  }
}


/* ================ */
/* Modal Styles */
/* ================ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: var(--viewport-height, 100vh); 
  padding-right: var(--scrollbar-width, 0px);
  overscroll-behavior: none;
  touch-action: none; 
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-color);
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--primary-color);
}

/* Modal Form Styles */
#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ================ */
/* Listings Controls */
/* ================ */
.listings-controls {
  background: var(--white);
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.search-filter-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-box {
  display: flex;
  gap: 10px;
}

.search-box input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-controls select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}

.price-badge {
  background: var(--yellow-accent);
  color: var(--black);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: bold;
  float: right;
}

/* ================ */
/* Utility Classes */
/* ================ */
.loading {
  text-align: center;
  padding: 15px;
  color: var(--primary-color);
  font-weight: bold;
  display: none;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.loading:before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,116,217,0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
  vertical-align: middle;
}

.form-feedback {
  margin-top: 15px;
  font-weight: bold;
  padding: 10px;
  border-radius: 4px;
}

.form-feedback.success {
  background: #d4edda;
  color: #155724;
}

.form-feedback.error {
  background: #f8d7da;
  color: #721c24;
}

/* ================ */
/* Loading & Error States */
/* ================ */
.loading-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.loading-state .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0,116,217,0.1);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

.error-state, .no-results {
  text-align: center;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 20px 0;
  display: none;
}

.error-state p, .no-results p {
  margin-bottom: 15px;
  color: #666;
}

/* ================ */
/* Pagination */
/* ================ */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
  padding: 20px;
}

.pagination-controls button {
  padding: 8px 16px;
  min-width: 100px;
}

.phone-number {
  font-family: monospace;
}

/* ================ */
/* Footer */
/* ================ */
footer {
  background-color: var(--black);
  color: var(--white);
  text-align: center;
  padding: 40px 20px;
  margin-top: 50px;
}

footer a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ================ */
/* Animations */
/* ================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}