:root {
    --primary-color: #80b837;     /* Green */
    --secondary-color: #80b837;   /* Same green for consistency */
    --accent-color: #f0f6ff;      /* Very light blue */
    --text-color: #333333;
    --light-text: #ffffff;
    --gray-bg: #f5f5f5;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 65px;
}

/* Header and Navigation */
.header {
    background: #ffffff;
    color: var(--primary-color);
    width: 100%;
}

.nav-header {
    background: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-text);
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-toggle {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-list a:not(.btn) {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    font-size: 15px;
}

.nav-list a:not(.btn):hover,
.nav-list a:not(.btn).active {
    color: var(--primary-color);
    text-decoration: none;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-list a.active::after {
    width: 100%;
}

/* Dropdown (open on hover) */
.nav-list .dropdown {
    position: relative;
}

.nav-list .dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 1001;
}

@media (min-width: 992px) {
    .nav-list .dropdown:hover .dropdown-menu {
        display: block;
    }
}

.nav-list .dropdown .dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    padding-left: 1.5rem;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
}

.nav-list .dropdown .dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 5%;
    position: relative;
    margin-top: 65px;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6));
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--light-text);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: var(--light-text);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    opacity: 0.9;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background-color: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 4px;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.btn-large:hover {
    background-color: var(--primary-color);
    opacity: 0.9;
}

/* Services Section */
.services {
    padding: 5rem 5%;
    background-color: var(--gray-bg);
}

.services-page {
    padding-top: 2rem;
    background-color: var(--light-text);
}

.service-features {
    list-style: none;
    padding: 1rem 0;
    text-align: left;
}

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Add spacing between multiple service rows */
.services .services-grid + .services-grid {
    margin-top: 30px;
}

.service-card {
    background: var(--light-text);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card .btn {
    margin-top: 1rem;
    background-color: var(--primary-color);
    color: var(--light-text);
}

.service-card .btn:hover {
    background-color: var(--secondary-color);
}

/* Features Section */
.features {
    padding: 5rem 5%;
    background-color: var(--light-text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ensure four features fit on larger screens and allow wider container on features sections */
.features .container {
    max-width: 1200px;
}

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    background-color: var(--gray-bg);
    text-align: center;
}

/* Contact Page Styles */
.contact-page {
    padding: 4rem 5%;
    background-color: var(--light-text);
}

.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-container {
    background: var(--gray-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 75, 132, 0.1);
}

.contact-info-container {
    align-self: start;
}

.contact-info-card {
    background: var(--primary-color);
    color: var(--light-text);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-info-card h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.contact-info-card .contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-card .contact-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.contact-info-card .contact-item h4 {
    margin-bottom: 0.3rem;
    color: var(--accent-color);
}

.contact-info-card .contact-item p {
    margin: 0;
    line-height: 1.4;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 5rem 5%;
    background-color: var(--gray-bg);
    text-align: center;
}

.why-choose-us h2 {
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-card {
        margin-top: 2rem;
    }

    .service-features {
        padding: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .policy-section {
        padding: 1.5rem;
    }
}

/* Quote Form Styles */
.quote-form-section {
    padding: 4rem 0;
    background-color: var(--light-text);
}

.quote-form-container {
    background: var(--gray-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
}

/* Make motorcycle layout similar to caravan form */
.quote-form-container.caravan-like {
    max-width: 900px; /* match caravan page width */
    margin-top: 100px; /* match caravan top spacing */
}

/* Make motorcycle tabbed form look like caravan cards */
.quote-form-container.caravan-like .insurance-form .tab-content {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.25rem;
}

.quote-form-container.caravan-like .insurance-form .tab-content h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.quote-form-container.caravan-like .tab-navigation {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.quote-form-container.caravan-like .tab-navigation .tab-button {
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #000;
    padding: .5rem .75rem;
    border-radius: .25rem;
    cursor: pointer;
}

.quote-form-container.caravan-like .tab-navigation .tab-button.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.quote-form-container h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.insurance-form {
    display: grid;
    gap: 1.5rem;
}

.insurance-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.insurance-form label {
    font-weight: 600;
    color: var(--primary-color);
}

.insurance-form input,
.insurance-form select {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.insurance-form input:focus,
.insurance-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 75, 132, 0.1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0.5rem 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
}

.quote-result {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--accent-color);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.quote-result h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.quote-result pre {
    background: var(--light-text);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
}

/* Quote Failure Page */
.quote-error-section {
    padding: 4rem 5%;
    background-color: var(--light-text);
}

.quote-error {
    max-width: 900px;
    margin: 0 auto;
}

.quote-error.error-box {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-left: 6px solid #dc3545; /* error accent */
}

.quote-error h3 {
    color: #dc3545;
    margin-bottom: 1rem;
}

.quote-error .error-details {
    background: #fff7f7;
    border: 1px solid #f5c2c7;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.quote-error .action-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.quote-error .btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.debug-info {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #dee2e6;
}

.debug-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.debug-info pre {
    background: var(--light-text);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .quote-form-container {
        margin: 0 1rem;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* Policy Pages Styles */
.policy-content {
    padding: 4rem 0;
    background-color: var(--light-text);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.policy-section {
    background: var(--gray-bg);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.policy-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.policy-section ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.policy-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.policy-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.contact-details {
    background: rgba(26, 75, 132, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.policy-footer {
    text-align: center;
    color: #666;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.contact h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: #232322;
    color: var(--light-text);
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary-color);
    opacity: 0.8;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
    text-decoration: none;
    color: rgb(104 119 125);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 5%;
    }

    .logo img {
        height: 45px;
    }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 100;
    }

    .hamburger {
        display: block;
        position: relative;
        width: 24px;
        height: 2px;
        background: var(--primary-color);
        transition: var(--transition);
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 2px;
        background: var(--primary-color);
        transition: var(--transition);
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        bottom: -8px;
    }

    .nav-toggle.active .hamburger {
        background: transparent;
    }

    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary-color);
        padding: 1rem;
        clip-path: circle(0% at top right);
        transition: var(--transition);
    }

    .nav-menu.active {
        clip-path: circle(150% at top right);
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu.active .nav-list a:not(.btn).active {
        color: #ffffff;
    }

    .nav-menu.active .nav-list a:not(.btn):not(.active):hover {
        color: rgb(104 119 125);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links ul {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card, .feature {
    animation: fadeIn 0.6s ease-out forwards;
}
