.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    pointer-events: all;

    justify-content: center;
    align-items: center;
}

.modal-overlay.is-open {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 395px;
    box-sizing: border-box;
    pointer-events: auto;
    background: white;
    padding: 20px;
    border-radius: 20px;
    z-index: 10000;
}

.modal-subject {
    font-size: 32px;
    font-weight: 700;
    width: 100%;
    color: var(--color-blue);
    text-align: left;
    box-sizing: border-box;
    margin: 0;
}

.modal-text {
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    width: 100%;
    color: var(--color-blue);
    text-align: left;
    box-sizing: inherit;
    &.bold {
        font-weight: 600;
    }
}

.modal-label {
    display: block;
    font-size: 20px;
    font-weight: 700;
    width: 100%;
    color: var(--color-blue);
    text-align: left;
    box-sizing: border-box;
    margin: 12px 0 0 0;
}

.modal-button {
    width: auto;
    display: inline-block;
    padding: 14px 24px 14px 24px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    align-self: flex-start;
    margin: 24px 0 0 0;
    &.gray {
        background-color: var(--color-dark-gray);
        color: white;
    }
     &.blue {
        background-color: var(--color-blue);
        color: white;
    }
    &.no-left-bottom-radius {
        border-radius: 20px 20px 20px 0;
    }
    &.no-right-top-radius {
        border-radius: 20px 0 20px 20px;
    }
}

.modal-input {
    margin: 10px 0 0 0;
    border: solid 1px var(--color-blue);
    font-family: 'fieldwork', 'Geo Bold', 'Montserrat', serif;
    line-height: 24px;
}

.modal-success {
    display: block;
    color: var(--color-green);
    font-size: 20px;
    font-weight: 700;
    justify-content: center;
}

.modal-error {
    display: block;
    color: var(--color-red);
    font-size: 20px;
    font-weight: 700;
    justify-content: center;
}

.mt-24 {
    margin-top: 24px;
}

.mt-12 {
    margin-top: 12px;
}
