:root {
    --primary-color: #c00;
    --secondary-color: #ff6600;
    --secondary-hover: #e65c00;
    --text-color: #222;
    --bg-dark: #000;
    --bg-light: #f8f8f8;
    --border-color: #ccc;
    --modal-bg: #fff;
    --modal-overlay: rgba(0, 0, 0, 0.7);
    --error-color: #d32f2f;
    --success-color: #2e7d32;
}

html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text-color);
    background-color: #fff;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/IMG_8827.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -2;
    pointer-events: none;
}

header {
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.feature-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    z-index: 20;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85em;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid #333 transparent transparent transparent;
}

.feature-tooltip:hover .tooltip-text,
.feature-tooltip:focus-within .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.fl-modal-title {
    font-size: 0.95em;
    margin: 0;
    color: var(--text-color);
}

.nav-container {
    background-color: #222;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 20px;
    position: relative;
    z-index: 1;
}

.nav-links-wrapper {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    order: 1;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}

.nav-search {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    order: 2;
}

.nav-search input[type="text"] {
    padding: 6px 10px;
    width: 90px;
    border: none;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav-search input[type="text"]:focus {
    width: 180px;
    outline: none;
}

.nav-search input[type="submit"] {
    padding: 6px 12px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.nav-search input[type="submit"]:hover {
    background-color: var(--secondary-hover);
}

#nav-features {
    background-color: var(--bg-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

main {
    padding: 20px;
    max-width: 1000px;
    margin: auto;
    line-height: 1.6;
    text-align: center;
    position: relative;
    z-index: 1;
}

footer {
    background-color: var(--bg-dark);
    color: white;
    text-align: center;
    padding: 10px;
    position: relative;
    z-index: 1;
}

h1, h2, h3 {
    color: var(--text-color);
}

.highlight {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
}

.cta {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: inline-block;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    font-weight: bold;
}

.cta:hover {
    background-color: #900;
}

.cta-section {
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-overlay);
}

.modal-content {
    background: var(--modal-bg);
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

.close:hover {
    color: #000;
}

.modal-link {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.image-container {
    text-align: center;
}

.hj-parts {
    max-width: 500px;
    width: 90%;
    height: auto;
    max-height: 300px;
    display: block;
    margin: 0 auto 20px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid var(--border-color);
    padding: 8px;
    text-align: center;
}

.comparison-table thead tr {
    background-color: #f2f2f2;
}

.no-results {
    color: var(--text-color);
    font-size: 1.1em;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

.button:hover {
    background-color: var(--secondary-hover);
}

.form-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: contents;
}

.form-group label {
    text-align: right;
    padding-right: 10px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    text-align: left;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group.honeypot {
    display: none;
}

.captcha-number {
    font-weight: bold;
    color: var(--primary-color);
}

.error {
    color: var(--error-color);
    list-style: none;
    padding: 0;
    margin: 10px 0;
    text-align: center;
}

button[type="submit"] {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

button[type="submit"]:hover {
    background-color: var(--secondary-hover);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: auto;
}

.product {
    border: 1px solid var(--border-color);
    padding: 20px;
    background: #f9f9f9;
    display: flex;
    gap: 15px;
    align-items: center;
}

.product-img {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-img img {
    width: 120px;
    height: 120px;
}

.fit-guide-link {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.product form {
    margin: 10px 0;
}

.product form label {
    font-weight: bold;
}

.product form select {
    margin: 5px 0;
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.product form p {
    margin: 5px 0;
    font-weight: bold;
}

.product-img img {
    width: 200px !important;
    height: 75px !important;
}

.carousel img {
    width: 150px !important;
    height: 150px !important;
    object-fit: contain !important;
}

.uncle-mikes-img {
    width: 300px;
    height: 300px;
    transform: scale(2.25);
    max-width: none !important;
    object-fit: contain;
    margin-bottom: 10px;
}

@media (min-width: 769px) {
    .nav-links-wrapper {
        flex-grow: 1;
        justify-content: center;
    }

    .nav-links {
        gap: 20px;
        justify-content: center;
    }

    .nav-search {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        margin-top: 0;
        width: auto;
    }
}

@media (max-width: 768px) {
    .nav-links-wrapper {
        width: 100%;
    }

    .nav-links {
        gap: 10px;
        justify-content: center;
        width: 100%;
        margin-bottom: 10px;
    }

    .nav-search {
        width: 100%;
        margin-top: 10px;
        justify-content: flex-start;
    }

    .nav-search input[type="text"] {
        width: 70vw;
        max-width: 300px;
    }

    .form-container {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .form-group label {
        text-align: left;
        padding-right: 0;
    }

    .hj-parts {
        max-height: 200px;
        max-width: 90%;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product {
        flex-direction: column;
        text-align: center;
    }
}