/* Modal Styles */
.modal-dialog {
    display: none; /* Hide the modal by default */
    position: fixed; /* Fixed position */
    z-index: 1000; /* Overlay the modal on top of other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scrolling if needed */
    background-color: rgba(0, 0, 0, 0.4); /* Black background with transparency */
}

.modal-dialog .modal-content {
    background-color: #fefefe;
    padding: 10px 20px;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #888;
    max-width: 80%;
    max-height: 80%;
    overflow: auto;
    box-sizing: border-box;
}

.modal-dialog #modal-content {
    padding-bottom: 5px;
}

.modal-dialog #button-group {
    text-align: right;
    border-top: 1px solid #f0f0f0;
}

.modal-dialog .modal-button {
    display: inline-block;
    padding: 5px 11px 6px;
    background-color: #eeeeee;
    z-index: 1;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    font-size: inherit;
    border: 1px solid #dcdcdc;
    border-radius: 3px;
}

.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #ffcf00; /* yellow */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media screen and (max-width: 767px) {
    .modal-dialog .modal-content{
        width: 90%;
        max-width: 90%;
    }
    .modal-dialog #modal-content,
    #modal-content .c-form-download__item,
    #modal-content p,
    .modal-dialog .modal-button{
        font-size: 2.8rem;
    }
}