/* Emergency form visibility fix */
@media all {
  /* Remove ALL height restrictions */
  .contact-form,
  form.contact-form,
  .container.blog.main {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  
  /* Force form to expand */
  form.contact-form {
    display: block !important;
    padding: 20px !important;
    padding-bottom: 40px !important;
  }
  
  /* Make absolutely sure checkbox and button are visible AND clickable */
  .contact-form input[type="checkbox"],
  .contact-form button,
  .contact-form .send-button,
  .contact-form div[style*="margin: 20px 0"],
  .contact-form div[style*="text-align: center"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 999 !important;
    pointer-events: auto !important;
  }
  
  /* Fix checkbox specifically */
  #privacy-consent {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    position: relative !important;
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
  }
  
  /* Ensure the label is clickable */
  label[for="privacy-consent"] {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 998 !important;
    position: relative !important;
    display: inline-block !important;
  }
  
  /* Fix checkbox container */
  .checkbox-container {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1000 !important;
    display: block !important;
    clear: both !important;
  }
  
  /* Force checkbox container to show */
  .contact-form label[style*="display: flex"] {
    display: flex !important;
    margin: 20px 0 !important;
    padding: 10px 0 !important;
  }
  
  /* Force button container to show */
  .contact-form > div:last-child {
    display: block !important;
    margin: 20px 0 !important;
    padding: 10px 0 !important;
  }
  
  /* Remove any absolute positioning that might hide elements */
  .contact-form * {
    position: relative !important;
  }
  
  /* Ensure body doesn't cut off content */
  body {
    overflow-y: scroll !important;
    overflow-x: hidden !important;
  }
  
  /* Make sure the form section has enough space */
  #contact,
  div:has(> form.contact-form) {
    padding-bottom: 100px !important;
    margin-bottom: 50px !important;
  }
}

/* Mobile specific overrides */
@media (max-width: 768px) {
  /* Force full viewport height if needed */
  html, body {
    height: auto !important;
    min-height: 100vh !important;
  }
  
  /* Ensure form container doesn't hide content */
  .container {
    overflow: visible !important;
  }
  
  /* Make form elements stack properly */
  .contact-form label,
  .contact-form input,
  .contact-form textarea,
  .contact-form div {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Fix checkbox label */
  .contact-form label[style*="display: flex"] {
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
  }
  
  .contact-form input[type="checkbox"] {
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    pointer-events: auto !important;
    cursor: pointer !important;
  }
  
  /* Ensure button is clickable */
  .contact-form .send-button {
    width: 100% !important;
    min-height: 50px !important;
    display: block !important;
    margin: 20px 0 !important;
    padding: 15px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
  }
}

/* Remove any overlay that might be blocking clicks */
.contact-form::before,
.contact-form::after,
form.contact-form::before,
form.contact-form::after {
  display: none !important;
}

/* Ensure no invisible elements are blocking */
* {
  pointer-events: none;
}

body,
form,
input,
button,
label,
.contact-form,
.contact-form *,
form.contact-form,
form.contact-form * {
  pointer-events: auto !important;
}