/* Styles and Theme Overrides for the RHA Locations Landing Page and Single Location Template */
/* 20250415 */

#rha-location-map {
    width: 100%;
    height: 500px;
    display: block;
}

/* RHA LOcations and Single Location Styles */
body.page-template-service-locations .locations-upper-container {
    padding-bottom: 82px;
}

ul li.location-meta-item {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    text-decoration: none;
}

.location-header {
    margin-bottom: 40px;
}

h1.location-name#location-name {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-size: clamp(32px, 8vw, 60px);
    font-weight: 250;
    color: #294272;
    line-height: 1.2;
}

h2.caption#location-caption {
    font-family: "Montserrat", sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #294272;
}

.locations-upper-container {
    padding: 30px 0 20px 0;
}

.intro-container.gray-bg,
.locations-map-container {
    background: #F7F7F7;
}

.location-meta-text {
    margin-top: 65px;

    p {
        font-size: 16px;
        line-height: 24px;
    }
}

.locations-map-container {
    margin-bottom: 240px;
}

section.locations-map-container > .grid-container {
    top: 0;
}

p.meta-block {
    font-size: 16px;
    line-height: 24px;
}

span.meta-label {
    color: #294272;
    font-size: 18px;
    font-weight: 600;
    display: block;
    padding-bottom: 10px;
}

.service-type-label {
    padding-bottom: 20px;
    li {
        font-family: "Montserrat", sans-serif;
        color: #294272;
        font-size: 26px;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }
}

.service-type-row:not(:last-child) {
    margin-bottom: 30px;
}

::marker {
    font-size: 1rem
}

ul.service-list li {
    font-family: "Montserrat", sans-serif;
    color: #294272;
    font-size: 22px;
    font-weight: 400;
    line-height: 34px;
}

.intro-container .grid-container .heading {
    margin-top: 40px;
    padding-bottom: 0;
}

.location-meta-content a.get-directions-btn {
    -moz-transition: all .15s ease-in-out;
    -webkit-transition: all .15s ease-in-out;
    transition: all .15s ease-in-out;
    font-weight: 500;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #FFFFFF;
    list-style: none;
    cursor: pointer;
    padding: 9px 12px 10px 12px;
    z-index: 10;
    background-color: #294272;
    border-radius: 100px;
    text-decoration: none;
}

.location-meta-content a.get-directions-btn:hover {
    color: #fff;
    text-decoration: none;
    background-color: #3395dd;
}

.return-link {
    height: 24px;
    position: relative;
    top: -60px;
    left: 0;
    display: inline-block;
}

.return-link svg,
.return-link a {
    display: inline;
}

.return-link a {
    line-height: 24px;
}

.agency-detail-box .agency-table-row .agency-table-icon.administrativeoffice {
    background-image: url('../images/map-icon-corporate-new.png');
}

@media only screen and (max-width: 992px) {
    .intro-container .grid-container .heading {
        padding-bottom: 1.8rem;
    }

    .intro-container .grid-container {
        padding-bottom: 1.8rem;
    }

    .service-type-label {
        text-align: center;
    }
}

/* Add styling for the sign-up modal 20251024*/

.btn-white {
    background: #fff;
    color: #203154;
    border: 1px solid #fff;
    text-transform: uppercase;
    font-weight: 400;
    transition: all .15s ease-in-out;
    font-size: 16px;
    padding: 13px 49px 13px 49px;
    -moz-border-radius: 100px;
    -webkit-border-radius: 100px;
    border-radius: 100px;
    margin-top: 8px;
    position: relative;

    &:hover, &:active, &:focus {
        background: transparent;
        color: #fff;
    }
}

.modal .modal-inner {
    width: 1216px;
    max-width: 90%;
    margin: 0 auto 0 auto;
    background-color: #FFFFFF;
    padding: 98px 20px 120px 20px;
    position: relative;
}

.sign-up-top {
    text-align: center;
    max-width: 51.25rem;
    margin: 0 auto;

    .sign-up-top__logo {
        margin-bottom: 65px;
        max-width: 16.25rem;
        width: 100%;
    }

    .sign-up-top__title {
        margin-bottom: 45px;
    }
}

.mfp-container {
    top: 100px;
}

div.modal {
    border-color: #505050;

    .gform-theme--framework {
        --gf-label-space-primary: 0;
    }

    .gform-theme--api, .gform-theme--foundation {
        --gf-label-req-gap: 0;
    }

    .gform-theme--foundation {
        --gf-form-footer-margin-y-start: 54px;
    }

    .mfp-close {
        color: #fff;
        top: -70px;
        right: -55px;
        width: 32px;
        height: 32px;
    }

    .sign-up-form {
        max-width: 32.5rem;
        margin: 4rem auto 0;
    }

    .gform_wrapper form {
        .gform_fields {
            --gf-form-gap-y: 1.875rem;
        }

        input[type=text],
        input[type=email],
        input[type=tel],
        select,
        textarea {
            font-family: "Montserrat", sans-serif;
            border-radius: 10px;
            height: 76px;
            border-color: #505050;
            color: #505050;
            font-size: 18px;
        }

        .gform-field-label, .gform-field-label--type-sub {
            color: #505050;
            font-size: 1rem;
            font-weight: 400;
            margin-bottom: var(--gf-label-space-tertiary);
            font-family: "Montserrat", sans-serif;
        }

        .ginput_container--name {
            flex-direction: column;
            gap: var(--gf-form-gap-y);

            .gform-grid-col.gform-grid-col--size-auto {
                width: 100%;
            }
        }
    }
}

