/* Media Queries - Desktop First Approach */

/* Desktop: Center the form modal in the viewport */
@media (min-width: 769px) {
  .ios26-preview .form-modal-content {
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

/* Mobile: Position form modal near the button (dynamic positioning handled by JS) */
@media (max-width: 768px) {
  .ios26-preview .form-modal-content {
    transform: translateX(-50%);
  }
}

@media (max-width: 1156px) {
  .ios26-preview .intro-image {
    max-width: 100%;
    height: auto;
  }
  .ios26-preview .intro-image-container {
    max-width: 100%;
  }
  .ios26-preview .max-w-6xl {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .ios26-preview .blackout-section {
    flex-direction: column;
    gap: clamp(0.5rem, 2vw, 1rem);
  }
  .ios26-preview .blackout-section .image-content {
    max-width: 100%;
  }
  .ios26-preview .intro-image {
    height: auto;
  }
  
  .ios26-preview .form-modal {
    height: 100vh;
    -webkit-overflow-scrolling: touch;
  }
  
  .ios26-preview .form-modal-content {
    position: absolute;
    max-height: 85vh;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 480px) {
  .ios26-preview .section-header,
  .ios26-preview .blackout-header,
  .ios26-preview .subheader {
    font-size: clamp(1.5rem, 4vw, 2rem) !important;
  }
  .ios26-preview .section-bg,
  .ios26-preview .py-16 {
    padding-top: clamp(1rem, 3vw, 2rem);
    padding-bottom: clamp(1rem, 3vw, 2rem);
  }
  .ios26-preview .feature-card {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    padding: clamp(8px, 2vw, 10px);
  }
  .ios26-preview .photo-field {
    padding: clamp(2px, 1vw, 5px);
  }
  .ios26-preview .feature-card:hover,
  .ios26-preview .photo-field:hover {
    transform: none;
    box-shadow: none;
  }
  .ios26-preview .device-grid.scrolled > div {
    transform: none;
  }
  .ios26-preview .intro-image {
    height: auto;
  }
  .ios26-preview .contact-card {
    margin: 2rem auto;
  }
}

@media (min-width: 1280px) {
  .ios26-preview .photo-field {
    max-width: clamp(600px, 80vw);
  }
}

