:root {
    --primary-blue: #0066CC;
    --dark-blue: #003d7a;
    --light-gray: #f5f5f5;
    --text-gray: #666;
    --border-gray: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Istok Web', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Ensure consistent font family throughout */
* {
    font-family: 'Istok Web', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', Georgia, serif;
}

p, span, div, input, textarea, button {
    font-family: 'Istok Web', Arial, sans-serif;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeIn {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
}

.animate-delay-600 {
    animation-delay: 0.6s;
    opacity: 0;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-link {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.bmw-image {
    position: relative;
    animation: pulse 4s ease-in-out infinite;
}

.bmw-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.bmw-image:hover img {
    transform: scale(1.05);
}

/* Button Styles */
.btn-primary {
    background: var(--primary-blue);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: #d91e54 !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 5px 15px rgba(238,47,93,0.3);
}

/* Card Styles */
.solution-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 1.6rem;
    margin-bottom: 1.6rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.solution-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 102, 204, 0.05) 0%, 
        rgba(0, 56, 107, 0.05) 25%, 
        rgba(238, 47, 93, 0.05) 50%, 
        rgba(0, 102, 204, 0.05) 75%, 
        rgba(0, 56, 107, 0.05) 100%);
    background-size: 400% 400%;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientMove 8s ease infinite;
}

.solution-card:hover::before {
    left: 100%;
}

.solution-card:hover::after {
    opacity: 1;
}

.solution-card:hover {
    transform: translateX(12px) translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-left-color: #00386b;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.solution-card h4 {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.solution-card p {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.solution-card svg {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.solution-card:hover h4 {
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #00386b;
}

.solution-card:hover p {
    transform: translateY(-1px);
    color: #555;
}

.solution-card:hover svg {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 2px 4px rgba(0,56,107,0.3));
}

/* Individual solution card animations */
.solution-card:nth-child(1) {
    animation-delay: 0.1s;
}

.solution-card:nth-child(2) {
    animation-delay: 0.2s;
}

.solution-card:nth-child(3) {
    animation-delay: 0.3s;
}

.solution-card:nth-child(4) {
    animation-delay: 0.4s;
}

.solution-card:nth-child(5) {
    animation-delay: 0.5s;
}

.solution-card:nth-child(6) {
    animation-delay: 0.6s;
}

.solution-card:nth-child(7) {
    animation-delay: 0.7s;
}

.solution-card:nth-child(8) {
    animation-delay: 0.8s;
}

/* Remove automatic floating animation - only float on hover */
.solution-card:hover {
    animation: none;
}

/* Compliance card specific styles */
.compliance-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.compliance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.compliance-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 102, 204, 0.05) 0%, 
        rgba(0, 56, 107, 0.05) 25%, 
        rgba(238, 47, 93, 0.05) 50%, 
        rgba(0, 102, 204, 0.05) 75%, 
        rgba(0, 56, 107, 0.05) 100%);
    background-size: 400% 400%;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientMove 8s ease infinite;
}

.compliance-card:hover::before {
    left: 100%;
}

.compliance-card:hover::after {
    opacity: 1;
}

.compliance-card:hover {
    transform: translateX(8px) translateY(-2px) scale(1.01);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-left-color: #00386b;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.compliance-card h4 {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.compliance-card p {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.compliance-card svg {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.compliance-card:hover h4 {
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #00386b;
}

.compliance-card:hover p {
    transform: translateY(-1px);
    color: #555;
}

.compliance-card:hover svg {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 2px 4px rgba(0,56,107,0.3));
}

/* Individual compliance card animations */
.compliance-card:nth-child(1) {
    animation-delay: 0.1s;
}

.compliance-card:nth-child(2) {
    animation-delay: 0.2s;
}

.compliance-card:nth-child(3) {
    animation-delay: 0.3s;
}

.compliance-card:nth-child(4) {
    animation-delay: 0.4s;
}

