/* Reset default styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Body with no padding-top to align header at the very top */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 1rem;
    background: #F5F5F5; /* Light Gray */
    color: #000000; /* Black */
    margin: 0;
    padding: 0;
}

/* Error message styling */
.error-message {
    background: #FFEBEE; /* Light red for errors */
    color: #721C24;
    padding: 1rem;
    border: 2px solid #EF9A9A;
    border-radius: 5px;
    margin: 1rem auto 0 auto;
    max-width: 90vw;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    position: relative;
    z-index: 1100; /* Above header */
}

/* No data message styling */
.no-data {
    font-size: 0.875rem;
    color: #4A4A4A; /* Medium Gray */
    margin-top: 0.65625rem;
}

/* Page-specific header content (below navigation) */
header:not(.bg-teal-600) {
    background: #156B1A; /* Grass Green */
    color: #FFFFFF; /* White */
    text-align: center;
    padding: 1.5rem 0.75rem;
    margin: 0; /* Ensure no top margin */
    position: relative;
    z-index: 999; /* Below error message */
}

header:not(.bg-teal-600) h1 {
    font-size: 2.625rem;
    margin: 0; /* Prevent default browser margins */
}

header:not(.bg-teal-600) p {
    font-size: 1.44375rem;
    margin: 0; /* Prevent default browser margins */
}

/* Main content */
main {
    max-width: 90vw;
    margin: 0 auto;
    padding: 1.125rem;
}

/* Hero section */
.hero img {
    max-width: 100%;
    height: auto;
    display: block;
    vertical-align: middle; /* Prevent baseline gaps */
}

.hero p {
    font-size: 1.44375rem;
    margin: 0.75rem 0;
    color: #000000; /* Black */
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: #B8860B; /* Grass Brown */
    color: #FFFFFF; /* White */
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.44375rem;
    margin: 0.65625rem 0;
    transition: background 0.3s ease;
    min-height: 48px;
}

.cta-button:hover {
    background: #4A3529; /* Darker Brown */
}

/* Sections */
.benefits, .booking, .testimonials, .upsell, .plans, .signup, .service-area, .thank-you, .zip-result, .booking-full, .review-form, .free-cleanups, .signups, .reviews {
    margin: 2.625rem 0;
}

.benefits h2, .booking h2, .testimonials h2, .upsell h2, .plans h2, .signup h2, .service-area h2, .thank-you h2, .zip-result h2, .booking-full h2, .review-form h2, .free-cleanups h2, .signups h2, .reviews h2 {
    font-size: 2.3625rem;
    color: #156B1A; /* Grass Green */
}

/* Admin table styling */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.3125rem;
    background: #FFFFFF; /* White */
    border: 1px solid #D1D5DB; /* Light Gray */
}

.admin-table th, .admin-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #D1D5DB; /* Light Gray */
}

.admin-table th {
    background: #156B1A; /* Grass Green */
    color: #FFFFFF; /* White */
    font-size: 1.18125rem;
}

.admin-table td {
    font-size: 1.125rem;
    color: #000000; /* Black */
}

.admin-table tr:nth-child(even) {
    background: #F9FAFB; /* Very Light Gray */
}

/* Plans cards */
.plans {
    display: flex;
    flex-direction: column;
    gap: 1.3125rem;
}

.plan-card {
    border: 1px solid #D1D5DB; /* Light Gray */
    padding: 1.3125rem;
    border-radius: 5px;
    text-align: center;
    background: #FFFFFF; /* White */
}

.plan-card h3 {
    font-size: 1.96875rem;
    margin-bottom: 0.65625rem;
    color: #156B1A; /* Grass Green */
}

.plan-card p {
    font-size: 1.3125rem;
    margin: 0.328125rem 0;
    color: #000000; /* Black */
}

/* Yard Size Note */
.yard-note {
    font-size: 1.18125rem;
    color: #6B7280; /* Medium Gray */
    margin-top: 1.3125rem;
}

.yard-note + ul {
    font-size: 1.18125rem;
    color: #6B7280; /* Medium Gray */
    margin-top: 0.65625rem;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 0.65625rem;
}

form label {
    font-size: 1.3125rem;
    margin-top: 0.65625rem;
    color: #000000; /* Black */
}

form input, form select, form textarea {
    padding: 1rem;
    font-size: 1.2rem;
    min-height: 48px;
    margin-bottom: 0.75rem;
    border: 1px solid #D1D5DB; /* Light Gray */
    border-radius: 4px;
    width: 100%;
    color: #000000; /* Black */
}

