:root {
    --card-bg: #fff;
    --content-width: 1235px;

    --shadow: 6px 6px 10px 0 rgba(0, 0, 0, .15);

    --shadow-small: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --text-color: #20295B;
    --primary-color: #009BDF;
    --swiper-theme-color: var(--primary-color);
    --secondary-color: #20295B;
    --accent-color: #EE7412;
    --accent-secondary-color: #F2B134;
    --gray-dark-color: #231F20;
    --gray-color: #A7A9AC;
    --border-color: #A7A9AC;
    --success-color: #22bb33;

    --text-size: 18px;
    --button-size: 14px;

    --button-lineheight: 17px;


    --h1-size: 50px;
    --h2-size: 36px;
    --h3-size: 24px;
    --h4-size: 20px;
    --h5-size: 18px;
    --h6-size: 14px;

    --h1-margin: 20px;
    --h2-margin: 22px;
    --h3-margin: 15px;
    --h4-margin: 12px;
    --h5-margin: 18px;
    --h6-margin: 16px;
    --p-margin: 12px;
    --text-size-small: 16px;


    @media (max-width: 1199px) {

        --text-size: 16px;
        --h1-size: 40px;
        --h2-size: 29px;
        --h3-size: 22px;


    }

    @media (max-width: 991px) {

        --text-size: 15px;

        --h1-size: 30px;
        --h2-size: 20px;
        --h3-size: 20px;
        --h4-size: 18px;

        --h1-margin: 15px;
        --h2-margin: 15px;
    }
}

