/* ===== POPUP & MODAL STYLES ===== */

/* Popup Styles */
#popup {
    overflow: hidden;
    position: fixed;
    background: #cdcdcd;
    height: 100%;
    width: 100%;
    max-width: 450px;
    z-index: -1;
    visibility: hidden;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: visibility 0s, z-index 0s, opacity 1s ease-in-out;
    
}

/* Full width popup for mobile and tablet */
@media only screen and (max-width: 1199px) {
    #popup {
        max-width: 100% !important;
    }
}

/* Popup content container */
#popup .cover {
    max-width: 400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Frame image container */
#popup .popup-aos-element {
   
    overflow: hidden;
}

#popup .popup-aos-element img {

    height: auto;
}



/* Fix for absolute positioned frame */
#popup div[style*="position: absolute"] {
    left: 0;
    right: 0;
    margin: 0 auto;
}

#popupclose {
    cursor: pointer;
}

#popup[data-pop="slide-down"] {
    top: -100%;
    transition: top 1.2s ease-in-out, visibility 0s linear 1.2s, z-index 0s linear 1.2s;
}

#popup[data-pop="slide-down"].show {
    visibility: visible;
    z-index: 200;
    opacity: 1;
    top: 0;
    transition: top 0.7s ease-in-out, visibility 0.7s, z-index 0.7s, opacity 0.7s ease-in-out;
}

#popup[data-pop="slide-down"].hide {
    top: -100%;
    opacity: 0;
    transition: top 1s ease-in-out, opacity 1s ease-in-out;
}

#popup[data-pop="slide-down"].show ~ #overlay {
    opacity: 1;
    visibility: visible;
    z-index: 100;
    transition: opacity 1s ease-in-out;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    outline: 0;
}

.modal.fade .modal-dialog {
    transition: transform 0.7s ease;
    transform: translateY(-100%);
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

.modal.hide .modal-dialog {
    transform: translateY(-100%);
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 500px;
}

.modal-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    border-radius: 0.3rem;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    padding: 20px 10px 10px 10px;
}

.modal-header,
.modal-body,
.modal-footer {
    padding: 1rem;
}

.modal-title {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.btn-close {
    padding: 0;
    background: none;
    border: none;
    font-size: 25px;
    line-height: 1;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
}

/* Button Styles */
.btn {
    padding: 0.375rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.button {
    padding: 0.70rem 1.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 190px;
}

.button:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}