/* Vimeo Video Popup Specific Styles */
    #botbuilt-vid-vimeo-popup {
      height: auto; /* Allow height to be determined by content (padding-bottom hack) */
      padding: 20px;
    }

    /* Modal Container Styling */
    #botbuilt-vid-vimeo-popup {
      display: none; /* Hidden by default */
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%); /* Center the popup */
      width: 90%; /* Wider on larger screens */
      max-width: 960px; /* Max width for large screens */
      height: auto; /* Allow height to be determined by content (padding-bottom hack) */
      background: #000;
      z-index: 9998;
      border-radius: 12px; /* Rounded corners for the popup */
      padding: 20px; /* Add padding to accommodate the close button */
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); /* Subtle shadow */
    }

    /* Vimeo Embed Container - Using padding-bottom hack for aspect ratio */
    #botbuilt-vid-vimeo-popup > div {
      position: relative;
      width: 100%;
      padding-bottom: 56.25%; /* 16:9 aspect ratio (height is 56.25% of width) */
      height: 0; /* Important for padding-bottom hack */
      overflow: hidden; /* Move overflow hidden here */
      border-radius: 12px; /* Match popup border-radius */
    }

    /* Vimeo Iframe */
    #botbuilt-vid-vimeo-player {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: 0; /* Remove iframe default border */
      border-radius: 12px; /* Match popup border-radius */
    }
    
    #takeoff-vid-vimeo-player {
      border: 0; /* Remove iframe default border */
      border-radius: 12px; /* Match popup border-radius */
    }

    /* Thank You Popup Specific Styles */
    #thank-you-popup {
      display: none; /* Hidden by default */
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%); /* Center the popup */
      width: 90%; /* Wider on larger screens */
      max-width: 500px; /* Max width for large screens */
      background: #000000; /* Match website's black background */
      padding: 40px;
      z-index: 9999;
      border-radius: 12px;
      /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); */
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      min-height: 250px;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
      border: 2px solid rgba(255, 255, 255, 0.5); /* Subtle white border */
      box-shadow: 0 0 40px rgba(220, 30, 53, 0.3); /* Very subtle red glow */
    }

    #thank-you-popup h2 {
      color: #ffffff;
      font-size: 28px;
      font-weight: 600;
      margin-bottom: 20px;
      line-height: 1.3;
    }

    #thank-you-popup p {
      color: #ffffff;
      font-size: 18px;
      line-height: 1.6;
      margin-bottom: 30px;
    }

    /* Red accent button styling */
    #thank-you-popup .action-button {
      background-color: #dc1e35; /* BotBuilt red */
      color: #ffffff;
      padding: 12px 24px;
      border: none;
      border-radius: 6px;
      font-size: 16px;
      font-weight: 500;
      cursor: pointer;
      transition: background-color 0.2s ease-in-out;
    }

    #thank-you-popup .action-button:hover {
      background-color: #b91929; /* Darker red on hover */
    }

    /* Responsive adjustments for the popup */
    @media (min-width: 768px) {
      #botbuilt-vid-vimeo-popup {
        width: 80%; /* Adjusted width for medium screens */
      }
      #thank-you-popup {
        width: 80%;
      }
    }

    .thank-you-content h2 {
      color: #ffffff;
      font-size: 2.2rem;
      font-weight: 700;
      margin-bottom: 15px;
    }

    .thank-you-content p {
      color: #cbd5e0; /* Lighter grey for paragraph text */
      font-size: 1.1rem;
      line-height: 1.6;
      margin-bottom: 0; /* No bottom margin, as there's no button below */
    }

    /* Common close button styles for both popups */
    .vimeo-close-button {
      position: absolute;
      top: -20px;
      right: -20px;
      width: 40px;
      height: 40px;
      background-color: rgba(0, 0, 0, 0.8);
      color: white;
      border: 2px solid rgba(255, 255, 255, 0.7);
      border-radius: 50%;
      font-size: 24px;
      font-weight: 300;
      line-height: 1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease-in-out;
      z-index: 10000; /* Ensure it's above the popup */
    }

    .vimeo-close-button:hover {
      background-color: rgba(0, 0, 0, 0.95);
      border-color: rgba(255, 255, 255, 1);
      transform: scale(1.1);
    }
    
    /* Takeoff page custom CSS for taking the entire page */
    .page-id-871 {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }
    
    .page-id-871 #main-content {
      flex: 1;
    }