/**
 * Ford Test Drive CTA Banner Widget Styling
 * Matches attachment: Vibrant blue rounded bar, car cutout on left, text in center, pill button on right.
 */

.ftd-banner-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    padding: 0;
}

.ftd-banner-container.is-boxed {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

.ftd-banner-container.is-full-width {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
}


.ftd-banner-inner {
    position: relative;
    width: 100%;
    min-height: 90px;
    border-radius: 16px;
    background: linear-gradient(90deg, #006bf5 0%, #0056cc 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 35px 10px 220px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px -5px rgba(0, 107, 245, 0.4);
    overflow: visible;
}

/* Vehicle Cutout on the Left (Breakout styling) */
.ftd-banner-car-wrap {
    position: absolute;
    left: 15px;
    bottom: 0;
    width: 210px;
    height: 110%;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
    z-index: 5;
}

.ftd-banner-car-img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.35));
    transform: translateY(10px);
}

/* Center Text Content */
.ftd-banner-text-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    padding-right: 20px;
}

.ftd-banner-title {
    font-family: 'FordF1TC', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 0 3px 0;
    line-height: 1.2;
}

.ftd-banner-subtitle {
    font-family: 'FordF1TC', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.3;
}

/* Right Side Button */
.ftd-banner-btn-wrap {
    flex-shrink: 0;
    z-index: 2;
}

.ftd-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: 50px;
    background-color: #00095b;
    color: #ffffff;
    font-family: 'FordF1TC', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 9, 91, 0.35);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.ftd-banner-btn:hover {
    background-color: #001280;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 9, 91, 0.5);
    color: #ffffff;
}

/* Responsive (Tablet <= 991px) */
@media (max-width: 991px) {
    .ftd-banner-inner {
        padding-left: 170px;
        padding-right: 20px;
    }

    .ftd-banner-car-wrap {
        width: 170px;
        left: 10px;
    }

    .ftd-banner-car-img {
        max-height: 100px;
    }

    .ftd-banner-title {
        font-size: 1.25rem;
    }

    .ftd-banner-subtitle {
        font-size: 0.85rem;
    }

    .ftd-banner-btn {
        padding: 8px 22px;
        font-size: 0.88rem;
    }
}

/* Responsive (Mobile <= 767px) */
@media (max-width: 767px) {
    .ftd-banner-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 110px 20px 25px !important;
        min-height: auto;
    }

    .ftd-banner-car-wrap {
        position: absolute;
        top: -25px;
        left: 50%;
        transform: translateX(-50%);
        bottom: auto;
        width: 220px;
        height: auto;
        justify-content: center;
    }

    .ftd-banner-car-img {
        max-height: 115px;
        transform: none;
    }

    .ftd-banner-text-wrap {
        padding-right: 0;
        margin-bottom: 16px;
    }

    .ftd-banner-title {
        font-size: 1.25rem;
        margin-bottom: 6px;
    }

    .ftd-banner-subtitle {
        font-size: 0.82rem;
    }

    .ftd-banner-btn {
        width: 100%;
        max-width: 280px;
        padding: 10px 20px;
    }
}

/* Image Banner Mode */
.ftd-image-banner-wrap {
    position: relative;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    display: block;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ftd-banner-container:not(.is-full-width) .ftd-image-banner-wrap {
    border-radius: 12px;
    box-shadow: 0 8px 24px -4px rgba(0, 107, 245, 0.25);
}

.ftd-banner-container:not(.is-full-width) .ftd-image-banner-wrap:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px -4px rgba(0, 107, 245, 0.38);
}

.ftd-banner-container.is-full-width .ftd-image-banner-wrap {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.ftd-image-banner-wrap:focus-visible {
    outline: 3px solid #006bf5;
    outline-offset: 3px;
}

.ftd-image-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ==========================================================================
   RESPONSIVE: HIDE ON MOBILE (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .ftd-banner-container.ftd-hide-on-mobile,
    .elementor-widget-ford_test_drive_banner.ftd-hide-mobile-yes,
    .elementor-widget-ford_test_drive_banner.ftd-hide-mobile-yes .ftd-banner-container {
        display: none !important;
    }
}