@property --ang {
    syntax: "<angle>";
    initial-value: 90deg;
    inherits: false;
}

@property --c1 {
    syntax: "<color>";
    initial-value: #1A305A;
    inherits: false;
}

@property --c2 {
    syntax: "<color>";
    initial-value: #294272;
    inherits: false;
}

@property --c3 {
    syntax: "<color>";
    initial-value: #3B64B2;
    inherits: false;
}

@property --p1 {
    syntax: "<percentage>";
    initial-value: 11.5%;
    inherits: false;
}

@property --p2 {
    syntax: "<percentage>";
    initial-value: 50%;
    inherits: false;
}

@property --p3 {
    syntax: "<percentage>";
    initial-value: 100%;
    inherits: false;
}

@keyframes gradient-cycle {
    0% {
        --ang: 90deg;
        --c1: #1A305A;
        --p1: 11.5%;
        --c2: #294272;
        --p2: 50%;
        --c3: #3B64B2;
        --p3: 100%;
    }
    25% {
        --ang: 89deg;
        --c1: #294272;
        --p1: -7.36%;
        --c2: #5982D1;
        --p2: 30.92%;
        --c3: #294A8A;
        --p3: 88.8%;
    }
    50% {
        --ang: 89deg;
        --c1: #3E5FA0;
        --p1: -15.21%;
        --c2: #294272;
        --p2: 33.26%;
        --c3: #1B5AD2;
        --p3: 125.28%;
    }
    75% {
        --ang: 93deg;
        --c1: #375DA7;
        --p1: -11.42%;
        --c2: #294272;
        --p2: 42.94%;
        --c3: #002263;
        --p3: 118.7%;
    }
    100% {
        --ang: 90deg;
        --c1: #1A305A;
        --p1: 11.5%;
        --c2: #294272;
        --p2: 50%;
        --c3: #3B64B2;
        --p3: 100%;
    }
}

#sign-up-modal {
    .gform_wrapper form {
        .gform_button {
            display: inline-block;
            position: relative;
            color: #fff;
            font-family: "Montserrat", sans-serif;
            text-transform: uppercase;
            text-decoration: none;
            padding: 1.25rem 1rem;
            border-radius: 2.25rem;
            border: none;
            transition: all ease-in-out 200ms;
            outline: none;
            overflow: hidden;
            min-width: 18.625rem;

            span {
                position: relative;
                z-index: 2;
            }

            &::after,
            &::before {
                content: "";
                position: absolute;
                inset: 0;
                border-radius: inherit;
                pointer-events: none;
                z-index: 1;
                transition: opacity 500ms ease-in-out;
            }

            &::before {
                background: linear-gradient(
                        var(--ang),
                        var(--c1) var(--p1),
                        var(--c2) var(--p2),
                        var(--c3) var(--p3)
                );
                animation: gradient-cycle 3s ease-in-out infinite;
                opacity: 1;
            }

            &::after {
                background: linear-gradient(
                        var(--ang),
                        var(--c1) var(--p1),
                        var(--c2) var(--p2),
                        var(--c3) var(--p3)
                );
                opacity: 0;
            }


            &:hover {
                box-shadow: 10px 10px 20px 0 rgba(68, 68, 68, 0.40);
                transform: translateY(-8px);
                &::before {
                    opacity: 0;
                }

                &::after  {
                    opacity: 1;
                }
            }
        }
    }
}

@media only screen and (max-width: 992px) {
    div.modal {
        .mfp-close {
            color: #fff;
            top: -45px;
            right: -20px;
        }
    }
}

@media only screen and (max-width: 576px) {
    .sign-up-top {
        .sign-up-top__logo {
            margin-bottom: 1.875rem;
        }

        .sign-up-top__title {
            margin-bottom: 1.5rem;
        }
    }

    div.modal {
        .modal-inner {
            padding: 48px 20px 60px 20px;
        }

        .gform_wrapper form {
            input[type=text], input[type=email], input[type=tel], select, textarea {
                height: 56px;
                padding-left: 12px;
                padding-right: 15px;
            }
        }
    }

    .mfp-container {
        top: 60px;
    }

    #sign-up-modal {
        & .gform_wrapper form {
            .gform_button {
                min-width: auto;
                width: 100%;
            }
        }
    }
}