.compliance-card:nth-child(5) {
    animation-delay: 0.5s;
}

.compliance-card:nth-child(6) {
    animation-delay: 0.6s;
}

.compliance-card:nth-child(7) {
    animation-delay: 0.7s;
}

.compliance-card:nth-child(8) {
    animation-delay: 0.8s;
}

.compliance-card:nth-child(9) {
    animation-delay: 0.9s;
}

.compliance-card:nth-child(10) {
    animation-delay: 1.0s;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    font-size: 14px;
    font-family: 'Istok Web', Arial, sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

/* Form labels and text styling */
.form-label, .form-text {
    font-family: 'Istok Web', Arial, sans-serif;
    font-size: 14px;
}

/* Section Headers */
.section-header {
    background: #333;
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

/* Main section containers hover effects */
.section-container {
    transition: all 0.4s ease;
    cursor: pointer;
}

.section-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.section-container:hover .section-header {
    background: #00386b;
    transform: scale(1.05);
}

.section-container:hover .bg-white {
    background: #fafbfc !important;
}

/* Partner Logos */
.partner-logo {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.partner-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 102, 204, 0.05) 0%, 
        rgba(0, 56, 107, 0.05) 25%, 
        rgba(238, 47, 93, 0.05) 50%, 
        rgba(0, 102, 204, 0.05) 75%, 
        rgba(0, 56, 107, 0.05) 100%);
    background-size: 400% 400%;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientMove 8s ease infinite;
}

.partner-logo:hover::before {
    left: 100%;
}

.partner-logo:hover::after {
    opacity: 1;
}

