html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}


body {
    background-color: #eef3f6;
}

:root {
    --primary-blue: #0977e2;
    --light-blue-bg: #eef3f6;
    --primary-blue-light: #55A5FF;
    --success-green: #22c55e;
    --dark-footer: #0f172a;
}

/*.btn-outline-black, .btn-outline-light {
    border: 2px solid;
    font-weight: 500;
}*/


.bg-off-white {
    background-color: #fffefe;
}

.text-primary-custom {
    color: var(--primary-blue) !important;
}

.text-primary-light {
    color: var(--primary-blue-light) !important;
}

.bg-primary-custom {
    background-color: var(--primary-blue) !important;
}

.bg-light-blue-custom {
    background-color: var(--light-blue-bg) !important;
}

.bg-med-blue {
    background-color: #2984e6;
}

.bg-dark-blue {
    background-color: #2B2C574D;
}

.text-success-custom {
    color: var(--success-green) !important;
}

.btn-primary-custom {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}


.bg-med-blue {
    background-color: #c0d3fc;
}

.btn-outline-black {
    border: 1px solid #000;
    color: #000;
    transition: all 0.2s ease-in-out;
}

.btn-outline-black:hover {
    background-color: #000;
    color: #fff;
}

.btn-white {
    background-color: #ffffff;
    color: var(--primary-blue) !important;
    border: none;
}

.btn-white:hover {
    background-color: #eef1ff;
}

.border-primary-light {
    border-color: var(--primary-blue-light) !important;
}

/****************************/
/* Homepage hero right side container fix*/
/****************************/

.section-hero {
    overflow-x: hidden;
}

.hero-bleed-right {
    position: relative;
    z-index: 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (min-width: 992px) {
    .hero-bleed-right::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 200vw;
        height: 100%;
        background-color: var(--primary-blue) !important;
        z-index: -1;
        border-top-left-radius: 2.5rem;
        border-bottom-left-radius: 2.5rem;
        pointer-events: none;
    }
}

@media (max-width: 991.98px) {
    .hero-bleed-right {
        background-color: var(--primary-blue) !important;
        border-radius: 2.5rem !important;
        margin-top: 2rem;
        padding: 4rem 1rem;
        min-height: 300px;
    }
    
    .hero-bleed-right::after {
        display: none;
    }

    .hero-bleed-right span {
        font-size: 3.5rem !important;
    }
    .hero-bleed-right img {
        height: 3.5rem !important;
    }
}



/****************************/
/* Time Line */
/****************************/

.timeline-container {
    padding: 3rem 0;
}

.step-row {
    position: relative;
    margin-bottom: 5rem;
}

.step-row:last-of-type {
    margin-bottom: 0;
}

/* The Line Wrapper */
.line-wrapper {
    position: absolute;
    top: -2.5rem;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 44px;
}

/* First Row Fixes */
.step-row:first-of-type .line-segment-top {
    visibility: hidden;
}

.step-row:first-of-type .line-wrapper {
    top: 0;
}

/* Last Row Fixes */
.step-row:last-of-type .line-segment-bottom {
    visibility: hidden;
}

.step-row:last-of-type .line-wrapper {
    bottom: 0;
}

/* The axis that floats in the center spacer */
.timeline-axis {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: -3rem;
    /* Reaches up to the previous row's margin */
    bottom: -3rem;
    /* Reaches down to the next row's margin */
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    z-index: 10;
}

.line-segment {
    width: 3px;
    background-color: #000;
    flex-grow: 1;
}

.step-number {
    width: 44px;
    height: 44px;
    background-color: #fff;
    border: 3px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    z-index: 11;
}

/* Logic to stop the line at 1 and 3 */
.step-row:first-child .line-segment-top {
    visibility: hidden;
}

.step-row:last-child .line-segment-bottom {
    visibility: hidden;
}




/****************************/
/* Broker slider */
/****************************/
:root {
    --no-of-logos: 5;
    --logo-width: 130px;
    --gap: 60px;
    --scroll-speed: 15s;
}

