/**
* Single Modal Block Styles
* @package WordPress
* @subpackage Clever Hiker
* @since Clever Hiker 1.0
* @version 1.0
* @author Brett Franklin, for Amsive
*/

.modal-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    z-index: 1000;
    visibility: hidden;
}

.modal-container.active {
        transform: translateY(0);
        visibility: visible;
    }

.modal {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--wp--preset--color--pearl-aqua);
    border-radius: 0;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    /* Element Variables */
    --header-width: 90rem;
    --content-width: 53.75rem;
}

.modal-header {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: var(--header-width);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.modal-header .close-button {
    font-size: var(--wp--preset--font-size--font-14-px);
    color: var(--wp--preset--color--arsenic);
        background: none;
        border: 0;
        cursor: pointer;
}

.modal-header .close-button:focus-visible {
            outline: 0;
        }

.modal-header .close-button svg {
    height: 1.75rem;
    width: 1.75rem;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (min-width: 640px) {

    .modal-body {
        flex-direction: row;
        gap: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 1.5rem;
    }
}

.modal-body {
    max-width: var(--content-width);
}

.modal-body__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 640px) {

    .modal-body__cell {
        flex: 1 1 0%;
        align-items: flex-start;
        gap: 0px;
    }
}

.modal-body__cell p {
    text-align: center;
    font-size: var(--wp--preset--font-size--font-16-px);
    color: var(--wp--preset--color--arsenic);
}

@media (min-width: 640px) {

    .modal-body__cell p {
        text-align: left;
        margin-bottom: 1rem;
    }
}

.modal-body__cell .disclaimer-text {
    width: 100%;
}

.modal-body__cell .disclaimer-text p {
    text-align: center;
    font-size: var(--wp--preset--font-size--font-11-px);
    color: var(--wp--preset--color--arsenic);
    margin-bottom: 1rem;
    width: 100%;
}

.modal.alt-cta .modal-body__cell:first-of-type {
    order: 2;
}

@media (min-width: 640px) {

    .modal.alt-cta .modal-body__cell:first-of-type {
        order: 1;
        flex-basis: 60%;
    }
}

.modal.alt-cta .modal-body__cell:last-of-type {
    order: 1;
}

@media (min-width: 640px) {

    .modal.alt-cta .modal-body__cell:last-of-type {
        order: 2;
        flex-basis: 40%;
    }
}

.modal.alt-cta .modal-body__cell .disclaimer-text p {
    margin-bottom: 0px;
    margin-top: 1rem;
    text-align: center;
    color: var(--wp--preset--color--arsenic);
}

@media (min-width: 640px) {

    .modal.alt-cta .modal-body__cell .disclaimer-text p {
        text-align: left;
    }
}

.modal.form-cta .modal-body__cell:last-of-type {
    background-color: var(--wp--preset--color--bright-gray);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.modal.alt-cta .modal-body__cell:last-of-type {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 640px) {

    .modal.alt-cta .modal-body__cell:last-of-type {
        flex-direction: row;
    }
}

.modal.alt-cta .modal-body__cell:last-of-type .alt-image {
    max-height: 10rem;
    width: 100%;
}

.modal-body__cell .modal-title {
    font-family: rift, sans-serif;
    font-size: var(--wp--preset--font-size--font-24-px);
    font-weight: 700;
}

@media (min-width: 640px) {

    .modal-body__cell .modal-title {
        font-size: 1.75rem;
    }
}

.modal-body__cell .btn.btn-secondary {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: var(--wp--preset--font-size--font-16-px);
}

/* Gravity Forms Styles */

.modal-body__cell .gform_wrapper {
    width: 100%;
    margin-top: 0px;
    padding: 1rem;
    color: var(--wp--preset--color--white);
}

@media (min-width: 782px) {

    .modal-body__cell .gform_wrapper .gform_validation_errors {
        width: 65.33%;
    }
}

.modal-body__cell .gform_wrapper .gform_description {
    display: none;
    font-family: rift, sans-serif;
    font-size: var(--wp--preset--font-size--font-24-px);
}

@media (min-width: 1024px) {

    .modal-body__cell .gform_wrapper .gform_description {
        display: block;
    }
}

.modal-body__cell .gform_wrapper .gfield_error label {
    --tw-text-opacity: 1 !important;
    color: rgb(239 68 68 / var(--tw-text-opacity)) !important;
}

.modal-body__cell .gform_wrapper form {
    display: flex;
    width: 100%;
    flex-direction: column;
}

@media (min-width: 640px) {

    .modal-body__cell .gform_wrapper form {
        flex-direction: row;
    }
}

.modal-body__cell .gform_wrapper form .gform_body {
    flex-grow: 1;
    width: 100%;
}

.modal-body__cell .gform_wrapper form .gform_body .gfield_label {
    font-size: var(--wp--preset--font-size--font-14-px);
    color: var(--wp--preset--color--arsenic);
}

.modal-body__cell .gform_wrapper form .gform_body .gform_fields .gfield input {
    width: 100%;
    border-left-width: 0px;
    border-right-width: 0px;
    border-top-width: 0px;
    border-bottom-color: var(--wp--preset--color--arsenic);
    background-color: transparent;
    color: var(--wp--preset--color--arsenic);
}

.modal-body__cell .gform_wrapper form .gform_body .gform_fields .gfield input[type="email"]:focus {
    border-left-width: 0px;
    border-right-width: 0px;
    border-top-width: 0px;
                                    --tw-ring-color: transparent;
}

.modal-body__cell .gform_wrapper form .gform_body .gform_fields .gfield .ginput_container_email {
    width: 91.666667%;
}

.modal-body__cell .gform_wrapper form .gform_body .gform_ajax_spinner {

                    }

.modal-body__cell .gform_wrapper form .gform_footer {
    position: relative;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.modal-body__cell .gform_wrapper form .gform_footer .gform_button {
    background-color: var(--wp--preset--color--eerie-black);
    font-family: PT Serif, sans-serif;
    font-style: italic;
    color: var(--wp--preset--color--white);
    margin-bottom: 0px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: var(--wp--preset--font-size--font-16-px);
}

.modal-body__cell .gform_wrapper form .gform_footer .gform_ajax_spinner {
    position: absolute;
    bottom: 33px;
    right: -20px;
    --tw-translate-y: -50%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* Gform confirmation */

.modal-body__cell .gform_confirmation_wrapper {
    background-color: transparent;
    padding-left: 2rem;
    padding-right: 2rem;
    color: var(--wp--preset--color--arsenic);

            /*@screen tablet {*/
            /*    .gform_confirmation_message {*/
            /*        @apply w-8/12 tablet:min-h-[159px] lg:min-h-[130px] flex items-center;*/
            /*    }*/
            /*}*/
}

.modal-body__cell .gform_confirmation_wrapper .gform_confirmation_message {
    display: flex;
    align-items: center;
}

.modal-body__cell .gfield_description.validation_message.gfield_validation_message {
    border-style: none;
    padding: 0px;
    color: var(--wp--preset--color--arsenic);
}

.modal-footer {
    display: none;
}

@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }
}