.partner-logo:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.partner-logo h3 {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.partner-logo p {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.partner-logo:hover h3 {
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.partner-logo:hover p {
    transform: translateY(-1px);
    color: #555;
}

/* Individual partner logo animations */
.partner-logo:nth-child(1) {
    animation-delay: 0.1s;
}

.partner-logo:nth-child(2) {
    animation-delay: 0.2s;
}

.partner-logo:nth-child(3) {
    animation-delay: 0.3s;
}

.partner-logo:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating animation for partner logos */
@keyframes partnerFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.partner-logo {
    animation: partnerFloat 4s ease-in-out infinite;
}

.partner-logo:nth-child(1) {
    animation-delay: 0s;
}

.partner-logo:nth-child(2) {
    animation-delay: 1s;
}

.partner-logo:nth-child(3) {
    animation-delay: 2s;
}

.partner-logo:nth-child(4) {
    animation-delay: 3s;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

/* Loading Animation */
.loading-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-blue);
    margin: 0 3px;
    animation: loading 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loading {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Custom font styling */
.IstokLoralabelshort {
    font: 400 14px / 1.6 'Lora', Georgia, serif;
}

/* Bullet list styling - larger bullets only */
.bullet-list li::marker {
    font-size: 20px;
    color: #00386b;
}

/* BMW Banner Effects */
.bmw-banner {
    background: linear-gradient(45deg, #00386b, #0066CC, #00386b, #003d7a);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    position: relative;
    overflow: hidden;
}

.bmw-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

.bmw-banner:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.bmw-banner h2 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.bmw-banner:hover h2 {
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    transform: translateY(-2px);
}

.bmw-banner p {
    transition: all 0.3s ease;
}

.bmw-banner:hover p {
    transform: translateY(-1px);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Floating particles effect */
.bmw-banner .particle {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

.bmw-banner .particle:nth-child(1) {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.bmw-banner .particle:nth-child(2) {
    width: 12px;
    height: 12px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.bmw-banner .particle:nth-child(3) {
    width: 6px;
    height: 6px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.bmw-banner .particle:nth-child(4) {
    width: 10px;
    height: 10px;
    top: 30%;
    left: 70%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* New "EDI For BMW, Made Easy" Section Styles */
.edi-made-easy-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
    /* Add layout containment to prevent external layout changes from affecting this section */
    contain: layout style;
    /* Optimize for layout changes */
    will-change: auto;
}

.edi-made-easy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23003d7a" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.edi-content-container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 61, 122, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 61, 122, 0.1);
    /* Add containment to isolate this container from external layout changes */
    contain: layout style;
    /* Prevent layout shifts */
    transform: translateZ(0);
}

.edi-content-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 61, 122, 0.25);
    border-color: rgba(0, 61, 122, 0.2);
}

.edi-main-heading {
    color: #003d7a;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 61, 122, 0.1);
    animation: fadeInUp 1s ease-out;
}

.edi-main-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #003d7a, #0066CC, #003d7a);
    border-radius: 2px;
    animation: expandWidth 1.5s ease-out 0.5s both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

.edi-intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #4a5568;
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.edi-features-grid {
    display: grid;
    /* Force 4 columns in a single row - use smaller minmax to prevent wrapping */
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    /* Critical fixes for layout stability */
    contain: layout style;
    will-change: auto;
    transform: translateZ(0);
    /* Ensure minimum width to prevent unwanted wrapping */
    min-width: 0;
    /* Add explicit height to prevent layout shifts */
    min-height: 300px;
    /* Prevent grid items from affecting external layout */
    isolation: isolate;
    /* Force single row layout */
    grid-template-rows: 1fr;
    /* Prevent wrapping to new rows */
    overflow-x: auto;
}

/* Adjust responsive breakpoints to maintain 4 columns longer */
@media (max-width: 1400px) and (min-width: 1001px) {
    .edi-features-grid {
        /* Keep 4 columns but with smaller minimum width */
        grid-template-columns: repeat(4, minmax(180px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 1000px) and (min-width: 769px) {
    .edi-features-grid {
        /* Only go to 2 columns on smaller screens */
        grid-template-columns: repeat(2, minmax(250px, 1fr));
        min-height: 600px;
        grid-template-rows: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .edi-features-grid {
        /* Single column on mobile */
        grid-template-columns: minmax(280px, 1fr);
        min-height: 1200px;
        gap: 1rem;
        grid-template-rows: repeat(4, 1fr);
    }
}

/* Ensure 4 columns on larger screens */
@media (min-width: 1401px) {
    .edi-features-grid {
        grid-template-columns: repeat(4, minmax(220px, 1fr));
        max-width: 100%;
        grid-template-rows: 1fr;
    }
}

.edi-feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 61, 122, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* Stabilize individual cards */
    contain: layout style;
    will-change: transform;
    /* Ensure consistent dimensions */
    min-height: 280px;
    min-width: 250px;
    /* Prevent layout shifts */
    transform: translateZ(0);
}

.edi-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 61, 122, 0.05), transparent);
    transition: left 0.8s ease;
}

.edi-feature-card:hover::before {
    left: 100%;
}

.edi-feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 61, 122, 0.15);
    border-left-color: #003d7a;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.edi-feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #003d7a, #0066CC);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 61, 122, 0.3);
}

.edi-feature-card:hover .edi-feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 61, 122, 0.4);
}

.edi-feature-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.edi-feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #003d7a;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.edi-feature-card:hover .edi-feature-title {
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 61, 122, 0.1);
}

.edi-feature-description {
    color: #4a5568;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.edi-feature-card:hover .edi-feature-description {
    color: #2d3748;
    transform: translateY(-1px);
}

/* Individual feature card animations */
.edi-feature-card:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.edi-feature-card:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.edi-feature-card:nth-child(3) {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.edi-feature-card:nth-child(4) {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Modal Styles */
#PopUpContactModal .modal-dialog {
    max-width: 700px;
    margin: 30px auto;
}

#PopUpContactModal .modal-content {
    border-radius: 6px;
    overflow: hidden;
}


/* Boost Bootstrap modal's z-index */
.modal-backdrop {
    z-index: 1040 !important;
}

#PopUpContactModal {
    z-index: 1050 !important;
}

