/* Style for the injected Advanced Search button */
.form-group.fc-search .custom-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px;
    /* Match existing buttons */
    margin: 5px;
    /* Space between buttons */
    background-color: #0073aa;
    /* Adjust to match theme */
    color: #ffffff;
    /* Text/icon color */
    text-decoration: none;
    border-radius: 4px;
    /* Match existing buttons */
    font-size: 14px;
    /* Match font size */
    font-weight: 500;
    /* Match font weight */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Icon styling for the button */
.form-group.fc-search .custom-button i.mi {
    margin-right: 8px;
    /* Space between icon and text */
    font-size: 16px;
    /* Match icon size */
}

/* Hover effect for the button */
.form-group.fc-search .custom-button:hover {
    background-color: #005f8c;
    /* Darker shade for hover */
    transform: translateY(-1px);
    /* Subtle lift effect */
}

/* Modal styling */
.custom-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background */
    z-index: 1000;
    overflow: auto;
}

.custom-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    /* Centered with top/bottom margin */
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    /* Max width for larger screens */
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Close button */
.custom-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.custom-modal-close:hover {
    color: #ff0000;
    /* Red on hover */
}

/* Iframe styling */
.custom-modal-iframe {
    width: 100%;
    height: 500px;
    /* Adjust height as needed */
    border: none;
    border-radius: 4px;
}

/* Responsive design for button */
@media (max-width: 768px) {
    .form-group.fc-search .custom-button {
        width: 100%;
        /* Full-width on smaller screens */
        margin: 5px 0;
        /* Vertical stacking */
    }
}

/* Responsive design for modal */
@media (max-width: 600px) {
    .custom-modal-content {
        width: 90%;
        margin: 10% auto;
    }

    .custom-modal-iframe {
        height: 400px;
        /* Adjust for smaller screens */
    }
}