/*
Theme Name: RouteFi
Theme URI: 
Author: Kelly Jones
Author URI: 
Description: 
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: routefi
Tags: 
*/

:root {
    --border-color: var(--wp--preset--color--custom-color-1);
}

html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Borders */

.wp-block-column.dashed-border {
    border: 2px solid transparent; /* Border thickness */
    border-left: none;
    border-right: none;
    border-image: repeating-linear-gradient(
        to right, /* Direction */
        var(--border-color) 0 10px, /* Dash color & length */
        transparent 10px 20px /* Gap size */
    ) 1;
}

@media (min-width: 992px) {

    .wp-block-column.dashed-border {
        border: 2px solid transparent; /* Border thickness */
        border-top: none;
        border-bottom: none;
        border-image: repeating-linear-gradient(
            to bottom, /* Direction */
            var(--border-color) 0 10px, /* Dash color & length */
            transparent 10px 20px /* Gap size */
        ) 1;
    }

}

/* Greenshift */

@media (min-width: 992px) {

    .swiper-button-prev, .swiper-button-next {
        display: none !important;
    }

    .swiper-slide-inner.dashed-border {
        border: 2px solid transparent; /* Border thickness */
        border-top: none;
        border-bottom: none;
        border-image: repeating-linear-gradient(
            to bottom, /* Direction */
            var(--border-color) 0 10px, /* Dash color & length */
            transparent 10px 20px /* Gap size */
        ) 1;
    }

}

/* How It Works (hiw) Section */

.hiw-icon {
    position: relative;
    z-index: 1;
    height: 117px;
}

.hiw-icon::before {
    border: 2px solid transparent; /* Border thickness */
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-image: repeating-linear-gradient(
        to right, /* Direction */
        var(--border-color) 0 10px, /* Dash color & length */
        transparent 10px 20px /* Gap size */
    ) 1;
    content: '';
    position: absolute;
    top: 50%;
    width: 100%;
    height: 1px;
    z-index: -1;
}

@media (max-width: 575px) {

    .hiw-container {
        margin-inline: auto !important;
        max-width: 330px !important;
    }

    .hiw-container > .gspb_container{
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    
    .hiw-step {
        display: grid !important;
        grid-template-columns: 117px 1fr !important;
        width: 100% !important;
    }

    .hiw-icon {
        grid-column: 1 / 2 !important;
        align-items: center !important;
        justify-self: center !important;
        height: 170px;
    }

    .hiw-icon::before {
        border-left: 2px solid transparent; /* Border thickness */
        border-bottom: none;
        border-right: none;
        border-top: none;
        border-image: repeating-linear-gradient(
            to bottom, /* Direction */
            var(--border-color) 0 10px, /* Dash color & length */
            transparent 10px 20px /* Gap size */
        ) 1;
        top: 0px;
        left: 50%;
        width: 1px;
        height: 100%;
    }

    .hiw-text {
        display: flex !important;
        flex-direction: column !important;
        align-self: center !important;
        grid-column: 2 / -1 !important;
    }

}

/* Forms */

.gform-footer {
    display: flex;
    align-items: center !important;
    justify-content: center !important;
}

.gform_button {
    border-radius: 9999px !important;
    color: var(--wp--preset--color--custom-color-1) !important;
}

.gform_button:hover {
    background-color: var(--wp--preset--color--custom-color-2) !important;
}

@media (min-width: 992px) {

    .inline-centered-options .gfield_checkbox {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 20px !important;
    }

}