/* style.css */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Charles Wright';
    src: url('fonts/CharlesWright-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Wingdings 3';
    src: url('fonts/Wingdings 3.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: transparent;
}

.hero {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 600px;
}

.hero-section {
    width: 100%;
    height: 600px !important;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section svg {
    width: 100%;
    height: 600px;
    display: block;
    /* preserveAspectRatio: none; */
}

.below-hero {
    text-align: center;
    padding: 40px 20px 0px;
    background-color: transparent;
}

.title-container {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping to ensure they stay on the same line */
    justify-content: center; /* Center the items horizontally */
    align-items: baseline; /* Align text baselines for consistent vertical positioning */
    gap: 10px; /* Space between "Reliable" and "Dependable" */
}

.below-hero h3 {
    font-family: 'Ancizar Serif', serif;
    font-weight: 700;
    font-size: 58px;
    line-height: 1.2;
    color: #0f172a;
    margin: 0;
    display: inline; /* Ensure h3 elements behave as inline elements */
    margin-top: 80px;
}

.below-hero h3.italic {
    font-style: italic;
}

.below-hero h4 {
    font-family: 'League Spartan', sans-serif;
    font-weight: 200;
    font-size: 30px;
    line-height: 1.5;
    color: #0f172a;
    margin-top: 8px;
}

.floating-image {
    position: absolute;
    right: -200px;
    top: 50%;
    transform: translateY(-55%);
    height: 440px;
    width: auto;
    z-index: 10;
}

.floating-image-desktop {
    display: block;
}

.floating-image-tablet {
    display: none;
}

.make-logo {
    max-width: 130px;
    max-height:130px;
    margin-bottom: 28px;
    display: none;
}
.make-logo.visible {
    display: block; /* Show when a valid make is present */
    }

.content-section {
    position: absolute;
    left: 20px;
    top: 48%;
    transform: translateY(-50%);
    z-index: 10;
    width: 600px;
    padding: 20px;
    background:  transparent;
    border-radius: 8px;
}

.content-section h1 {
    font-family: 'Ancizar Serif', serif;
    font-weight: 600;
    font-size: 70px;
    line-height: 70px;
    margin-bottom: 20px;
    color: #fdfefe;
    max-width: 100%; /* Prevent overflow */
    overflow-wrap: break-word; /* Handle long words */
}

.content-section h2 {
    font-family: 'League Spartan', sans-serif;
    font-weight: 300;
    font-size: 30px;
    line-height: 36px;
    margin-bottom: 44px;
    color: #E6F0FD;
    max-width: 100%;
    overflow-wrap: break-word;
}
.content-section h2 a {
    color: #fff; /* Match the input background color for visibility */
    text-decoration: underline;
    cursor: pointer;
    font-size: 25px;
}

.content-section h2 a:hover {
    color: #00DEB1; /* Slightly lighter shade on hover */
}

.content-section .form-container {
    display: flex;
    align-items: baseline; /* Align based on text baseline */
    gap: 10px; /* Consistent spacing */
}

.content-section input {
    width: 220px;
    height: 60px; /* Fixed height */
    padding: 0; /* Remove padding to control height precisely */
    font-size: 28px;
    line-height: 60px; /* Match height for vertical centering */
    font-family: 'Charles Wright', monospace;
    font-weight: 700;
    border: 2px solid #8C959B;
    border-radius: 12px;
    text-align: center;
    text-transform: uppercase;
    background: #FFE082;
    box-sizing: border-box;
    vertical-align: middle; /* Ensure consistent vertical alignment */
    padding-top: 5px;
    letter-spacing: 1.3px; /* Adds space between all letters */
}

.content-section input::placeholder {
    opacity: 0.75;
}

.content-section button {
    width: 220px;
    height: 60px;
    padding: 0;
    font-size: 24px;
    line-height: 0px;
    font-family: 'League Spartan', sans-serif;
    font-weight: 400;
    color: #fdfefe;
    background: #6b7280;
    border: 1px solid #6b7280;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    vertical-align: middle;
    margin-left: 15px;
    position: relative;
    padding-top: 3px;
}
.content-section button p {
    margin-left: -25px;
}

.content-section button span {
    display: inline-block;
    transition: transform 0.2s ease;
    margin-left: 150px;
    font-family: 'Wingdings 3', sans-serif;
    font-size: 25px;
    rotate: 90deg;
}


.content-section button:hover span {
    transform: translateY(-6px); /* Move text 6px to the right on hover */
}

.content-section .trustpilot-container {
    display: flex;
    margin-top: 30px;
    margin-left: 0;
}

.content-section .trustpilot-svg {
    height: auto;
    width: 170px;
}

.error-message {
    font-family: 'League Spartan', sans-serif;
    color: #e0e0e0; /* White for the error message */
    margin-top: 10px;
}

/* Images */
.flex-image-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 90px 20px;
    flex-wrap: wrap;
}

.flex-image {
    width: 378px;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

.image-number-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex-shrink: 0;
    max-width: 378px !important;
}

.number-circle {
    width: 52px;
    height: 52px;
    background: #011933;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-circle text {
    font-family: 'League Spartan', sans-serif;
    font-size: 20px;
    fill: #fdfefe;
    text-anchor: middle;
    dominant-baseline: central;
}

/* New Styles for Text Containers */
.text-container {
    width: 378px !important; /* Increase specificity to prevent overrides */
    min-width: 378px !important;
    max-width: 378px !important;
    border-radius: 0px;
    padding-top: 10px;
    color: #000;
    font-family: 'League Spartan', sans-serif;
    text-align: left;
    box-sizing: border-box;
    overflow-wrap: break-word; /* Ensure long words wrap */
}

.text-container h5 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #000;
    overflow-wrap: break-word; /* Ensure long words in headings wrap */
}

