.digital-nature-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
    grid-template-areas:
    "tl tc tr"
    "ml mc mr"
    "bl bc br";
    column-gap: 20px;
    row-gap: 20px;
}

@media only screen and (max-width: 960px) {
    .digital-nature-modal {
        grid-template-columns: minmax(0, 10px) minmax(0, 2fr) minmax(0, 10px);
    }
}

.digital-nature-modal-background {
    background-color: black;
    opacity: 0.5;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.digital-nature-modal-contents {
    grid-area: mc;
    place-self: center;
    background: white;
    border: 3px solid black;
    border-radius: 10px;
    overflow-wrap: break-word;
    padding: 20px;
    max-height: 100%;
    max-width: 100%;
    overflow-y: scroll;
}

.dn-modal-content-fill .digital-nature-modal-contents {
    height: 100%;
    width: 100%;
}

.dn-modal-header {
    margin: 0 -20px 20px -20px;
    background: black;
    color: white;
    padding: 20px;
    text-align: center;
}

.dn-modal-header h1 {
    color: white;
    margin: 0;
}

.dn-modal-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 3px solid black;
    padding: 20px;
}


.dn-modal-step-form .digital-nature-modal-contents {
    overflow: hidden;
    padding: 0;
}

.dn-modal-step-form .digital-nature-modal-contents > div {
    padding: 0 20px;
    height: 100%;
    overflow-y: auto;
}

.dn-modal-step-form .dn-modal-header .dn-modal-step-form-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    color: white;
    cursor: pointer;
    border: 0;
}

.dn-modal-step-form .dn-modal-footer {
    display: grid;
    grid-auto-flow: column;
}

.dn-modal-step-form .dn-modal-step-form-previous {
    justify-self: start;
}

.dn-modal-step-form .dn-modal-step-form-submit,
.dn-modal-step-form .dn-modal-step-form-next {
    justify-self: end;
}

.dn-modal-step-form .dn-modal-step-form-reload {
    justify-self: center;
}

.dn-modal-step-form .dn-utilities-error-message {
    background: #d94747;
    color: white;
    display: inline-block;
    text-indent: 5em;
    line-height: 4em;
    position: relative;
    margin: 10px 0;
    border-radius: 15px;
}

.dn-modal-step-form .dn-utilities-error-message:before {
    content: '!';
    background: white;
    color: #d94747;
    width: 2em;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    text-indent: 0;
    text-align: center;
    border-width: 2px 0 2px 2px;
    border-style: solid;
    border-color: #d94747;
    font-size: 2em;
    line-height: calc(2em - 4px);
    border-radius: 15px;
}
