/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.1
*/

body .gform_wrapper {
    .hml-multistep-quiz {
        padding-top: 60px;
        overflow-x: clip;

        .hml-form-review-logo {
            width: 196px;
            margin-inline: auto;
        }

        .top_label .gfield_label {
            font-size: 24px;
            line-height: 28px;
            font-weight: 700;
            padding-bottom: 1rem;
        }

        .gfield {
            .gfield_radio {
                .gchoice {
                    display: block;
                }

                input {
                    display: none;

                    &:checked+label {
                        background-color: var(--nectar-accent-color);
                    }
                }

                label {
                    font-size: 18px !important;
                    font-weight: 700 !important;
                    margin-left: 0;
                    line-height: 22px;
                    padding: 20px;
                    background-color: #F5F5F5;
                    border-radius: 5px;
                    cursor: pointer;

                    span {
                        font-weight: 400;
                    }
                }
            }

            &.gfield--type-section {
                border-color: #000;
                text-align: center;

                @media only screen and (min-width: 1280px) {
                    text-align: left;
                    width: 50%;
                    transform: translateX(100%);
                    margin-left: 8px;

                }

                .gsection_title {
                    font-size: 18px;
                    font-weight: 700;
                    line-height: 28px;
                    text-transform: uppercase;
                }
            }

            .gfield_required {
                display: none;
            }
        }

        .gform_page_footer,
        .gform-page-footer {

            @media only screen and (min-width: 1280px) {
                width: 50%;
                transform: translateX(100%);
                margin-left: 8px;

            }

            .button.gform-theme-button,
            .button {
                width: 48.7% !important;
                height: 50px !important;
                padding: 15px 25px 12px 25px !important;
                border-radius: 4px !important;
                color: #423734 !important;
                text-align: center !important;
                font-family: "Josefin Sans" !important;
                font-size: 18px !important;
                font-weight: 500 !important;
                line-height: 20px !important;
                letter-spacing: 0.7px !important;
                text-transform: uppercase !important;

                @media only screen and (min-width: 1280px) {
                    width: 199px !important;

                }

                &.gform_next_button,
                &.gform_button {
                    background: var(--nectar-accent-color) !important;
                }

                &.gform_next_button:hover,
                &.gform_button:hover {
                    opacity: .9;
                    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.16) !important;
                    transform: translateY(-3px);
                }
            }

            .button.gform-theme-button:hover,
            .button:hover {
                opacity: .9;
                box-shadow: 0 2px 2px rgba(0, 0, 0, 0.16) !important;
                transform: translateY(-3px);
            }
        }

        .gf-review {
            .gf-row {
                display: flex;
                justify-content: space-between;
                flex-direction: column;
                gap: 1.5rem;
                padding-top: 1.5rem;
                padding-bottom: 1.5rem;
                border-bottom: 1px solid #031128;
                font-size: 1.25rem;
                line-height: 1.5rem;
                color: #031128;

                &:first-child {
                    padding-top: 0;
                }

                @media (min-width: 768px) {
                    flex-direction: row;
                    font-size: 1.375rem;
                }
            }

            .gf-question {
                max-width: 28rem;
            }

            .gf-answer {
                min-width: 16rem;
                display: flex;
                flex-direction: column;
                align-items: flex-end;
                gap: 1rem;
                font-weight: 600;
                font-size: 1.125rem;
                color: #031128;
                text-align: right;

                @media (min-width: 768px) {
                    font-size: 1.25rem;
                }
            }

            .gf-change-answer {
                font-weight: 400;
                text-decoration: underline;
                text-underline-offset: 2px;

                &::after {
                    content: url('./images/icons/ic-edit.svg');
                    display: inline-block;
                    padding-left: 0.75rem;
                    vertical-align: sub;
                }
            }

            .gf-change-answer:hover {
                color: #0097CE;
            }

            li {
                padding-bottom: 1.25rem;

                &:last-child {
                    padding-bottom: 0;
                }
            }
        }

    }

    &.gf-review-active {
        max-width: 846px;
        margin-inline: auto;

        .hml-multistep-quiz {

            .gform_page_footer,
            .gform-page-footer {
                width: 100%;
                transform: translateX(0);
                margin-left: 0;
                justify-content: center;
            }
        }
    }
}