/* Qgiv Modal Styles */

/* Qgiv Button */
.w3qe-qgiv-btn,
.em.pixelbones .w3qe-qgiv-btn {
    background: #cd6e27 !important;
    background-color: #cd6e27 !important;
    color: #FFF !important;
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.w3qe-qgiv-btn:hover {
    background: #b5601f !important;
    color: #FFF !important;
    text-decoration: none;
}

/* Fullscreen overlay with scrollable content */
.w3qe-qgiv-embed-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    overflow-y: auto;
    z-index: 9999;
}

/* The Qgiv iframe */
.w3qe-qgiv-iframe {
    width: 100%;
    height: 1500px; /* Estimated height of embedded form */
    border: none;
    display: block;
}

/* Invisible click trap over the Qgiv close button */
.w3qe-qgiv-close-trap {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    z-index: 10000;
    cursor: pointer;
    opacity: 0;
}

@media screen and (min-width: 576px) {
    .w3qe-qgiv-close-trap {
        top: 64px;
        right: 3%;
    }
}

@media screen and (min-width: 1280px) {
    .w3qe-qgiv-close-trap {
        right: calc(50% - 600px);
    }
}

/* Invisible click trap over the Qgiv sign-in link */
.w3qe-qgiv-signin-trap {
    position: absolute;
    top: 160px;
    right: 20px;
    width: 80px;
    height: 30px;
    z-index: 10000;
    cursor: pointer;
    opacity: 0;
}

@media screen and (min-width: 576px) {
    .w3qe-qgiv-signin-trap {
        top: 225px;
        right: 11%;
    }
}

@media screen and (min-width: 768px) {
    .w3qe-qgiv-signin-trap {
        top: 170px;
        right: 38%;
    }
}

@media screen and (min-width: 1200px) {
    .w3qe-qgiv-signin-trap {
        top: 150px;
    }
}

@media screen and (min-width: 1280px) {
    .w3qe-qgiv-signin-trap {
        right: calc(50% - 160px);
    }
}

/* Event registration container styling */
.qgiv-event-registration {
    margin-top: 30px;
    text-align: center;
}