/* ==============================================
   CONTACT PAGE RESPONSIVE FIXES
   ============================================== */

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  /* Body and Layout */
  body {
    padding-top: 0 !important; /* Remove padding since using modern header */
  }
  
  /* Hero Section */
  .contact-hero {
    padding: 60px 15px !important;
  }
  
  .contact-hero h1 {
    font-size: clamp(28px, 8vw, 48px) !important;
    margin-bottom: 20px !important;
  }
  
  .contact-hero .subtitle {
    font-size: 16px !important;
    max-width: 100% !important;
  }
  
  /* Container */
  .contact-container {
    padding: 40px 15px !important;
  }
  
  /* Contact Grid */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
    margin-bottom: 40px !important;
  }
  
  /* Contact Cards */
  .contact-card {
    padding: 30px 20px !important;
    border-radius: 15px !important;
  }
  
  .contact-card:hover {
    transform: translateY(-5px) !important;
  }
  
  /* Form Section (if exists) */
  .contact-form {
    padding: 30px 20px !important;
    border-radius: 15px !important;
  }
  
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    padding: 16px !important;
    font-size: 16px !important; /* Prevent zoom on iOS */
  }
  
  .contact-form button {
    padding: 18px !important;
    font-size: 16px !important;
  }
}

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Hero Section */
  .contact-hero {
    padding: 70px 20px !important;
  }
  
  .contact-hero h1 {
    font-size: 42px !important;
  }
  
  .contact-hero .subtitle {
    font-size: 18px !important;
  }
  
  /* Container */
  .contact-container {
    padding: 50px 20px !important;
  }
  
  /* Contact Grid */
  .contact-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
  }
  
  /* Contact Cards */
  .contact-card {
    padding: 35px 25px !important;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  /* Even smaller adjustments */
  .contact-hero {
    padding: 50px 12px !important;
  }
  
  .contact-container {
    padding: 30px 12px !important;
  }
  
  .contact-grid {
    gap: 20px !important;
  }
  
  .contact-card {
    padding: 25px 15px !important;
  }
  
  .contact-card:hover {
    transform: translateY(-3px) !important;
  }
}

/* Large Desktop (min-width: 1200px) */
@media (min-width: 1200px) {
  /* Ensure proper spacing on large screens */
  .contact-container {
    max-width: 1200px !important;
  }
  
  .contact-grid {
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Prevent horizontal overflow */
@media (max-width: 768px) {
  .contact-hero,
  .contact-container,
  .contact-grid,
  .contact-card,
  .contact-form {
    overflow-x: hidden !important;
  }
  
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    max-width: 100% !important;
  }
}