* {
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

body {
    margin: 0;
    min-width: 360px;
    background: #fff;
    font-family: Arial, Arial, sans-serif;
    color: var(--text-color);
    font-size: var(--text-size);
}



/* Agencies Lcoator */

.agencies-locator {
    position: relative;
    padding: 60px 0;
    font-family: Arial, Arial, sans-serif;
    color: var(--text-color);
    font-size: var(--text-size);
    line-height: 1.388;
    display: block;
    overflow: hidden;
    border-top: 35px solid var(--secondary-color);

    @media (max-width: 1199px) {
        border-top-width: 20px;
        padding: 40px 0;
    }

    .page-center {
        max-width: var(--content-width);
        padding: 0 20px;
        margin: 0 auto;
        width: 100%;
    }

    p {
        margin: 0 0 var(--p-margin);
    }

    p small {
        font-size: 75%;
    }

    a {
        text-decoration: none;
        color: var(--accent-color);
    }

    a:hover {
        color: var(--primary-color);
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .subtitle {
        line-height: 1.2;
    }

    h1,
    .h1 {
        font-weight: 700;
        text-decoration: none;
        font-family: Arial, Arial, sans-serif;
        font-style: normal;
        color: var(--accent-color);
        font-size: var(--h1-size);
        text-transform: none;
        margin: 0 0 var(--h1-margin);
    }

    h2,
    .h2 {
        font-weight: 700;
        text-decoration: none;
        font-family: Arial, Arial, sans-serif;
        font-style: normal;
        color: var(--accent-color);
        font-size: var(--h2-size);
        text-transform: none;
        margin: 0 0 var(--h2-margin);

    }

    h3,
    .h3 {
        font-weight: 700;
        text-decoration: none;
        font-family: Arial, Arial, sans-serif;
        font-style: normal;
        color: var(--accent-color);
        font-size: var(--h3-size);
        text-transform: none;
        margin: 0 0 var(--h3-margin);
    }

    h4,
    .h4 {
        font-weight: normal;
        text-decoration: none;
        font-family: Arial, Arial, sans-serif;
        font-style: normal;
        color: var(--accent-color);
        font-size: 20px;
        font-size: var(--h4-size);
        text-transform: none;
        margin: 0 0 var(--h4-margin);
    }

    h5,
    .h5 {
        font-weight: normal;
        text-decoration: none;
        font-family: Arial, Arial, sans-serif;
        font-style: normal;
        color: var(--accent-color);
        font-size: var(--h5-size);
        text-transform: none;
        margin: 0 0 var(--h5-margin);
        line-height: 1.15;
    }

    h6,
    .h6 {
        font-weight: normal;
        text-decoration: none;
        font-family: Arial, Arial, sans-serif;
        font-style: normal;
        color: var(--accent-color);
        font-size: var(--h6-size);
        text-transform: none;
        margin: 0 0 var(--h6-margin);
    }

    h1 span,
    h2 span,
    h3 span,
    h4 span,
    h5 span,
    h6 span {
        color: var(--primary-color);
    }

    h1 a,
    h2 a,
    h3 a,
    h4 a,
    h5 a,
    h6 a {
        color: inherit;
    }


    p:last-child {
        margin: 0;
    }

    img {
        max-width: 100%;
        height: auto;
        vertical-align: top;
    }

    .section-header {
        position: relative;
        text-align: center;
        max-width: 72%;
        margin: 0 auto 60px;

        @media (max-width: 1199px) {
            max-width: 90%;
            margin-bottom: 40px;
        }

        @media (max-width: 767px) {
            max-width: 100%;
            margin-bottom: 30px;
        }

        .logo {
            max-width: 177px;
            margin: 0 auto 40px;

            @media (max-width: 1199px) {
                max-width: 150px;
                margin-bottom: 30px;
            }

            img {
                display: block;
                max-width: 100%;
                height: auto;
            }
        }

        h1 {
            text-transform: uppercase;
        }

        h2 {
            color: var(--text-color);
            margin: 0;
            font-weight: 400;
        }
    }

    .search-filter-container {
        display: flex;
        flex-flow: row wrap;
        margin: -20px -10px 0;
        position: relative;
        z-index: 10;

        >div {
            flex-shrink: 0;
            padding: 20px 10px 0;
            width: 25%;



            @media (max-width: 767px) {
                width: 100% !important;
            }

            &.search-box {
                width: 75%;
            }

            &:nth-child(2) {
                width: 25%;
            }
        }

        .input-wrap {
            position: relative;

            .ico-svg {
                position: absolute;
                right: 10px;
                top: 50%;
                transform: translateY(-50%);
                width: 19px;

                svg {
                    display: block;
                    width: 100%;
                    height: auto;
                }
            }
        }

        .input-select {
            &:after {
                position: absolute;
                right: 0;
                background: #fff;
                content: "˅";
                font-size: 14px;
                top: 0;
                border: 3px solid var(--secondary-color);
                border-left: 0;
                bottom: 0;
                pointer-events: none;
                border-radius: 0 35px 35px 0;
                width: 30px;
                display: flex;
                align-items: center;
                justify-content: center;
                font-weight: 700;
            }

            select {
                -webkit-appearance: none;
                padding-right: 30px;
            }
        }

        .filter-label {
            display: block;
            font-weight: 700;
            color: var(--primary-color);
            margin: 0 0 10px;
            font-size: 14px;
            line-height: 1.1;

            @media (max-width: 1199px) {
                margin: 0 0 6px;
            }
        }

        input,
        select {
            width: 100%;
            display: block;
            border: 3px solid var(--secondary-color);
            height: 40px;
            border-radius: 35px;
            text-transform: uppercase;
            padding: 10px 15px;
            font-size: 12px;
            line-height: 16px;
            color: var(--gray-color);
        }

        select option {
            color: var(--text-color);
        }

        .ico-search {
            position: absolute;
            right: 5px;
            width: 18px;
            height: 20px;
            top: 50%;
            transform: translateY(-50%);
            display: block;

            svg {
                display: block;
                width: 100%;
                height: auto;
            }
        }
    }

    .agency-grid {
        display: flex;
        flex-flow: row wrap;
        padding: 60px 0 0;
        margin: -20px -10px 0;
        z-index: 1;
        position: relative;

        @media (max-width: 1199px) {
            padding: 40px 0 0;
        }

        &:before {
            position: absolute;
            left: -9999px;
            top: 260px;
            bottom: 200px;
            right: -9999px;
            background: rgba(0, 155, 223, .15);
            content: "";
            z-index: -1;

            @media (max-width: 1199px) {
                top: 200px;
                bottom: 150px;
            }
        }
    }

    .agency-card {
        width: 33.33%;
        flex-shrink: 0;
        padding: 20px 10px 0;
        display: flex;
        font-size: 14px;
        line-height: 1.2;

        @media (max-width: 991px) {
            width: 50%;
        }

        @media (max-width: 767px) {
            width: 100%;
        }

        &.selected-card {
            .card-frame {
                background: var(--success-color);
                color: #fff;

                .agency-footer {
                    border-color: #fff;
                }

                .agency-name h3,
                .info-item svg,
                .distance-badge,
                .section-label {
                    color: #fff;
                    fill: #fff
                }
            }
        }

        .card-frame {
            width: 100%;
            background: #fff;
            box-shadow: var(--shadow);
            border-radius: 15px;
            padding: 20px;
            display: flex;
            flex-flow: row wrap;

            @media (max-width: 1199px) {
                padding: 15px;
            }
        }

        .card-holder {
            width: 100%;
        }

        .btn-block {
            width: 100%;
            align-self: flex-end;
        }



        .about-section {
            padding: 0 0 25px;
            overflow: hidden;

            @media (max-width: 1199px) {
                padding: 0 0 20px;
            }
        }

        .agency-name {
            margin: 0 0 10px;

            h3 {
                font-size: 23px;
                line-height: 1.1;
                color: var(--primary-color);
                margin: 0;

                @media (max-width: 1199px) {
                    font-size: 20px;
                }
            }
        }

        .info-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 14px;
            margin: 0 0 30px;

            @media (max-width: 1199px) {
                margin: 0 0 25px;
            }
        }

        .info-item {
            display: inline-flex;
            align-items: center;

            svg {
                fill: var(--primary-color);
                width: 14px;
                height: 14px;
                display: block;
                margin: 0 5px 0 0;
                flex-shrink: 0;
            }

        }

        .agency-footer {
            border-top: 2px solid var(--accent-color);
            padding: 25px 0 0;
            width: 100%;
            align-self: flex-end;

            @media (max-width: 1199px) {
                padding: 20px 0 0;
            }
        }

        .distance-badge {
            border: 1px solid var(--secondary-color);
            font-weight: 700;
            padding: 2px 6px;
            border-radius: 5px;
            color: var(--primary-color);
        }

        .section-label {
            display: block;
            font-size: 14px;
            font-weight: 700;
            color: var(--accent-color);
            text-transform: uppercase;
            margin: 0 0 15px;
        }
    }

}



.action-btns {
    display: flex;
    gap: 10px;

    &:not(.column):not(.see-more-container)>.btn {
        flex-grow: 1;
        flex-shrink: 0;
        flex-basis: 0;
    }

    &.see-more-container {
        justify-content: center;
        padding: 30px 0 0 !important;

        .btn {
            min-width: 220px;
        }
    }

    &.column {
        flex-flow: column nowrap;

    }


    .btn {
        -webkit-appearance: none;
        background: var(--primary-color);
        position: relative;
        display: inline-flex;
        vertical-align: top;
        padding: 8px 15px;
        border: 2px solid transparent;
        border-radius: 25px;
        font-size: 14px;
        line-height: 20px;
        color: #fff;
        justify-content: center;
        text-transform: uppercase;
        font-weight: 700;
        text-align: center;
        cursor: pointer;
        min-width: 120px;

        &.btn-accent {
            background: var(--accent-color);

            &:hover {
                background: var(--secondary-color);
            }
        }

        &:hover {
            background: var(--secondary-color);
        }

        &.btn-primary-outline {
            background: none;
            border-color: var(--secondary-color);
            color: var(--primary-color);

            &:hover {
                background: var(--accent-color);
                border-color: var(--accent-color);
                color: #fff;
            }
        }
        
        &:disabled {
            background: #eee !important;
            color: var(--secondary-color) !important;
            cursor: not-allowed;
            box-shadow: none;
            transform: none;

            &:hover {
                background: #eee !important;
                color: var(--secondary-color) !important;
            }
        }
    }
}


.error-message-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 2rem;
}

