
.modal {
    display: none; 
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
  }
  .modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 5px;
    border: 0px solid #888;
    width: 100%;
    max-width: 600px;
    border-radius: 5px;
    text-align: center;
  }
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  
  
  
  
  /* Modal Background */
  .modal1 {
    display: none;
    position: fixed;
    z-index: 5;
    left: 0;
    top: 50px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto; /* Enables scrolling if needed */
  }
  
  /* Modal Content */
  .modal-content1 {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  
  /* Two-column layout */
  .popup-container1 {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 540px; /* Prevents form from being cut */
  }
  
  /* Left Column: Image */
  .popup-left1 {
    width: 50%;
  }
  .popup-left1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
  }
  
  /* Right Column: Iframe Form */
  .popup-right1 {
    width: 50%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .popup-right1 iframe {
    width: 100%;
    height: 100%; /* Ensures iframe fills space */
    min-height: 500px; /* Prevents cutting issue */
    border: none;
  }
  
  /* Close Button */
  .close {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 25px;
    cursor: pointer;
    background: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  }
  .close:hover {
    color: red;
  }
  
  /* Responsive: Hide Image & Adjust Layout */
  @media (max-width: 600px) {
    .popup-container1 {
      flex-direction: column;
      min-height: auto;
      height: auto; /* Allows form to adjust */
    }
    .popup-left1 {
      display: none; /* Hides image */
    }
    .popup-right1 {
      width: 100%;
    }
    .popup-right1 iframe {
      min-height: 520px; /* Prevents blank space issue */
    }
  }
  
  /* Floating Button */
  .widget-button {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6600;
    color: white;
    padding: 12px 15px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: all 0.3s ease;
    writing-mode: vertical-rl;
    text-align: center;
    animation: flicker 1.5s infinite alternate; /* Flickering effect */
  }
  
  /* Flickering Animation */
  @keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
  }
  
    .widget-button:hover {
        background: #e65c00;
    }
  
    /* Widget Container */
    .widget-container {
        position: fixed;
        right: -380px; /* Initially hidden */
        top: 50%;
        transform: translateY(-50%);
        width: 370px;
        height: 590px;
        background: white;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        border-radius: 10px;
        z-index: 10001;
        transition: right 0.4s ease;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
  
    .widget-container.active {
        right: 10px; /* Slide-in */
    }
  
    /* Widget Header */
    .widget-header {
        background: #ff6600;
        color: white;
        padding: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }
  
    .widget-title {
        font-weight: bold;
        font-size: 16px;
    }
  
    .widget-close {
        font-size: 20px;
        cursor: pointer;
        background: white;
        color: #ff6600;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: bold;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }
  
    /* Widget Content */
    .widget-content {
        flex-grow: 1;
        overflow-y: auto;
        padding: 10px;
    }
  
    iframe {
        width: 100%;
        height: 100%;
        border: none;
    }
  
    /* Responsive */
    @media (max-width: 600px) {
        .widget-container {
            width: 90%;
            right: -90%;
            height: 66vh;
        }
  
        .widget-container.active {
            right: 5%;
        }
    }
  
  
  