.text-container p {
    font-size: 22px;
    font-weight: 300;
    margin: 0;
    line-height: 1.3;
    overflow-wrap: break-word; /* Ensure long words in paragraphs wrap */
}

/* Banner Section */
.banner-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-section .banner-base {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure the base image covers the section appropriately */
}

.banner-section .banner-bubble {
    position: absolute;
    max-width: 800px;
    width: 100%;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the bubble image */
    z-index: 1; /* Ensure it appears above the base image */
}

.banner-section .branding {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #fdfefe;
    font-family: 'League Spartan', sans-serif;
    font-weight: 300;
    font-size: 18px;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 2; /* Ensure branding is above both images */
}

/* Ensure default SVG visibility */
.hero-section .desktop-svg {
    display: block;
}

.hero-section .mobile-svg {
    display: none;
}

/* Adjust hero-section for desktop */
.hero-section {
    width: 100%;
    height: 600px !important;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Ensure proper positioning context for children */
}

/* Ensure SVGs are absolutely positioned to fill the container */
.hero-section svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.dvla-results {
    visibility: collapse;
    font-size: 0px;
}

/* Tablet Styles */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .floating-image-desktop {
        display: none;
    }
    .floating-image-tablet {
        display: block;
    }
    .floating-image {
    height: 310px;
    }
.floating-image {
    position: absolute;
    transform: translateY(-45%);
    right: -00px;
}

}

/* Mobile Styles */
@media (max-width: 768px) {
    .hero-section {
        height: 600px !important; /* Keep consistent with desktop for now */
        overflow: visible; /* Allow overflow to ensure the SVG is fully visible */
    }

    .hero-section svg {
        width: 100%;
        height: 100%;
    }

    /* Ensure desktop SVG is hidden on mobile */
    .hero-section .desktop-svg {
        display: none !important;
    }

    /* Ensure mobile SVG is visible on mobile */
    .hero-section .mobile-svg {
        display: block !important;
    }

    /* Adjust content-section for mobile */
    .content-section {
        width: 100%;
        left: 0;
        padding: 10px;
        top: 30%; /* Adjusted to align with the mobile SVG */
        transform: translateY(-35%);
        text-align: center;
    }

    .content-section h1 {
        font-size: 60px;
        line-height: 60px;
        margin-top: 0px;
        margin-bottom: 20px;
    }

   .content-section h2 {
        font-size: 28px;
        line-height: 26px;
        margin-bottom: 30px;
    }

    .content-section .form-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .content-section input,
    .content-section button {
        width: 100%;
        max-width: 300px;
        height: 50px;
        font-size: 20px;
    }

    .content-section button {
        margin-left: 0;
        margin-top: 30px;
    }

    .content-section button span {
        padding-left: 150px; /* Reset padding for mobile */
    }

    .content-section .trustpilot-container {
        justify-content: center;
    }

    .make-logo {
        margin-top: 0px;
        min-width: 130px;
        padding-left: 30px;
    }
    .content-section .trustpilot-svg {
         height: auto;
         width: 170px;
         visibility: collapse;
    }
    .content-section h2 a {
        color: #C82626;
        text-decoration: underline;
        cursor: pointer;
        font-size: 22px;
        line-height: 2;
    }

    /* Hide floating image on mobile */
    .floating-image {
        display: none;
    }

    /* Adjust below-hero section */
    .below-hero h3 {
        font-size: 36px;
        margin-top: 40px;
    }

    .below-hero h4 {
        font-size: 0px;
        visibility: collapse;
    }

    .flex-image-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 40px 20px;
    }

    .flex-image,
    .text-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .text-container h5 {
        font-size: 24px;
    }

    .text-container p {
        font-size: 18px;
    }
        .nav-links {
        line-height: 2.8;
}
}




.section.info img {
    width: 10px;
    height: 10px;
    margin-top: 18px;
    margin-right: 15px;
}

.section.info2 img {
    width: 10px;
    height: 10px;
    margin-top: 18px;
    margin-left: 15px;
}


.ui-menu .ui-menu-item-wrapper {
    padding: 9px 2em 9px .8em;
}

/* style.css end */