.error-message {
    margin-top: 0 !important;
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    text-align: center;
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
}

.toggle-text-btn {
    color: var(--primary);
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-weight: 600;
    margin-left: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.toggle-text-btn:hover {
    text-decoration: underline;
}

.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #10b981;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

.modal-section p,
.modal-section a {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    text-decoration: none;
    white-space: pre-wrap;
    word-wrap: break-word;
}

#modalDescription {
    max-height: 25vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.modal-section a {
    color: #60a5fa;
}

.modal-section a:hover {
    text-decoration: underline;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 9999;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    width: 100%;
    max-width: 720px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.25s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-main);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-modal:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.modal-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.modal-section h3 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.select-btn.selected-state {
    background-color: var(--success-color) !important;
    pointer-events: none;
}

.modal-text {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.center {
    text-align: center;
}

.modal-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.warning-icon {
    color: #fbbf24;
}

.success-icon {
    color: #10b981;
}

.error-icon {
    color: #ef4444;
}

.confirmation-content {
    max-width: 900px !important;
    padding: 3rem 4rem !important;
}

.status-content {
    max-width: 900px !important;
    padding: 3rem 4rem !important;
}

/* Animations for icons */
@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-icon svg {
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.agency-card.hidden {
    display: none !important;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid var(--secondary-color);
    width: 20px;
    height: 20px;
    margin: 0 10px 0 0;
    animation: spin 1s linear infinite;
    display: inline-block;
}

.see-more-btn:disabled .spinner {
    border-color: var(--secondary-color);
}

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

    100% {
        transform: rotate(360deg);
    }
}


/* Agency Detail */
.agency-locator-detail {
    padding-bottom: 0;
}

.agency-details {
    padding: 0 0 60px;
    position: relative;
    display: flex;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.2;
    align-items: flex-start;
    gap: 30px;
    z-index: 1;

    @media (max-width: 1199px) {
        padding: 0 0 40px;
    }

    @media (max-width: 991px) {
        flex-flow: column nowrap;
    }

    &:before {
        position: absolute;
        left: -9999px;
        top: 280px;
        bottom: 0;
        right: -9999px;
        background: rgba(0, 155, 223, .15);
        content: "";
        z-index: -1;

        @media (max-width: 1199px) {
            top: 200px;
        }

    }

    .agency-detail-contents {
        flex-grow: 1;
        overflow: hidden;
        background: #fff;
        border-radius: 30px;
        padding: 30px;
        box-shadow: var(--shadow);

        @media (max-width: 1199px) {
            padding: 20px;
            border-radius: 20px;
        }
    }

    .agency-sidebar {
        flex-shrink: 0;
        background: #fff;
        border-radius: 30px;
        padding: 30px;
        box-shadow: var(--shadow);
        width: 366px;

        @media (max-width: 1199px) {
            width: 300px;
            padding: 20px;
            border-radius: 20px;
        }

        @media (max-width: 991px) {
            width: 100%;
        }
    }

    h2 {
        font-size: 23px;
        color: var(--primary-color);
        margin: 0 0 12px;
        display: flex;
        align-items: center;
        gap: 15px;

        @media (max-width: 1199px) {
            font-size: 20px;
        }

        .agency-logo {
            flex-shrink: 0;
            max-width: 103px;

            img {
                display: block;
                max-width: 100%;
                height: auto;
            }

        }

        .title-text {
            flex-grow: 1;
            overflow: hidden;
        }
    }

    h3,
    h4 {
        color: var(--accent-color);
        margin: 0 0 8px;
        text-transform: uppercase;
        font-size: 14px;
        line-height: 1.2;
        font-weight: 700;
    }

    h4 {
        margin: 0 0 3px;
        color: inherit;
        text-transform: none;
    }

    .info-section {
        overflow: hidden;
        display: flex;
        padding: 25px 0;
        gap: 30px;
        border-bottom: 2px solid var(--accent-color);

        @media (max-width: 1199px) {
            gap: 20px;
            padding: 20px 0;
        }

        @media (max-width: 767px) {
            flex-flow: column nowrap;
        }

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

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

        .info-col {
            flex-grow: 1;
            flex-shrink: 0;
            flex-basis: 0;
            display: flex;

            .info-col-holder {
                width: 100%;
            }
        }
    }

    .map-container {
        position: relative;
        display: flex;

        iframe {
            display: block;
            width: 100%;
            border: 0;
            margin: 0;
            padding: 0;
            min-height: 130px;
        }
    }

    ul {
        margin: 0 0 20px;
        padding: 0;
        list-style: none;

        li {
            margin: 0 0 7px;

            &:last-child {
                margin: 0;
            }
        }

        &:last-child {
            margin: 0;
        }

        &.bullet-list {
            list-style: disc outside;
            padding-left: 15px;

            li {
                margin: 0 0 3px;
            }
        }
    }

    .hours-table {
        margin: 0 0 15px;
        padding: 0;
        list-style: none;

        &:last-child {
            margin: 0;
        }

    }
}


.vscomp-toggle-button {
    border: 3px solid var(--secondary-color);
    border-radius: 35px;
    background-color: transparent;
    padding: 7px 15px;
    font-size: 12px;
    min-height: 40px;
    text-transform: uppercase;
}

.vscomp-wrapper.focused .vscomp-toggle-button {
    border-color: var(--primary-color);
    border-radius: 15px 15px 0 0;
    box-shadow: none;
}

.vscomp-dropbox {
    border: 3px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 15px 15px;
    box-shadow: none;
}

.vscomp-option.selected {
    background-color: rgba(0, 155, 223, 0.1);
}

.vscomp-option-text {
    font-size: 13px;
}

.vscomp-search-input {
    font-size: 13px;
}

.vscomp-checkbox {
    border-color: var(--secondary-color);
}

.vscomp-option.selected .vscomp-checkbox {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.vscomp-ele {
    max-width: 100%;
    vertical-align: top;
}