/* Base styles */
:root {
    --primary-color: #0d47a1; /* Darker blue for better contrast */
    --primary-light: #5472d3;
    --primary-dark: #002171;
    --secondary-color: #37474f;
    --secondary-light: #62727b;
    --secondary-dark: #102027;
    --accent-color: #ff6d00; /* Orange for better contrast with blue */
    --text-light: #ffffff; /* Pure white for better contrast */
    --text-dark: #212121;
    --background-light: #ffffff;
    --background-grey: #f5f5f5;
    --error-color: #d32f2f;
    --success-color: #2e7d32;
    --spacing-xs: 0.4rem;
    --spacing-sm: 0.8rem;
    --spacing-md: 1.6rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    --spacing-xxl: 8rem;
    --border-radius: 4px;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Reset and base styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Accessibility helpers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden; /* Prevent horizontal scroll */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto; /* Makes main content expand */
}

footer {
    background-color: var(--background-light);
    color: var(--text-dark);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    position: relative;
    border-top: 1px solid #e0e0e0;
}

/* Remove dark pattern from footer */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.05;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

/* Logo Section Styling */
.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    margin-bottom: var(--spacing-sm);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    max-width: 180px;
    height: auto;
}

.footer-tagline {
    margin-bottom: var(--spacing-sm);
}

.footer-tagline p {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 0;
    font-weight: 500;
}

.footer-disclaimer {
    margin-bottom: var(--spacing-sm);
    max-width: 90%;
}

.footer-disclaimer p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: var(--text-dark);
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xs);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(13, 71, 161, 0.1);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary-light);
    color: var(--text-light);
    transform: translateY(-3px);
}

/* Footer sections styling */
.footer-about, .footer-links, .footer-contact, .footer-logo {
    padding: var(--spacing-sm);
}

.footer-about h3, .footer-links h3, .footer-contact h3 {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

.footer-about h3::after, .footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 1.5px;
}

.footer-about p {
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Links styling */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--text-dark);
    opacity: 0.8;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    padding-left: 0;
    font-weight: 400;
    display: inline-block;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -18px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before, .footer-links a:focus::before {
    opacity: 1;
    left: -12px;
}

.footer-links a:hover, .footer-links a:focus {
    color: var(--primary-color);
    opacity: 1;
    transform: translateX(5px);
}

/* Contact items styling */
.contact-item {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    color: var(--accent-color);
    flex-shrink: 0;
}

.footer-contact a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.footer-contact a:hover, .footer-contact a:focus {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Divider */
.footer-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: var(--spacing-md) 0;
    width: 100%;
}

/* Footer bottom section */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    gap: var(--spacing-sm);
}

.footer-copyright p, .footer-legal p {
    font-size: 0.85rem;
    color: var(--text-dark);
    opacity: 0.7;
}

