
/**************************\
  Basic Modal Styles
\**************************/
#qs-error-message {
    margin-bottom: 5px;
    padding-top: 8px;
    padding-bottom: 5px;
}

#qs-processor-warning-message {
    margin-bottom: 5px;
    padding-top: 8px;
    padding-bottom: 5px;
}

#qs-contact-support {
    margin-bottom: 5px;
    border-top: 1px solid #dcdcdc;
    padding-top: 8px;
}

.modal {
    font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;
}

.modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal__container {
    background-color: #fff;
    padding: 0;
    max-width: 400px;
    max-height: 100vh;
    min-width: 300px;
    overflow-y: auto;
    box-sizing: border-box;
    border-radius: 10px;

}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1C6BB6;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.modal__title {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 600;
    padding: 10px;
    font-size: 18px;
    line-height: 1.25;
    color: #FFFFFF;
    box-sizing: border-box;
}

.modal__close {
    background: #1C6BB6;
    border: 0 !important;
    margin-right: 6px;
}

.modal__header .modal__close:before { content: "\2715"; }

.modal__content {
    margin-top: .8rem;
    margin-bottom: .8rem;
    line-height: 1.5;
    color: rgba(0,0,0,.8);
    padding: 10px 20px;
    text-align: left;
}

.modal__footer {
    position: relative;
    padding: 1.5rem;
    border-top: 1px solid #dcdcdc;
    background-color: #FFFFFF;
    text-align: right;
}

.modal__btn {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    font-family: "Roboto", Verdana, sans-serif;
    color: #fff;
    text-align: center;
    letter-spacing: .03em;
    border-radius: 7px;
    text-decoration: none;
    line-height: normal;
    font-weight: 200;
    font-size: 1.8rem;
    background-color: #e6e6e6;
    color: rgba(0,0,0,.8);
    cursor: pointer;
    -webkit-appearance: button;
    text-transform: none;
    overflow: visible;
    margin: 0;
    will-change: transform;
    -moz-osx-font-smoothing: grayscale;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    transition: -webkit-transform .25s ease-out;
    transition: transform .25s ease-out;
    transition: transform .25s ease-out,-webkit-transform .25s ease-out;
    border: 1px solid #BBBBBB;
    box-shadow: -1px 1px 0 0 #999999;
    text-shadow: none;
}

.modal__btn:focus, .modal__btn:hover {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

.modal__btn-primary {
    background-color: #00449e;
    color: #fff;
}



/**************************\
  Demo Animation Style
\**************************/
@keyframes mmfadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes mmfadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes mmslideIn {
    from { transform: translateY(15%); }
    to { transform: translateY(0); }
}

@keyframes mmslideOut {
    from { transform: translateY(0); }
    to { transform: translateY(-10%); }
}

.micromodal-slide {
    display: none;
}

.micromodal-slide.is-open {
    display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
    animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
    animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
    animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
    animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
    will-change: transform;
}

/**************************\
  Media Styles for Mobile Devices
\**************************/
@media (max-width: 768px) {
    .modal__container {
        max-width: 95%; /* Allows modal to use more of the screen width on small devices */
        border-radius: 10px; /* Optional: Adjust for smaller screens */
    }

    .modal__content, .modal__footer {
        padding: 8px 15px; /* Adjust padding to be more suitable for smaller screens */
    }

    .modal__title {
        font-size: 16px; /* Adjust font size for smaller screens */
        padding: 8px; /* Adjust padding to reduce space */
    }

    .modal__btn {
        padding: 0.3rem 1rem; /* Adjust button padding */
        font-size: 1.6rem; /* Adjust button font size for easier reading and interaction */
    }
}

@media (max-width: 480px) {
    .modal__container {
        min-width: 90%; /* Increase minimum width to use more of the screen on very small devices */
    }

    .modal__title {
        font-size: 14px; /* Further reduce font size for very small devices */
    }

    .modal__btn {
        font-size: 1.4rem; /* Further adjust button font size */
    }
}