/*!
Theme Name: Wilsons Theme
Theme URI: 
Author: Wilsons
Author URI: 
Description: 
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: Enterprise Rotational Programs Theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/
.fancybox-slide--iframe .fancybox-content {
	aspect-ratio: 16 / 9;
	    background-color: transparent !important;
	max-width: 1000px;
    height: auto !important;
	iframe {
		    background-color: transparent !important;
	}
}
.header {
    .main-menu {
        nav {
            ul {
                li {
                    position: relative;

                    &.menu-item-has-children {
                        > a {
                            padding-right: 18px;

                            &:before {
                                content: "\f107";
                                font-family: "Font Awesome 6 Free";
                                font-weight: 900;
                                position: absolute;
                                right: 0;
                                top: 50%;
                                transform: translateY(-50%);
                                font-size: 12px;
                            }
                        }

                        > .sub-menu {
                            position: absolute;
                            top: 100%;
                            left: 0;
                            padding: 5px 0;
                            min-width: 230px;
                            color: #fff;
                            margin: 0;
                            display: none;
                            flex-direction: column;
                            align-items: stretch;
                            gap: 0;
                            list-style: none;
                            box-shadow: 0 8px 20px rgba(#000, 0.12);
                            z-index: 1000;
                            background-color: #c41a24;

                            li {
                                width: 100%;

                                a {
                                    color: #fff;
                                    display: block;
                                    padding: 12px 18px;
                                    font-size: 15px;
                                    line-height: 1.4;
                                    white-space: normal;

                                    &:after {
                                        display: none;
                                    }

                                    &:hover {
                                        background: #fff;
                                        color: #c41a24;;
                                    }
                                }
                            }
                        }

                        &:hover {
                            > .sub-menu {
                                display: flex;
                            }
                        }
                    }
                }
            }
        }
    }
}

.hero-section .call-text-in p {
    margin: 0;
    font-size: 18px;
    br {
        display: none;
    }
}
@media (max-width : 991px){
    .header {
        .main-menu {
            nav {
                ul {
                    li {
                        a:before {
                            display: none;
                        }
                        &.menu-item-has-children {
                            > a {
                                position: relative;
                            }

                            > .sub-menu {
                                position: static;
                                width: 100%;
                                min-width: 0;
                                box-shadow: none;
                                background: #c41a24;
                                padding: 0;
                                display: none;

                                li {
                                    a {
                                        padding: 12px 25px;
                                        text-align: center;
                                    }
                                    
                                }
                            }

                            &:hover {
                                > .sub-menu {
                                    display: none;
                                }
                            }

                            &.submenu-open {
                                > .sub-menu {
                                    display: flex;
                                }

                                > a:before {
                                    display: none;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    .header {
        .main-menu {
            nav {
                ul {
                    li {
                        &.menu-item-has-children {
                            &.submenu-open{
                                .submenu-toggle {
                                    transform: rotate(-90deg);
                                }
                            }
                            > a {
                                padding-right: 0;
                            }

                            .submenu-toggle {
                                position: absolute;
                                right: 0;
                                top: 0;
                                width: 45px;
                                height: 42px;
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                cursor: pointer;
                                z-index: 2;

                                &:after {
                                    content: "\f107";
                                    font-family: "Font Awesome 6 Free";
                                    font-weight: 900;
                                    font-size: 14px;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}




.estimate-form-wrap {
    background: #fff;
    border: 1px solid #E0E4EA;
    padding: 44px 40px 100px;

    h5 {
        font-family: "Oswald", sans-serif;
        font-size: 24px;
        font-weight: 600;
        text-transform: uppercase;
        margin-bottom: 24px;
        padding-bottom: 14px;
        border-bottom: 1px solid #E5E7EB;
    }

    .nf-form-content {
        nf-fields-wrap {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            column-gap: 20px;
            row-gap: 20px;
            nf-field:not(:first-child , :nth-child(2)) {
                grid-column: 1 / -1;
            }
        }

        .nf-field-container {
            margin: 0;
            min-width: 0;
        }

        #nf-field-7-container,
        #nf-field-8-container,
        #nf-field-9-container,
        #nf-field-10-container,
        #nf-field-11-container,
        #nf-field-12-container {
            grid-column: 1 / -1;
        }

        .nf-field-label {
            margin-bottom: 0;
            line-height: 1;

            label {
                margin-bottom: 9px;
                color: #4a5565;
                font-family: "Source Sans 3", sans-serif;
                font-size: 12px;
                font-weight: 700;
                line-height: 1.4;
                letter-spacing: .6px;
                text-transform: uppercase;
            }

            .optional {
                text-transform: none;
                letter-spacing: 0;
                font-weight: 400;
            }
        }

        .nf-field-element {
            input:not([type="submit"]),
            select,
            textarea {
                width: 100%;
                border: 1px solid #D9DEE7;
                border-radius: 0;
                background: #fff;
                padding: 12px 14px;
                font-family: inherit;
                font-size: 14px;
                color: #101828;
                box-shadow: none;
                outline: none;

                &:focus {
                    border-color: #4A5565;
                }

                &::placeholder {
                    color: #8A96AA;
                    opacity: 1;
                }
            }

            input:not([type="submit"]),
            select {
                height: 45px;
            }

            textarea {
                min-height: 140px;
                height: 140px;
                resize: vertical;
            }
        }

        #nf-field-11-container {
            margin-top: 8px;

            .nf-field-element {
                input[type="submit"] {
                    width: 100%;
                    height: 57px;
                    background: #C41A24;
                    color: #fff;
                    border: 0;
                    border-radius: 0;
                    padding: 14px 20px;
                    font-size: 14px;
                    font-weight: 700;
                    text-transform: uppercase;
                    letter-spacing: 1px;
                    cursor: pointer;
                    transition: 0.3s ease;

                    &:hover {
                        background: #101828;
                    }
                }
            }
        }

        #nf-field-12-container {
            margin-top: -10px;

            .nf-field-label {
                display: none;
            }

            .nf-field-element {
                text-align: center;

                p {
                    margin: 0;
                    font-size: 10px;
                    line-height: 1.5;
                    color: #8A96AA;
                }
            }
        }

        .nf-error-wrap {
            font-size: 12px;
            color: #C41A24;
            margin-top: 5px;
        }
    }
@media (max-width : 767px) {
        padding: 28px 20px 50px;

        h5 {
            font-size: 22px;
        } 

        .nf-form-content {
            .nf-fields-wrap {
                grid-template-columns: 1fr;
                row-gap: 18px;
            }

            #nf-field-5-container,
            #nf-field-6-container,
            #nf-field-7-container,
            #nf-field-8-container,
            #nf-field-9-container,
            #nf-field-10-container,
            #nf-field-11-container,
            #nf-field-12-container {
                grid-column: 1;
            }
        }
    }
}


.nf-before-form-content {
    display: none;
}

.default-page {
    ol ,
    ul {
        margin-left: 20px;
        margin-bottom: 20px;
        li {
            list-style: disc;
        }
    }
    ol {
        li {
            list-style: decimal;
        }
    }
}



.search-form {
    max-width: 400px;
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.search-form label {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.search-form .search-field {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.search-form .search-submit {
    height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 5px;
    background: #0c1f2e;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}


.search  .brands-section .brands-grid {
        display: flex;
    flex-direction: column;
}

.reviews-pagination ,
.pagination-wrapper {
    margin-top: 40px;
}
.reviews-pagination .page-numbers,
.pagination-wrapper .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    list-style: none;
}
.reviews-pagination .page-numbers li ,
.pagination-wrapper .page-numbers li {
    margin: 0; list-style: none;
}
.reviews-pagination .page-numbers li .page-numbers ,
.pagination-wrapper .page-numbers li .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #D9DEE7;
    background: #fff;
    color: #101828;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.reviews-pagination .page-numbers li .page-numbers:hover,
.pagination-wrapper .page-numbers li .page-numbers:hover {
    background: #C41A24;
    border-color: #C41A24;
    color: #fff;
}
.reviews-pagination .page-numbers li .page-numbers.current,
.pagination-wrapper .page-numbers li .page-numbers.current {
    background: #C41A24;
    border-color: #C41A24;
    color: #fff;
}

.reviews-pagination .page-numbers li .page-numbers.prev,
.reviews-pagination .page-numbers li .page-numbers.next,
.pagination-wrapper .page-numbers li .page-numbers.prev,
.pagination-wrapper .page-numbers li .page-numbers.next {
    min-width: auto;
    padding: 0 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 575px) {
    .reviews-pagination,
    .pagination-wrapper {
        margin-top: 30px;
    }
.reviews-pagination .page-numbers ,
    .pagination-wrapper .page-numbers {
        gap: 6px;
    }
.reviews-pagination .page-numbers li .page-numbers  ,
    .pagination-wrapper .page-numbers li .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
.reviews-paginationr .page-numbers li .page-numbers.prev,
    .reviews-pagination.page-numbers li .page-numbers.next ,
    .pagination-wrapper .page-numbers li .page-numbers.prev,
    .pagination-wrapper .page-numbers li .page-numbers.next {
        padding: 0 12px;
    }
}


.family-section {
    img + h2 {
        font-size: 34px;
        margin-top: 40px; margin-bottom: 20px;
    }
}

.reviews-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.review-slide {
    height: 100%;
}

.review-card {
    height: 100%;
    padding: 32px;
    background: #fff;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: #C41A24;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
    transform: translateY(-4px);
}

.review-rating {
    position: relative;
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 3px;
    margin-bottom: 24px;
}

.stars-empty {
    color: #D9DEE7;
}

.stars-filled {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #C41A24;
}

.review-quote {
    width: 36px;
    height: 36px;
    margin-bottom: 18px;
}

.review-quote img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.review-card > p {
    font-size: 18px;
    line-height: 1.7;
    color: #101828;
    margin: 0 0 28px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.author-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: #C41A24;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50%;
}

.review-author h3 {
    font-size: 16px;
    font-weight: 600;
    color: #101828;
    margin: 0;
}

@media (max-width: 767px) {
    .reviews-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .review-card {
        padding: 24px;
    }

    .review-card > p {
        font-size: 16px;
    }
}



.review-rating {
    position: relative;
    display: inline-block;
    width: max-content;
    line-height: 1;
    white-space: nowrap;
}

.stars-empty {
    color: #ddd;
    white-space: nowrap;
}

.stars-filled {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    color: #c91824;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
}

.alignleft  {
	float : left; margin : 0 25px 25px 0
}
.alignright  {
	float : right; margin : 0 0 25px 25px
}

.family-section {
    ul {
        columns: 4;
        column-gap: 30px;
        list-style: none;
        padding: 0;
        margin: 0;
        li {
            list-style: none;
        }
    }
}


@media (max-width: 576px) {
    .family-section {
        ul {
            columns: 2;
        }
    }

}