/* Critical Fix: Prevent modal from affecting page styles */
body.modal-open {
    /* Preserve original font properties when modal is open */
    font-family: 'Istok Web', Arial, sans-serif !important;
    font-size: inherit !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

/* Ensure all page content maintains original styling when modal is open */
body.modal-open * {
    font-family: inherit !important;
}

/* Specifically protect headings */
body.modal-open h1, 
body.modal-open h2, 
body.modal-open h3, 
body.modal-open h4, 
body.modal-open h5, 
body.modal-open h6 {
    font-family: 'Lora', Georgia, serif !important;
}

/* Protect paragraph and text elements */
body.modal-open p, 
body.modal-open span, 
body.modal-open div:not(.modal *), 
body.modal-open input:not(.modal *), 
body.modal-open textarea:not(.modal *), 
body.modal-open button:not(.modal *) {
    font-family: 'Istok Web', Arial, sans-serif !important;
}

/* Isolate modal content from page styles */
#PopUpContactModal {
    font-family: 'Istok Web', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
    /* Create a new stacking context */
    isolation: isolate;
}

/* Prevent modal backdrop from affecting page layout */
.modal-backdrop {
    /* Ensure backdrop doesn't interfere with page content */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Additional protection for the EDI section */
.edi-made-easy-section,
.edi-content-container,
.edi-features-grid,
.edi-feature-card {
    /* Lock in the font properties */
    font-family: 'Istok Web', Arial, sans-serif !important;
    /* Prevent style inheritance from modal */
    isolation: isolate;
    /* Create independent formatting context */
    contain: layout style;
}

.edi-main-heading {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
}

.edi-feature-title {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
}

/* Hide elements */
#mainslider { display: none; }
#logo { display: none; }
#serviceArea { display: none; }

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
    }

    .section-container {
        margin: 1rem;
    }

    /* Fix BMW EDI text overlay on small screens */
    .bmw-image .absolute {
        font-size: 24px !important;
        padding: 8px 16px !important;
        top: 8px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        max-width: 200px !important;
        text-align: center !important;
        word-wrap: break-word !important;
    }

    .bmw-banner:hover {
        transform: none;
    }

    .edi-main-heading {
        font-size: 2rem;
    }

    .edi-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Medium devices (tablets) - improve image sizing */