form button {
    background: #5C4033; /* Dark Brown */
    color: #FFFFFF; /* White */
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1.44375rem;
    cursor: pointer;
    min-height: 48px;
}

form button:hover {
    background: #4A3529; /* Darker Brown */
}

/* Footer */
footer {
    background: #156B1A; /* Grass Green */
    color: #FFFFFF; /* White */
    text-align: center;
    padding: 1.3125rem;
    font-size: 1.18125rem;
}

footer a {
    color: #ffffff; /* White */
    text-decoration: none;
}

footer a:hover {
    color: #4A3529; /* Darker Brown */
}

/* Responsive Google Maps iframe */
iframe {
    width: 100%;
    height: 393.75px;
    border: 0;
}

/* Booking full message */
.booking-full p {
    font-size: 1.44375rem;
    margin: 1.3125rem 0;
    text-align: center;
    color: #000000; /* Black */
}

.booking-full .cta-button {
    display: block;
    margin: 1.3125rem auto;
    max-width: 262.5px;
}

/* Media Queries */
@media (min-width: 768px) {
    .plans {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .plan-card {
        width: 48%;
    }
}

@media (max-width: 768px) {
    header:not(.bg-teal-600) {
        margin: 0; /* Remove top margin for mobile */
        padding: 1rem 0.75rem; /* Slightly reduce padding */
    }
    .error-message {
        font-size: 1.1rem;
        padding: 0.75rem;
        margin: 0.75rem 0.5rem 0 0.5rem;
        line-height: 1.5;
    }
    header:not(.bg-teal-600) h1 {
        font-size: 1.96875rem;
    }
    header:not(.bg-teal-600) p {
        font-size: 1.125rem;
    }
    main {
        padding: 1rem;
    }
    .benefits h2, .booking h2, .testimonials h2, .upsell h2, .plans h2, .signup h2, .service-area h2, .thank-you h2, .zip-result h2, .booking-full h2, .review-form h2, .free-cleanups h2, .signups h2, .reviews h2 {
        font-size: 1.5rem;
    }
    .cta-button {
        padding: 1rem 1.5rem;
        font-size: 1.125rem;
    }
    .booking-full p {
        font-size: 1.125rem;
    }
    .booking-full .cta-button {
        max-width: 236.25px;
    }
    .plan-card h3 {
        font-size: 1.70625rem;
    }
    .plan-card p {
        font-size: 1.18125rem;
    }
    .admin-table th, .admin-table td {
        font-size: 1rem;
        padding: 0.5rem;
    }
    footer {
        position: sticky;
        bottom: 0;
        background: #156B1A; /* Grass Green */
        z-index: 1000;
        padding: 0.75rem;
    }
    footer p {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
    }
    footer a {
        font-size: 1rem;
        padding: 0.5rem;
    }
    .hero .cta-button {
        display: block;
        margin: 1rem auto;
        max-width: 80%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header:not(.bg-teal-600) {
        margin: 0; /* Remove top margin for mobile */
        padding: 1rem 0.75rem; /* Slightly reduce padding */
    }
    .error-message {
        font-size: 1rem;
        padding: 0.5rem;
        margin: 0.5rem 0.5rem 0 0.5rem;
        line-height: 1.5;
    }
    header:not(.bg-teal-600) h1 {
        font-size: 1.75rem;
    }
    header:not(.bg-teal-600) p {
        font-size: 1.125rem;
    }
    .benefits h2, .booking h2, .testimonials h2, .upsell h2, .plans h2, .signup h2, .service-area h2, .thank-you h2, .zip-result h2, .booking-full h2, .review-form h2, .free-cleanups h2, .signups h2, .reviews h2 {
        font-size: 1.5rem;
    }
    form input, form select, form button {
        font-size: 1.2rem;
        padding: 1rem;
        min-height: 48px;
    }
    .cta-button {
        font-size: 1.125rem;
        padding: 1rem 1.5rem;
        min-height: 48px;
    }
    .booking-full p {
        font-size: 1.125rem;
    }
    .booking-full .cta-button {
        max-width: 196.875px;
        padding: 1rem 1.5rem;
    }
    .admin-table th, .admin-table td {
        font-size: 0.875rem;
        padding: 0.5rem;
    }
    iframe {
        height: 328.125px;
    }
}
