/* Example of a disabled state */
.hed-top{
    font-size: 18px;
    text-align: center;
    padding:0;
}

.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.cf7-close {
    display: none !important; /* Initially hide the "X" icon */
}

.cf7-popup.show .cf7-close {
    display: block !important; /* Show "X" icon when popup is visible */
}

.cf7-popup textarea.textareahome {
    height: 60px !important;
}

.cf7-popup .cf7-close {
    margin-top: -15px;
}

.cf7-popup .buttonapplyhome {
    margin-top: 20px;
}

.cf7-popup .wpcf7-form p+p {
    margin-top: -12px !important;
}

/* Hiding the popup by default */
.cf7-popup {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    top: 0;
    right: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 1000; /* Sit on top */
    overflow: hidden; /* Disable scroll on background */
}

/* Popup content wrapper */
.cf7-popup-content {
    position: absolute;
    top: 35%;
    right: 0;
    height:auto;
    background-color: #fff;
    width: 90%; /* Responsive width */
    max-width: 400px; /* Maximum width */
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 10px;
    overflow-y: auto; /* Enable scroll for form content if needed */
}

/* Show the popup by setting display to block */
.cf7-popup.show {
    display: block;
}

/* Close button */
.cf7-close {
    color: #FFF;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    background-color: #0A2342;
    padding: 0 5px;
    border-radius: 50px;
    
}

.cf7-close:hover,
.cf7-close:focus {
    color: black;
    text-decoration: none;
}

/* Fixed position button */
#cf7-open-popup {
    position: fixed;
    right: 20px;
    bottom: 20px;
    /*background-color: #0A2342;*/
    color: white;
    border: none;
    /*padding: 10px 20px;*/
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001; /* Above the popup background */
}

#cf7-open-popup:hover {
    /*background-color: #F4A300;*/
}

/* Icon styles */
#cf7-open-popup i {
    font-size: 24px;
}

/* Responsive adjustments for mobile */
@media only screen and (max-width: 767px) {
    #cf7-open-popup {
        right: 10px;
        bottom: 60px;
    }
}

@media (max-width: 980px) {
    .cf7-popup-content{
        top: 15%;
        width: 95%;
        margin-right: 10px;
        height: auto;
    }
}