.footer-legal p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.separator {
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.footer-legal a:hover, .footer-legal a:focus {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-logo {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }
    
    .footer-tagline {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal p {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-about, .footer-links, .footer-contact {
        text-align: center;
    }
    
    .footer-about h3::after, .footer-links h3::after, .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
    }
    
    .footer-links a::before {
        display: none;
    }
    
    .footer-links a:hover, .footer-links a:focus {
        padding-left: 0;
    }
    
    .contact-item {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-disclaimer {
        max-width: 100%;
    }
    
    .footer-logo, .footer-links, .footer-contact {
        padding-bottom: var(--spacing-md);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .footer-logo {
        padding-bottom: var(--spacing-md);
    }
    
    .footer-links, .footer-contact {
        padding-top: var(--spacing-sm);
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

p {
    margin-bottom: var(--spacing-sm);
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents extra space below images */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

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

a:focus {
    outline: none;
}

/* Provide alternate focus styles for keyboard navigation (for accessibility) */
a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Remove focus state for mouse users */
a:not(:focus-visible):focus {
    outline: none;
    box-shadow: none;
}

/* Use a common focus style for all interactive elements */
button:focus, input:focus, a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    box-sizing: border-box;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
    font-family: var(--font-family);
}

.button.primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.button.primary:hover, .button.primary:focus {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.button.secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.button.secondary:hover, .button.secondary:focus {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Adding active state for buttons */
.button:active {
    transform: translateY(1px);
    box-shadow: none;
}

section {
    padding: var(--spacing-lg) 0;
}

/* Header styles */
header {
    background-color: var(--background-light); /* White background */
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000000; /* Significantly higher than autocomplete to ensure it's always on top */
    padding: var(--spacing-sm) 0;
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    z-index: 101;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Mobile menu toggle button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 1.5px;
}

/* Main navigation */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--spacing-md);
}

nav ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a:focus::after {
    width: 100%;
}

/* Mobile navigation */
@media (max-width: 768px) {
    header .container {
        padding: var(--spacing-sm);
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--background-light);
        padding: 80px var(--spacing-md) var(--spacing-md);
        transition: right 0.3s ease;
        z-index: 100;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        gap: var(--spacing-md);
    }
    
    nav.active ul {
        right: 0;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: var(--spacing-sm) 0;
        width: 100%;
    }
    
    nav ul li a::after {
        display: none;
    }
    
    nav ul li a:hover,
    nav ul li a:focus {
        color: var(--accent-color);
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Body lock when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Hero section */
.hero {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--text-light);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 700px;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

/* Mobile adjustments for hero section */
@media (max-width: 768px) {
    .hero {
        padding: var(--spacing-lg) 0;
    }

    .hero h1 {
        font-size: 2rem;
        padding: 0 0.5rem;
        margin-bottom: 0.8rem;
    }

    .subtitle {
        font-size: 1.1rem;
        padding: 0 0.8rem;
    }
    
    .hero-explainer {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        padding: 0.7rem 1rem;
    }
    
    .hero-explainer p {
        font-size: 1rem;
    }
}

.hero-explainer {
    background-color: rgba(16, 42, 107, 0.5);
    padding: 0.8rem 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    max-width: 700px;
    width: 100%;
    text-align: center;
}

.hero-explainer p {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.4;
}

.hero-explainer strong {
    color: var(--accent-color);
    font-weight: 700;
}

/* Quick search in hero section */
.quick-search {
    margin: 0.8rem 0;
    width: 100%;
    max-width: 700px;
    display: flex;
    justify-content: center;
}

.quick-search form {
    display: flex;
    width: 100%;
}

.quick-search input, 
.search-container input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 2rem 0 0 2rem;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.quick-search .search-button,
.search-container .search-button {
    padding: 1rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 0 2rem 2rem 0;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quick-search .search-button:hover,
.search-container .search-button:hover {
    background-color: var(--accent-dark);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    justify-content: center;
    width: 100%;
    max-width: 700px;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    justify-content: center;
    width: 100%;
    max-width: 700px;
}

.cta-buttons .button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 1rem;
    min-width: 140px;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.cta-buttons .button svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.cta-buttons .button:hover svg,
.cta-buttons .button:focus svg {
    transform: translateX(3px);
}

.cta-buttons .button.primary {
    background-color: var(--accent-color);
}

.cta-buttons .button.primary:hover,
.cta-buttons .button.primary:focus {
    background-color: #e65100;
}

.cta-buttons .button.tertiary {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: var(--text-light);
}

.cta-buttons .button.tertiary:hover,
.cta-buttons .button.tertiary:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-light);
    transform: translateY(-3px);
}

/* Social proof section */
.social-proof {
    display: flex;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.6rem;
    margin-top: 0.6rem;
    justify-content: center;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 700px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Hero visual */
.hero-visual {
    position: relative;
}

/* Animation for fading in content */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1, 
.hero .subtitle, 
.hero-explainer, 
.quick-search, 
.cta-buttons, 
.social-proof {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero .subtitle {
    animation-delay: 0.2s;
}

.hero-explainer {
    animation-delay: 0.3s;
}

.quick-search {
    animation-delay: 0.4s;
}

.cta-buttons {
    animation-delay: 0.5s;
}

.social-proof {
    animation-delay: 0.6s;
}

/* Scroll indicator styles */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    text-decoration: none;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    animation: bounce 2s infinite, fadeInUp 1s 1.2s both;
    font-size: 0.85rem;
}

.scroll-indicator svg {
    animation: bounce 2s infinite;
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.scroll-indicator span {
    display: none;
}

@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 15px;
        padding: 6px 10px;
        left: 50% !important;
        transform: translateX(-50%) !important;
        text-align: center;
        width: 40px;
        right: auto;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .scroll-indicator svg {
        width: 20px;
        height: 20px;
        margin: 0 auto;
        display: block;
    }
    
    .about h2 {
        text-align: center;
        width: 100%;
    }
    
    /* Center the View Main Site button */
    .about .button {
        display: block;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        max-width: 200px;
    }
}

/* How DRS Works Section */
.how-it-works {
    padding: var(--spacing-xl) 0;
    background-color: #f8f9fa;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-dark);
    position: relative;
}

.how-it-works h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Line connecting the steps */
.steps-container:before {
    content: '';
    position: absolute;
    top: 60px;
    left: calc(12.5% + 20px);
    right: calc(12.5% + 20px);
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-light) 15%, var(--primary-light) 85%, transparent 100%);
    z-index: 1;
}

.step {
    flex: 1;
    min-width: 250px;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.step-content {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.step h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.step p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .hero {
        padding: var(--spacing-md) 0 var(--spacing-lg);
    }
    
    .hero .container {
        gap: var(--spacing-sm);
    }
    
    .hero-content {
        padding-bottom: var(--spacing-sm);
    }
    
    .hero-visual {
        margin-bottom: var(--spacing-md);
    }
    
    .ownership-comparison {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .steps-container:before {
        display: none;
    }
    
    .step {
        min-width: 220px;
        padding: 1rem;
    }
    
    .step-content {
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .button {
        width: 100%;
        justify-content: center;
    }
    
    .social-proof {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: var(--spacing-md); /* Reduced bottom margin on mobile */
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .scroll-indicator {
        bottom: 15px;
        padding: 6px 10px;
    }
    
    .scroll-indicator svg {
        width: 20px;
        height: 20px;
    }
    
    .scroll-indicator span {
        font-size: 0.7rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: var(--spacing-md);
    }
    
    .about-image img {
        max-width: 200px;
    }
    
    .steps-container {
        flex-direction: column;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .steps-container:before {
        display: none;
    }
    
    .step {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    /* Vertical line connecting steps on mobile */
    .step:not(:last-child):after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        width: 4px;
        height: 2rem;
        background-color: var(--primary-light);
        transform: translateX(-50%);
    }
}

/* About */
.about {
    background-color: var(--background-grey);
    padding: var(--spacing-xl) 0;
}

.about h2 {
    text-align: center;
}

.about-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.about-image {
    flex: 2;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 280px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.about-image img:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 12px 15px rgba(0, 0, 0, 0.12));
}

.about-text {
    flex: 3;
}

.about-text .button {
    margin-top: var(--spacing-sm);
}

/* Database */
.database {
    text-align: center;
}

.search-container {
    margin: 2rem auto;
    max-width: 600px;
}

.search-container form {
    display: flex;
    width: 100%;
}

#company-search {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family);
}

.search-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 0 var(--spacing-md);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover, .search-button:focus {
    background-color: var(--primary-dark);
}

.database-features {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.feature {
    flex: 1;
    min-width: 250px;
    background-color: var(--background-light);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature h3 {
    color: var(--primary-color);
}

.database-access {
    margin-top: var(--spacing-md);
}

/* Contribute */
.contribute {
    background-color: var(--background-grey);
    text-align: center;
}

.contribution-methods {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.contribution-method {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background-color: var(--background-light);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contribution-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contribution-method h3 {
    color: var(--primary-color);
}

.contribution-method .button {
    margin-top: var(--spacing-sm);
}

/* Print styles */
@media print {
    header, .hero, .contribute, footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    .about, .database {
        padding: 0;
    }
    
    .feature {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .database-access {
        display: none;
    }
    
    img {
        max-width: 80%;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero {
        padding: var(--spacing-md) 0 var(--spacing-lg);
    }
    
    .hero .container {
        gap: var(--spacing-sm);
    }
    
    .hero-content {
        padding-bottom: var(--spacing-sm);
    }
    
    .hero-visual {
        margin-bottom: var(--spacing-md);
    }
    
    .ownership-comparison {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .steps-container:before {
        display: none;
    }
    
    .step {
        min-width: 220px;
        padding: 1rem;
    }
    
    .step-content {
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .button {
        width: 100%;
        justify-content: center;
    }
    
    .social-proof {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: var(--spacing-md); /* Reduced bottom margin on mobile */
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .scroll-indicator {
        bottom: 15px;
        padding: 6px 10px;
    }
    
    .scroll-indicator svg {
        width: 20px;
        height: 20px;
    }
    
    .scroll-indicator span {
        font-size: 0.7rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: var(--spacing-md);
    }
    
    .about-image img {
        max-width: 200px;
    }
    
    .steps-container {
        flex-direction: column;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .steps-container:before {
        display: none;
    }
    
    .step {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    /* Vertical line connecting steps on mobile */
    .step:not(:last-child):after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        width: 4px;
        height: 2rem;
        background-color: var(--primary-light);
        transform: translateX(-50%);
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    :root {
        --spacing-xs: 4px;
        --spacing-sm: 8px;
        --spacing-md: 16px;
        --spacing-lg: 24px;
        --spacing-xl: 32px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .subtitle {
        font-size: 0.9rem;
    }
    
    .hero-explainer {
        font-size: 0.85rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .button {
        padding: 0.6rem 1rem;
    }
    
    .social-proof {
        padding: var(--spacing-sm) 0;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* Search Results */
.search-results-container {
    margin-top: var(--spacing-md);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.search-result {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.search-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.search-result h3 {
    color: var(--primary-dark);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.result-section {
    margin-bottom: var(--spacing-md);
}

.result-section h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-sm);
    border-left: 3px solid var(--accent-color);
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-sm);
}

.result-details div {
    margin-bottom: var(--spacing-sm);
    padding: 8px 12px;
    background-color: #f9f9f9;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.result-details div:hover {
    background-color: #f0f0f0;
}

.result-details strong {
    display: block;
    margin-bottom: 4px;
    color: var(--primary-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-details a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
}

.result-details a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .result-details {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .search-result {
        padding: var(--spacing-sm);
    }
    
    .result-section h4 {
        font-size: 1rem;
    }
}

/* Form elements */
// ... existing code ... 

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        white-space: normal;
        max-width: 100%;
    }
}

/* Autocomplete styles */
.autocomplete-container {
    position: absolute;
    z-index: 999900;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
    top: 100%;
    left: 0;
    right: 0;
    overflow-x: hidden;
    margin-top: 2px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Create a backdrop for the autocomplete container */
.autocomplete-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999800;
    background-color: transparent; /* Make fully transparent so there's no dimming effect */
    display: none;
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
    text-align: left;
    line-height: 1.4;
    font-size: 0.95rem;
    display: block;
    width: 100%;
    clear: both;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-dark);
    background-color: #ffffff;
    position: relative;
    z-index: 1;
}

.autocomplete-item:hover {
    background-color: rgba(84, 114, 211, 0.1);
    color: var(--text-dark);
}

.autocomplete-item strong {
    color: var(--primary-color);
    margin-right: 5px;
    font-weight: 600;
}

.autocomplete-active {
    background-color: rgba(13, 71, 161, 0.1);
    border-left: 3px solid var(--accent-color);
    padding-left: 12px;
    color: var(--text-dark);
}

.quick-search {
    margin: 0.8rem 0;
    width: 100%;
    max-width: 700px;
    position: relative;
}

.search-container {
    margin: 2rem auto;
    max-width: 600px;
    position: relative;
}

/* Fix for the hero search positioning */
#hero-search-form {
    position: relative;
    width: 100%;
    z-index: 999500; /* Lower than header, higher than backdrop */
}

/* Fix for the main search positioning */
#search-form {
    position: relative;
    width: 100%;
    z-index: 999500; /* Lower than header, higher than backdrop */
}

/* Ensure the input stays visible above autocomplete */
#search-input, #hero-search {
    position: relative;
    z-index: 1;
    background-color: #ffffff;
}

@media (max-width: 768px) {
    .autocomplete-container {
        max-height: 200px;
    }
    
    .autocomplete-item {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
} 