/* Full-screen overlay */
.mls-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Dark overlay */
    z-index: 9998; /* Ensure it covers the page */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal container */
.mls-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 25px;
    width: 90%;
    max-width: 550px;
    max-height: 80vh; /* Ensure scrolling */
    z-index: 9999; /* Ensure it appears above the overlay */
    text-align: center;
    border-radius: 8px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Title */
.mls-modal-content h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Text */
.mls-modal-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    text-align: justify;
    flex: 1; /* Ensure text grows but doesn't overflow */
    overflow-y: visible;
    padding-right: 10px;
}

/* Buttons container */
.mls-modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Button styles */
.mls-modal-buttons button {
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Accept button */
#mlsAcceptTerms {
    background-color: #2d7d46; /* Muted green */
    color: white;
}

#mlsAcceptTerms:hover {
    background-color: #256638;
}

/* Decline button */
#mlsDeclineTerms {
    background-color: #5a5a5a; /* Dark gray */
    color: white;
}

#mlsDeclineTerms:hover {
    background-color: #404040;
}

/* Mobile Optimization */
@media (max-width: 600px) {
    .mls-modal-content {
        width: 95%;
        max-height: 85vh;
    }
}