.logo-slider {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    display: flex;
    pointer-events: none;
    /* Entire area ignores all clicks/drags */
    user-select: none;
    /* Prevents text/image highlighting */
    -webkit-user-drag: none;
    /* Disables browser-level dragging */
    touch-action: none;
    /* Prevents scrolling/zooming via the slider on mobile */
}


/* Create a soft fade-out on the edges so logos don't cut off */
.logo-slider::before,
.logo-slider::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.logo-track {
    display: flex;
    width: max-content;
    animation: scroll var(--scroll-speed) linear infinite;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: var(--gap);
    padding-right: var(--gap);
    /* Keeps the spacing consistent between loops */
}

.logo-group img {
    width: var(--logo-width);
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.ls-1 {
    letter-spacing: 1px;
}

.hover-white:hover {
    color: white !important;
}

.section-hero h1 {
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.section-steps h2,
.section-testimonials h2,
.section-features-split h2,
.section-video h2,
.section-cta h2 {
    letter-spacing: -1px;
}

.rounded-4 {
    border-radius: 20px !important;
}

.rounded-5 {
    border-radius: 30px !important;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.shadow-lg {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}


.logo-group img {
    width: var(--logo-width);
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo-group img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* Pause on hover */
/*.logo-track:hover {
    animation-play-state: paused;
}*/







/****************************/
/* --- Map Section --- */
/****************************/

.schedule-hero {
    padding: 3rem 0 1rem;
}

.schedule-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}

.schedule-hero p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 520px;
    margin: 0 auto;
}

/* --- Map Container --- */
.map-section {
    padding: 0 0 3rem;
}

.map-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
}

#map-container {
    width: 700px;
    flex: 0 0 700px;
    min-width: 700px;
    max-width: 100%;
    margin: 0 auto;
}

#us-region-map path {
    cursor: pointer;
}

/* --- Tooltip --- */
#map-tooltip {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0977e2;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e2e8f0;
    backdrop-filter: blur(6px);
    border-radius: 8px;
    padding: 0.45rem 1.2rem;
    margin-top: 0.75rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    box-shadow: 0 2px 12px rgba(9, 119, 226, 0.08);
}

/* --- Legend --- */
#map-legend {
    flex: 0 0 225px;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf0;
    overflow-y: auto;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 5px;
    min-height: 28px;
    line-height: 1.1;
    white-space: nowrap;
}

.legend-item:hover,
.legend-item--active {
    background: #eef4fb;
    transform: translateX(3px);
}

.legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.legend-number {
    font-weight: 700;
    color: #0977e2;
    min-width: 18px;
    text-align: right;
    font-size: 0.78rem;
}

.legend-label {
    white-space: nowrap;
}

/* --- Mobile Dropdown --- */
#map-mobile-view {
    display: none;
}

.mobile-select-wrapper {
    max-width: 420px;
    margin: 1rem auto 0;
}

.mobile-select-wrapper label {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: block;
}

#mobile-region-select {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 1rem;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #1e293b;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%230977e2'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#mobile-region-select:focus {
    outline: none;
    border-color: #0977e2;
    box-shadow: 0 0 0 3px rgba(9, 119, 226, 0.15);
}

/* --- Reference Image --- */
.ref-map-section {
    text-align: center;
    padding: 2rem 0 3rem;
}

.ref-map-section img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.ref-map-label {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 0.75rem;
}

/* --- Responsive --- */

/* 1. MOVE LEGEND TO BOTTOM */
@media (max-width: 1140px) {
    .map-layout {
        flex-direction: column;
        align-items: center;
    }

    #map-legend {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-height: none;
    }

    #map-legend .legend-item {
        flex: 0 0 auto;
    }
}

/* 2. SWITCH TO DROPDOWN */
@media (max-width: 767px) {
    #map-desktop-view {
        display: none !important;
    }

    #map-mobile-view {
        display: block !important;
    }
}

#us-region-map circle,
#us-region-map text {
    display: none !important;
}

