:root {
    --nav: #0b1e3e;
    --cta: #d2202e;
    --cta_hover: #bd1f24;
    --title: #002338;
    --stroke: #d9d9d9;
    --white: #fff;
}

.gform_wrapper {
    .gform_validation_errors {
        display: none !important;
    }

    .gform_body {
        .gform_fields {
            row-gap: 32px !important;

            input[type="text"],
            input[type="email"],
            input[type="tel"],
            textarea {
                border: none;
                background: transparent;
                box-shadow: none;
                border-radius: 0;
                border-bottom: 1px solid #0B1E3E;
                outline: none;
                font-size: 18px;
                padding: 0;
            }

            textarea {
                height: 80px;
            }
            .gform-field-label{
                font-size: 18px;
            }
            .gfield_description{
                font-size: 18px;
                font-style: italic;
            }
        }
    }

    .gform_footer {
        input[type="submit"] {
            background-color: var(--cta) !important;
            background-image: linear-gradient(#fff, #fff) !important;
            border-radius: 0 !important;
            padding: 11px 32px !important;
            background-size: 0px 100% !important;
            background-repeat: no-repeat !important;
            transition:.3s linear;
            font-size: 1rem !important;
            font-weight: bold !important;
            line-height: 20px !important;
            min-width: 130px !important;
            outline: none;
            border: none !important;
        }

        input[type="submit"]:hover {
            color: var(--nav) !important;
            background-size: 100% 100% !important;
        }
    }
}

.form_white {
    .gform_wrapper {
        .gform_body {
            .gform_fields {

                input[type="text"],
                input[type="email"],
                input[type="tel"],
                textarea {
                    border-color: #fff;
                    color: #fff;
                }
            }

            .gform-field-label,
            .gfield_description {
                color: var(--white);
            }
        }
    }
}

.fmt_heading {
    display: flex !important;
    flex-wrap: wrap !important;
}
.fmt_heading>.gfield_label {
    margin-right: 10px !important;
}
.fmt_heading>.gfield_label,
.fmt_heading>.gfield_description {
    width: auto !important;
    padding-top: 0 !important;
}

.fmt_heading .ginput_container {
    width: 100% !important;
}

.ginput_container.ginput_container_fileupload input[type="file"]{
    padding:2px !important;
    cursor:pointer;
    position:relative;
    background: transparent;
    border: none;
    color: #fff;
    height: auto;
}

.ginput_container.ginput_container_fileupload input[type="file"]:before {
  position: absolute;
  pointer-events: none;
  top: 50%;
  left: 140px;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  content: "";
  background-image: url('data:image/svg+xml,<svg width="13" height="16" viewBox="0 0 13 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 6.81441L6.30263 2L11.6052 6.81441" stroke="white" stroke-width="1.5" stroke-miterlimit="10"/><path d="M6.30273 2V11.8127" stroke="white" stroke-width="1.5" stroke-miterlimit="10"/><path d="M1 14.5938H11.6052" stroke="white" stroke-width="1.5" stroke-miterlimit="10"/></svg>');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.ginput_container.ginput_container_fileupload input[type="file"]::file-selector-button {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid var(--white) !important;
    color: var(--white);
    background:transparent;
    padding:0 10px;
    height:50px;
    line-height:50px;
    min-width:190px;
    border-radius: 0;
    cursor:pointer;
    font-weight:bold;
    padding: 0 40px 0 20px;
}

.ginput_container.ginput_container_fileupload .gform_fileupload_rules{
    display: none !important;
}



.rounded {
    border-radius: 10px;
}

.stroke {
    border: 1px solid var(--stroke);
}

.year_container{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 62px;
    color: var(--nav);
    gap: 42px;
    .h2 {
        font-size: 32px;
        font-weight: 600;
        
    }
    ul.tsi-year-filter {
        list-style: none;
        display: flex;
        gap: 10px 36px;
        margin: 0;
        font-size: 16px;
        font-weight: bold;
        flex-wrap: wrap;
        padding:0;
        li{
            cursor: pointer;
            &.active{
                color: var(--cta);
            }
        }
    }
}

#tsi-infinite-scroll-container {
    display: grid;
    grid-gap: 40px;

    .tsi-loop-item {
        border-radius: 10px;
        border: 1px solid var(--stroke);

        &.press-item {
            padding: 62px 60px 68px 62px;

            .press-box {
                display: flex;
                flex-wrap: wrap;
            }

            .icon-box {
                width: 200px;

                .icon-box-content {
                    width: 108px;
                    height: 108px;
                    background: var(--nav);
                    border-radius: 10px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    padding-left: 10px;
                }
            }

            .content-box {
                max-width: 820px;
                width: calc(100% - 200px);

                h4 {
                    margin: 0 0 20px;
                    font-size: 1.75em;
                    line-height: 1.2;

                    a {
                        color: var(--title);
                    }
                }

                .excerpt {
                    font-size: 18px;
                    margin-bottom: 16px;
                }

                .btns {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 10px 50px;
                }

            }

            @media (max-width:979px) {
                padding: 40px 24px 40px 24px;

                .content-box {
                    margin-top: 30px;
                    width: 100%;

                    h4 {
                        font-size: 1.375em;
                    }

                    .excerpt {
                        font-size: 1em;
                    }
                }
            }
        }
    }
}

a.link-btn {
    display: inline-block;
    vertical-align: middle;
    font-weight: bold;
    color: var(--cta);
    
    .ib-text {
        margin-right: 12px;
        position: relative;
        &:before{
            content: '';
            position: absolute;
            display: block;
            left:0;
            bottom: 0;
            width: 0%;
            background: var(--cta);
            height: 1px;
            transition: .3s linear;
        }
    }
    span:not(.ib-text){
        position: relative;
        transition: .3s linear;
        display: inline-block;
    }
    &:hover {
        color: var(--cta_hover);
        .ib-text {
            &:before{
                width: 100%;
            }
        }
        span:not(.ib-text){
            transform: translateX(10px);
        }
    }
}


#tsi-infinite-scroll-loader {
    margin-top: 80px;
    animation: spin 5s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}