/* Final mobile fixes for animations and form */

/* Fix for off-center animations on mobile */
@media (max-width: 768px) {
  /* Fix corona effect centering */
  .blog-cover img.foreground.corona-effect {
    margin: 0 auto !important;
    display: block !important;
    max-width: 150px !important;
  }
  
  /* Fix any floating animations */
  .blog-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  /* Ensure background blur is centered too */
  .blog-cover img.background {
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 auto !important;
  }
  
  /* Fix checkbox label layout */
  .contact-form label[for="privacy-consent"] {
    display: block !important;
    margin-bottom: 10px;
  }
  
  /* Fix checkbox container */
  .contact-form div[style*="display: flex"] {
    display: block !important;
  }
  
  /* Fix checkbox and text alignment */
  .contact-form input[type="checkbox"] {
    display: inline-block !important;
    vertical-align: top !important;
    margin-right: 8px !important;
    flex-shrink: 0;
  }
  
  /* Fix checkbox label text wrapping */
  .contact-form label span {
    display: inline-block !important;
    width: calc(100% - 30px) !important;
    vertical-align: top !important;
  }
  
  /* Alternative fix for the consent container */
  #privacy-consent {
    float: left;
    margin-top: 2px !important;
  }
  
  #privacy-consent + span {
    display: block;
    margin-left: 28px;
    line-height: 1.4;
  }
  
  /* Clear float after checkbox */
  .contact-form label[style*="cursor: pointer"]::after {
    content: "";
    display: table;
    clear: both;
  }
  
  /* Fix form container height on mobile */
  .contact-form {
    min-height: auto !important;
    height: auto !important;
  }
  
  /* Fix form wrapper to show all content */
  div.contact-form[style*="overflow: hidden"] {
    overflow: visible !important;
  }
  
  /* Ensure submit button is visible */
  .contact-form .send-button {
    margin-bottom: 20px !important;
  }
  
  /* Fix form padding on mobile */
  form.contact-form {
    padding: 20px !important;
    padding-bottom: 30px !important;
  }
  
  /* Force form to show all content */
  .container.blog.main {
    overflow: visible !important;
    min-height: auto !important;
  }
  
  /* Fix viewport issues */
  body {
    overflow-x: hidden;
    overflow-y: auto !important;
  }
  
  /* Ensure form elements are visible */
  .contact-form input[type="checkbox"],
  .contact-form button,
  .contact-form .send-button {
    position: relative !important;
    z-index: 10 !important;
    display: block !important;
    visibility: visible !important;
  }
  
  /* Fix checkbox container specifically */
  .contact-form div[style*="margin: 20px 0"] {
    display: block !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  
  /* Fix button container */
  .contact-form div[style*="text-align: center"] {
    display: block !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
}