/* Modal Styles */
.ims-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.ims-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.ims-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.ims-modal-header h2 {
    margin: 0;
    font-size: 1.5em;
}

.ims-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.ims-modal-close:hover {
    color: #000;
}

.ims-modal-body {
    padding: 20px 0;
}

/* Terms Checkbox Styles */
.terms-checkbox {
    border: 1px solid gray;
    background: lightgoldenrodyellow;
    align-items: center;
    gap: 10px;
}

.terms-link {
    color: #0073aa;
    text-decoration: underline;
    cursor: pointer;
}

.terms-link:hover {
    color: #00a0d2;
}

input[name="terms"]:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}