/* Modal overlay - hidden by default */
.modal {
    display: none;
}

/* When modal is open */
.modal.is-open {
    display: block;
}

/* Backdrop/overlay */
.modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Modal container */
.modal__container {
    background-color: #fff;
    padding: 30px;
    max-width: 500px;
    max-height: 100vh;
    border-radius: 4px;
    overflow-y: auto;
    box-sizing: border-box;
    position: relative;
}

/* Close button */
.modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: 0;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
}

/* Modal header */
.modal__header {
    margin-bottom: 20px;
}

.modal__title {
    margin: 0;
    font-size: 24px;
}

/* Modal content */
.modal__content {
    margin-bottom: 20px;
}