@media (min-width: 769px) and (max-width: 1024px) {
    .bmw-image {
        margin-top: 2rem !important;
    }
    
    .bmw-image img {
        width: 100%;
        max-width: 500px;
        height: auto;
    }

    /* Adjust BMW EDI text for tablets */
    .bmw-image .absolute {
        font-size: 36px !important;
        padding: 12px 24px !important;
    }

    .edi-main-heading {
        font-size: 2.5rem;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .bmw-image .absolute {
        font-size: 20px !important;
        padding: 6px 12px !important;
        top: 4px !important;
        max-width: 150px !important;
    }

    .edi-main-heading {
        font-size: 1.8rem;
    }

    .edi-intro-text {
        font-size: 1rem;
    }
}




#header-container {
    /* These are the key properties for the sticky effect */
    position: sticky;
    top: 0;
    z-index: 1000; 

    /* This is important to prevent content from 
       scrolling *through* a transparent header */
    background-color: #ffffff; 
}
        .grecaptcha-badge {
            bottom: 200px !important; /* moves badge 80px above bottom */
            right: 15px !important; /* keep it at the right */
            z-index: 1000 !important; /* make sure it stays on top */
            opacity: 0.2 !important;
            transition: opacity 0.3s ease;
			display: none;
        }

            .grecaptcha-badge:hover {
                opacity: 1 !important;
            }

        /* Custom Header & Footer (infc-) */
        /* Top bar */
        .infc-topbar {
            background-color: #00386b;
        }

            .infc-topbar .topbar-inner {
                min-height: 52px;
            }

            .infc-topbar a {
                color: #ffffff;
            }

                .infc-topbar a:hover {
                    color: #e6f0fa;
                    text-decoration: none;
                }

        .infc-sep {
            color: rgba(255,255,255,.65);
            margin: 0 8px;
        }

        .infc-country span {
            color: #ffffff;
        }

        .infc-country select {
            background: #ffffff;
            color: #1f2937;
            border-radius: 6px;
            padding: 0 10px;
            height: 24px;
            line-height: 30px;
            border: 1px solid rgba(0,0,0,.08);
            width: 120px;
            font-size: 12px;
        }

        /* Main header */
        .infc-mainheader {
            border-bottom: 1px solid #e5e7eb;
        }
        /* Shift quick links left by adding right padding on large screens so it aligns near the top nav start */
        @media (min-width: 1024px) {
            .infc-mainheader .infc-quick {
                padding-right: 1rem;
            }
            /* adjust as needed */
        }

        .infc-mainheader .infc-quick a {
            color: #393a3b;
            font-weight: 500;
            font-size: 15px;
        }

            .infc-mainheader .infc-quick a:hover {
                color: #00386b;
            }

        @media (max-width: 640px) {
            .infc-mainheader .infc-quick a {
                font-size: 16px;
            }
        }

        /* Footer */
        .infc-footer-dark {
            background-color: #3f3f46;
        }

        .infc-legal {
            background-color: #1f2937;
            color: #ffffff;
        }

            .infc-legal a {
                color: #ffffff;
            }

        /* Enhanced Form Styling - More Specific Selectors */
        input[type="text"].form-input,
        input[type="email"].form-input,
        textarea.form-input,
        #contact-form input[type="text"],
        #contact-form input[type="email"],
        #contact-form textarea,
        #modal-contact-form input[type="text"],
        #modal-contact-form input[type="email"],
        #modal-contact-form textarea {
            width: 100% !important;
            padding: 12px 16px !important;
            border: 2px solid #e5e7eb !important;
            border-radius: 8px !important;
            font-size: 14px !important;
            transition: all 0.3s ease !important;
            background-color: #ffffff !important;
            box-sizing: border-box !important;
        }

            input[type="text"].form-input:focus,
            input[type="email"].form-input:focus,
            textarea.form-input:focus,
            #contact-form input[type="text"]:focus,
            #contact-form input[type="email"]:focus,
            #contact-form textarea:focus,
            #modal-contact-form input[type="text"]:focus,
            #modal-contact-form input[type="email"]:focus,
            #modal-contact-form textarea:focus {
                outline: none !important;
                border-color: #00386b !important;
                box-shadow: 0 0 0 3px rgba(0, 56, 107, 0.1) !important;
                transform: translateY(-1px) !important;
            }

        /* Modal styles */
        .modal-header {
            background-color: #1e4a72;
            color: white;
            padding: 1.5rem 2rem;
            text-align: center;
            position: relative;
            border-radius: 12px 12px 0 0;
        }

        .modal-body {
            padding: 2rem;
            background: #f8f9fa;
            border-radius: 0 0 12px 12px;
        }

        .modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: white;
            transition: color 0.2s ease;
        }

            .modal-close:hover {
                color: #e2e8f0;
            }

        .modal-form-group {
            margin-bottom: 1.5rem;
        }

        .modal-radio-group {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .modal-radio-options {
            display: flex;
            gap: 2rem;
        }

        .modal-radio-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 14px;
            color: #4a5568;
        }

        .modal-submit-btn {
            width: 100%;
            background-color: #e53e3e;
            color: white;
            padding: 12px;
            border: none;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

            .modal-submit-btn:hover {
                background-color: #c53030;
                transform: translateY(-1px);
                box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
            }

        /* Modal animation */
        .modal-content {
            max-width: clamp(300px, 95vw, 500px) !important;
            width: 90vw !important;
            transform: translateY(-50px) scale(0.8) rotateX(10deg) !important;
            opacity: 0 !important;
            transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
            filter: blur(5px) !important;
            animation: modalSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease !important;
            backdrop-filter: blur(0px) !important;
        }

            .modal-overlay.show {
                opacity: 1 !important;
                visibility: visible !important;
                background-color: rgba(0, 0, 0, 0.6) !important;
                backdrop-filter: blur(8px) !important;
            }

                .modal-overlay.show .modal-content {
                    transform: translateY(0) scale(1) rotateX(0deg) !important;
                    opacity: 1 !important;
                    filter: blur(0px) !important;
                }

        /* Keyframe animations for modal */
        @keyframes modalSlideIn {
            0% {
                transform: translateY(-50px) scale(0.8) rotateX(10deg);
                opacity: 0;
                filter: blur(5px);
            }

            50% {
                transform: translateY(-10px) scale(0.95) rotateX(5deg);
                opacity: 0.7;
                filter: blur(2px);
            }

            100% {
                transform: translateY(0) scale(1) rotateX(0deg);
                opacity: 1;
                filter: blur(0px);
            }
        }

        @keyframes modalSlideOut {
            0% {
                transform: translateY(0) scale(1) rotateX(0deg);
                opacity: 1;
                filter: blur(0px);
            }

            50% {
                transform: translateY(10px) scale(1.05) rotateX(-5deg);
                opacity: 0.5;
                filter: blur(2px);
            }

            100% {
                transform: translateY(50px) scale(0.8) rotateX(-10deg);
                opacity: 0;
                filter: blur(5px);
            }
        }

        /* Modal closing animation */
        .modal-overlay.closing .modal-content {
            animation: modalSlideOut 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards !important;
        }

        /* Button themes and ripple */
        #btnSubmit {
            background: linear-gradient(135deg, #ee2f5d, #d91e54) !important;
        }

            #btnSubmit:hover {
                filter: brightness(1.05) !important;
            }

        a.btn-enhanced[href^="tel:"] {
            background: linear-gradient(135deg, #00386b, #002a4d) !important;
        }

            a.btn-enhanced[href^="tel:"]:hover {
                filter: brightness(1.05) !important;
            }

        /* Additional form styles */
        #contact-form .force-ux,
        #modal-contact-form .force-ux {
            -webkit-appearance: none !important;
            appearance: none !important;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
            border: 2px solid #e2e8f0 !important;
            border-radius: 12px !important;
            background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
            position: relative !important;
            overflow: hidden !important;
            will-change: transform, box-shadow, border-color !important;
        }

            #contact-form .force-ux:hover,
            #modal-contact-form .force-ux:hover {
                border-color: #00386b !important;
                background: linear-gradient(145deg, #ffffff, #f0f8ff) !important;
                box-shadow: 0 8px 25px rgba(0, 56, 107, 0.12), 0 0 0 1px rgba(0, 56, 107, 0.1) !important;
                transform: translateY(-2px) !important;
            }

            #contact-form .force-ux:focus,
            #modal-contact-form .force-ux:focus {
                border-color: #00386b !important;
                background: linear-gradient(145deg, #ffffff, #f0f8ff) !important;
                box-shadow: 0 12px 35px rgba(0, 56, 107, 0.15), 0 0 0 3px rgba(0, 56, 107, 0.2) !important;
                transform: translateY(-1px) !important;
                outline: none !important;
            }

        /* Loading placeholder styles */
        .loading-placeholder {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
            min-height: 100px;
            border-radius: 8px;
            margin: 10px 0;
        }

        .py-16 {
            padding-top: 2rem !important;
            padding-bottom: 2rem !important;
        }

        .py-20 {
            padding-top: 2rem !important;
            padding-bottom: 2rem !important;
        }

        @keyframes loading {
            0% {
                background-position: 200% 0;
            }

            100% {
                background-position: -200% 0;
            }
        }
		
		/* 1) Constrain the BMW EDI badge on small devices (e.g. iPhone 11) */
        @media (max-width: 420px) {
            /* ensure image container is positioned for absolute children */
            .bmw-image .relative, .bmw-image .overflow-hidden, .bmw-image .group {
                position: relative;
            }
            /* Instead of moving the badge, reduce the bottom gradient overlay
               that can create a large translucent band overlapping the badge.
               Target the overlay div (classes: bg-gradient-to-t from-black/50 to-transparent h-32)
               and make it shorter and less opaque on small screens. */
            /* Target the bottom gradient overlay by its simpler pattern to avoid fragile class escaping */
            .bmw-image .absolute.bottom-0.h-32 {
                max-height: 48px !important; /* crop overlay height further so it doesn't create a large translucent band */
                height: 48px !important;
                background: linear-gradient(to top, rgba(0,0,0,0.18), transparent) !important;
                bottom: 0 !important;
            }
        }

        /* 2) Prevent hand cursor on the outer 3-column wrapper; only inner actionable elements show pointer */
        .grid.md\:grid-cols-3, .section-container, .container .grid {
            cursor: default !important;
        }

            /* allow pointer for actual interactive controls inside the columns */
            .section-container .solution-card, .section-container a, .section-container button, .section-container .solution-card * {
                cursor: pointer;
            }

        /* 3) Center "GET A FREE QUOTE" button on small screens */
        @media (max-width: 480px) {
            a.btn-primary {
                display: block !important;
                margin-left: auto !important;
                margin-right: auto !important;
                text-align: center !important;
                width: auto !important;
                max-width: 280px !important; /* crop width on narrow screens */
                padding-left: 10px !important; /* reduce horizontal padding */
                padding-right: 10px !important;
            }

            /* if inside a flex container, ensure wrapper centers its children */
            .hero-content {
                display: block !important;
            }

                .hero-content .btn-primary {
                    margin-top: .8rem !important;
                }
        }

        /* 4) Make "EDI For BMW, Made Easy" heading smaller on mobile devices only */
        @media (max-width: 768px) {
            .edi-main-heading {
                font-size: 1.75rem !important; /* Smaller font size for mobile */
                line-height: 1.3 !important;
            }
        }

        @media (max-width: 480px) {
            .edi-main-heading {
                font-size: 1.5rem !important; /* Even smaller for very small screens */
            }
        }


        .bmw-image {
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

/* 1️⃣ Remove all hover, animation, and scaling effects */
.bmw-image .group,
.bmw-image .group *,
.bmw-image .group:hover,
.bmw-image .group:hover * {
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
}

/* Prevent parent container scaling or shadow changes */
.bmw-image .relative,
.bmw-image .overflow-hidden {
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
}

/* 2️⃣ Set a taller, fixed image height */
@media (min-width: 768px) {
    .bmw-image .mainImage {
        width: 100% !important;
        height: 425px !important; 
        object-fit: cover !important;
        display: block !important;
    }
}

/* Apply a smaller 275px height ONLY to mobile (screens smaller than 768px) */
@media (max-width: 767px) {
    .bmw-image .mainImage {
        width: 100% !important;
        height: 200px !important; /* <-- This is the new mobile height */
        object-fit: cover !important;
        display: block !important;
    }
}

/* Ensure container accommodates the image height cleanly */
.bmw-image .relative,
.bmw-image .overflow-hidden {
    height: auto !important;
    /*min-height: 500px !important;*/
}

/* 3️⃣ Reposition the overlay badge ("3M EDI") to be centered or slightly lower */
.bmw-image .absolute.top-6.left-1\/2 {
    top: 40% !important; /* Moves badge down; adjust 35–45% as desired */
    transform: translate(-50%, -50%) !important; /* Centers horizontally & vertically */
}

/* Optional: tighten the blurred blue background behind the badge */
.bmw-image .absolute.top-6.left-1\/2 .absolute.inset-0.rounded-xl.blur-lg {
    opacity: 0.7 !important;
    scale: 0.9 !important;
}


