.aam-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

.aam-modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 50%;
    background: white;
    border-radius: 8px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.aam-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aam-modal-title {
    margin: 0;
    font-size: 1.5em;
}

.aam-doc-counter {
    color: #666;
    font-size: 0.9em;
}

.aam-modal-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.aam-doc-content {
    line-height: 1.6;
}

.aam-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.aam-agreement-form {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.aam-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.3s;
}

.aam-btn:disabled {
    cursor: not-allowed;
}

.aam-btn-accept {
    background: #007bff;
    color: white;
}

.aam-btn-reject {
    background: #dc3545;
    color: white;
}

.aam-btn:hover:not(:disabled) {
    opacity: 0.8;
}

.aam-action-buttons {
    display: flex;
    gap: 10px;
}

.aam-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.aam-btn:hover {
    opacity: 0.9;
}

.aam-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}
.required-document-text {
    color: #666;
    font-size: 0.9em;
    text-align: center;
    display: block;
    margin: auto;
}

@media (max-width: 768px) {
    .aam-modal-container {
        width: 100%;
        height: 50%;
        bottom: 0;
        top: auto;
        left: 0;
        transform: none;
        border-radius: 8px 8px 0 0;
    }

    .aam-modal-header {
        padding: 15px;
    }

    .aam-modal-content {
        padding: 15px;
    }

    .aam-modal-footer {
        padding: 15px;
    }

    .aam-agreement-form {
        flex-direction: column;
    }

    .aam-btn {
        width: 100%;
    }
}