body.modal-visible {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}
.modal {
    width: 100%;
    height: 100%;
    background-color: #1B1B1B99;
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    z-index: 110;

    justify-content: center;
    align-items: center;
    /* mantains jQuery fade-in effect and sets display to flex in order to mantain positioning of the content */
    &.--visible[style*='display: block'] {
        display: flex !important;
    }
    
    /* headings */
    & h1, h2, h3, h4, h5, h6 {
        font-family: var(--font-canela);
        font-weight: 500;
        line-height: 1em;
        color: var(--black);
        margin: 0;
        padding: 0;
    }
    /* add margin only if heading has an element before */
    & * + h1, * + h2, * + h3, * + h4, * + h5, * + h6 {
        margin-top: calc(var(--font-size-base) * 2);
    }
    /* font sizes */
    & h1 {
        font-size: calc(var(--font-size-base) * 6);
    }
    & h2 {
        font-size: calc(var(--font-size-base) * 5);
    }
    & h3 {
        font-size: calc(var(--font-size-base) * 4);
    }
    & h4 {
        font-size: calc(var(--font-size-base) * 3);
    }
    & h5 {
        font-size: calc(var(--font-size-base) * 2.5);
    }
    & h6 {
        font-size: calc(var(--font-size-base) * 2);
    }

    /* text */
    & p, ul, ol, a {
        font-size: calc(var(--font-size-base) * 2);
        & :not(strong) {
            font-weight: 300;
        }
        line-height: 1.75em;
        color: var(--color-paragraph);
        padding: 0;
        margin: 0;
    }

    /* lists */
    & ul, ol {
        display: flex;
        flex-direction: column;
        padding-left: calc(var(--font-size-base) * 2);
    }

    /* link */
    & a {
        &:hover {
            text-decoration: none;
        }
    }

    & .modal-body {
        --gap: calc(var(--font-size-base) * 4);
        max-width: 90%;
        max-height: 90%;
        background-color: var(--sand-alt);
        padding: var(--safe-space) var(--safe-space) calc(var(--safe-space) * 2);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--gap);

        & .modal-close {
            --btn-size: 15px;
            align-self: flex-end;

            & button {
                width: var(--btn-size);
                height: var(--btn-size);
                background-color: transparent;
                border: unset;
                padding: 0;
                margin: 0;
                position: relative;
                display: flex;
                justify-content: center;
                align-items: center;
                cursor: pointer;

                & span {
                    width: 100%;
                    height: 2px;
                    background-color: #1B1B1B;
                    border-radius: 2px;
                    position: relative;
                    transform: rotate(45deg);
                    display: block;
                    &::before {
                        content: "";
                        width: 100%;
                        height: 2px;
                        background-color: #1B1B1B;
                        border-radius: 2px;
                        position: absolute;
                        transform: rotate(-90deg);
                        top: 0;
                        left: 0;
                        display: block;
                    }
                }
            }
        }
        
        /* submit */
        & button[type="submit"] {
            max-width: 100%;
            height: 58px;
            text-transform: uppercase;
            text-decoration: unset;
            color: var(--white);
            background-color: var(--red);
            border: unset;
            border-radius: 3px;
            cursor: pointer;
            padding: 12px;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 5px;
            transition: all var(--transition-standard);

            & svg {
                width: 15px;
                color: inherit;
            }

            &:hover {
                background-color: var(--red-dark);
            }
        }

        & .form-intro {
            display: flex;
            flex-direction: column;
            gap: calc(var(--font-size-base) * 2);
            padding-bottom: calc(var(--font-size-base) * 6);
        }

        & .form-field {
            --field-size: 48px;

            display: flex;
            flex-direction: column;
            gap: 5px;

            & label {
                font-size: calc(var(--font-size-base) * 1.5);
                font-weight: 500;
                text-transform: uppercase;
                color: var(--color-paragraph-solid);

                &.error {
                    color: var(--color-error);
                }
            }

            & input:not([type="radio"]) {
                font-size: calc(var(--font-size-base) * 1.75);
                font-weight: 300;
                height: var(--field-size);
                color: var(--color-paragraph-solid);
                background-color: transparent;
                border: unset;
                border-bottom: 2px solid #cecece;
            }

            & ::placeholder {
                font-style: italic;
                color: var(--color-paragraph);
            }

            & p {
                font-size: calc(var(--font-size-base) * 1.75);
                & a {
                    font-size: inherit;
                    color: var(--black);
                }
            }

            & .radio {
                display: flex;
                padding-top: calc(var(--font-size-base) * 2);
                gap: calc(var(--font-size-base) * 2);

                & .radio-custom {
                    --radio-size: calc(var(--font-size-base) * 2);
                    --radio-size-inner: calc(var(--radio-size) / 2);

                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    gap: calc(var(--font-size-base) * 2);

                    position: relative;

                    & label {
                        line-height: var(--radio-size);
                        display: flex;
                        flex-direction: column;
                        gap: 5px;

                        & label.error {
                            order: 3;
                        }
                    }

                    & input[type="radio"] {
                        appearance: none;
                        width: var(--radio-size);
                        height: var(--radio-size);
                        border-radius: 50%;
                        border: 1px solid #999;
                        padding: 0;
                        margin: 0;
                        position: absolute;
                        top: 0;
                        left: 0;
                        display: grid;
                        place-content: center;
                        &::before {
                            content: "";
                            width: var(--radio-size-inner);
                            height: var(--radio-size-inner);
                            border-radius: 50%;
                            display: block;
                            background-color: #776b60;
                            /* box-shadow: inset 1em 1em var(--form-control-color); */
                            opacity: 0;
                        }
                        &:checked::before {
                            opacity: 1;
                        }
                    }

                    padding-left: calc(var(--radio-size) + var(--font-size-base));
                    position: relative;
                }
            }
        }

        & .form-field-wrapper {

            --gap: var(--safe-space);
            --num-el: 1;
            --num-gaps: calc(var(--num-el) - 1);
            --gaps-value: calc(var(--gap) / var(--num-el) * var(--num-gaps));

            display: flex;
            flex-direction: column;
            gap: var(--gap);

            & .form-field-row {
                display: flex;
                flex-direction: column;
                gap: var(--gap);

                & .form-field-col {
                    width: calc(100% / var(--num-el) - var(--gaps-value));

                    display: flex;
                    flex-direction: column;
                    gap: calc(var(--font-size-base) * 2);
                }
            }
        }

        @media (min-width: 768px) {
            min-width: calc(500px + var(--safe-space) * 2);
        }

    }
}