/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

:root {
    --primary-black: #1a1a1a;
    --primary-yellow: #ffd700;
    --pure-white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #666666;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --max-width: 1200px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--primary-black);
    background-color: var(--pure-white);
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Extra small screens - reduce padding and optimize layout */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Reduce hero padding on small screens */
    .hero {
        padding: 40px 0 30px;
    }

    /* Logo responsive sizing for small screens */
    .hero-logo {
        margin-bottom: 1.5rem;
    }

    .hero-logo img {
        max-width: 90%;
        max-height: 60px;
    }

    /* Smaller font sizes for very small screens */
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    /* Reduce gap between hero elements */
    .hero-content {
        gap: 1.5rem;
        margin: 1.5rem 0;
    }

    /* Stack buttons vertically with less spacing */
    .hero-cta {
        gap: 0.8rem;
        margin-top: 1.5rem;
    }

    /* Make buttons full width on very small screens */
    .cta-button {
        width: 100%;
        max-width: 280px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    /* Reduce image size on very small screens */
    .tote-main {
        max-width: 280px;
    }

    /* Benefits section optimizations */
    .benefits {
        padding: 40px 0;
    }

    /* About totes section optimizations */
    .about-totes {
        padding: 40px 0;
    }

    /* Disable parallax on mobile for better performance */
    .benefits::before {
        background-attachment: scroll;
    }

    .specs-grid {
        gap: 1rem;
    }

    .spec-item h4 {
        font-size: 1rem;
    }

    .benefit-item {
        padding: 1.5rem;
    }

    .benefit-item h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .benefit-item p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .benefit-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    /* General typography adjustments */
    h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 16px 32px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.cta-button.primary {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    box-shadow: var(--shadow);
}

.cta-button.primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--primary-black);
    border: 2px solid var(--primary-black);
}

.cta-button.secondary:hover {
    background-color: var(--primary-black);
    color: var(--pure-white);
}

/* Fixed CTA for Mobile */
.fixed-cta {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    display: block;
}

.fixed-cta .cta-button {
    width: 100%;
    font-size: 1.2rem;
    padding: 18px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--pure-white) 100%);
    padding: 60px 0 40px;
    text-align: center;
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo img {
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 100px;
}

.hero-title {
    color: var(--primary-black);
    margin-bottom: 1rem;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

.hero-text {
    text-align: center;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tote-main {
    max-width:500px;
}

.tote-main img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

/* Benefits Section */
.benefits {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
    background-color: var(--light-gray);
}

.benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../DTFW-SKYLINE.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.4;
    z-index: 1;
}

.benefits > * {
    position: relative;
    z-index: 2;
}

/* About Our Totes Section */
.about-totes {
    padding: 60px 0;
    background-color: var(--pure-white);
}

.totes-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: center;
}

.tote-detail {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 0 auto;
    display: block;
}

.totes-specs h3 {
    color: var(--primary-black);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.totes-specs p {
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.spec-item h4 {
    color: var(--primary-black);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--accent-yellow);
    padding-bottom: 0.3rem;
    display: inline-block;
}

.spec-item ul {
    list-style: none;
    padding: 0;
}

.spec-item li {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.spec-item li:before {
    content: "✓";
    color: var(--accent-yellow);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--pure-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-item h3 {
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.benefit-item p {
    color: var(--dark-gray);
}

/* Pricing Section */
.pricing {
    padding: 60px 0;
    background-color: var(--pure-white);
}

/* Rental Period Toggle */
.rental-period-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0.5rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.toggle-label {
    flex: 1;
    text-align: center;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: calc(var(--border-radius) - 2px);
    transition: all 0.3s ease;
    font-weight: 500;
}

.toggle-label input[type="radio"] {
    display: none;
}

.toggle-label input[type="radio"]:checked + span {
    background-color: var(--primary-yellow);
    color: var(--dark-gray);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-label span {
    display: block;
    padding: 0.5rem;
    border-radius: calc(var(--border-radius) - 2px);
    transition: all 0.3s ease;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    background-color: var(--pure-white);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--primary-yellow);
    background-color: #fffef0;
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-black);
    margin: 1rem 0;
}

.features {
    list-style: none;
    margin: 2rem 0;
}

.features li {
    padding: 0.5rem 0;
    color: var(--dark-gray);
}

.features li:before {
    content: "✓ ";
    color: var(--primary-yellow);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* How It Works Section */
.how-it-works {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background-color: var(--pure-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    border-radius: 50%;
    line-height: 60px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step h3 {
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.step p {
    color: var(--dark-gray);
}

/* Lead Form Section */
.lead-form {
    padding: 60px 0;
    background-color: var(--pure-white);
}

.lead-form h2 {
    color: var(--primary-black);
}

.lead-form p {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.booking-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-black);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Address field styling */
.form-group input[name="deliveryAddress"],
.form-group input[name="pickupAddress"] {
    font-size: 1rem;
    padding: 14px 16px;
}

.form-group input[name="deliveryAddress"]:focus,
.form-group input[name="pickupAddress"]:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* Form Loading State */
.booking-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

.booking-form.loading button {
    background-color: var(--dark-gray);
    cursor: not-allowed;
}

/* Form Field Error States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.form-group .error-text {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Success and Error Messages */
.success-message,
.error-message {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Rate Limiting Warning */
.rate-limit-warning {
    background-color: #ffc107;
    color: #212529;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Honeypot field - hidden from users */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--pure-white);
    border-top: 3px solid var(--primary-yellow);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.consent-text h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-black);
    font-size: 1.2rem;
}

.consent-text p {
    margin: 0;
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

.consent-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.consent-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.consent-btn.primary {
    background: var(--primary-yellow);
    color: var(--primary-black);
}

.consent-btn.primary:hover {
    background: var(--accent-yellow-dark);
}

.consent-btn.secondary {
    background: transparent;
    color: var(--primary-black);
    border: 2px solid var(--primary-black);
}

.consent-btn.secondary:hover {
    background: var(--primary-black);
    color: var(--pure-white);
}

.consent-btn.tertiary {
    background: transparent;
    color: var(--dark-gray);
    border: 1px solid var(--dark-gray);
}

.consent-btn.tertiary:hover {
    background: var(--dark-gray);
    color: var(--pure-white);
}

/* Cookie Preferences Panel */
.preferences-panel {
    max-width: 1200px;
    margin: 0 auto;
}

.preferences-panel h4 {
    margin: 0 0 1.5rem 0;
    color: var(--primary-black);
    font-size: 1.1rem;
}

.preference-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 4px;
}

.preference-item label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.preference-item input[type="checkbox"] {
    margin-top: 0.2rem;
}

.preference-item span {
    font-weight: 600;
    color: var(--primary-black);
}

.preference-item small {
    display: block;
    color: var(--dark-gray);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.preference-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

/* Privacy Links */
.privacy-links {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.privacy-links a {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 0.8rem;
}

.privacy-links a:hover {
    color: var(--primary-yellow);
    text-decoration: underline;
}

/* Mobile responsive for consent banner */
@media (max-width: 768px) {
    .consent-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .consent-buttons {
        flex-direction: column;
        width: 100%;
    }

    .consent-btn {
        width: 100%;
    }

    .preference-buttons {
        flex-direction: column;
    }
}

/* Trust Builders */
.trust-builders {
    padding: 40px 0;
    background-color: var(--light-gray);
}

.trust-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background-color: var(--pure-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.trust-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.trust-item span {
    font-weight: 600;
    color: var(--primary-black);
}

/* FAQ Section */
.faq {
    padding: 60px 0;
    background-color: var(--pure-white);
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid #e1e5e9;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background-color: var(--light-gray);
    margin: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-answer {
    padding: 1.5rem;
    background-color: var(--pure-white);
}

.faq-answer p {
    margin: 0;
    color: var(--dark-gray);
}

/* Footer */
.footer {
    background-color: var(--primary-black);
    color: var(--pure-white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
}

/* Contact link styling */
.phone-link,
.email-link {
    color: var(--pure-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-link:hover,
.email-link:hover {
    color: var(--primary-yellow);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--pure-white);
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: var(--dark-gray);
}

/* Responsive Design */
@media (min-width: 600px) and (max-width: 767px) {
    /* Medium screens - 2 column pricing */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
        margin: 2rem auto 0;
    }

    /* Stack the last two cards below on medium screens */
    .pricing-card:nth-child(5),
    .pricing-card:nth-child(6) {
        grid-column: 1 / -1;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Logo sizing for medium screens */
    .hero-logo img {
        max-height: 80px;
    }
}

@media (min-width: 768px) {
    /* Hide fixed CTA on larger screens */
    .fixed-cta {
        display: none;
    }

    /* Typography adjustments */
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    /* Hero section */
    .hero {
        text-align: center;
    }

    /* Enable parallax on desktop */
    .benefits::before {
        background-attachment: fixed;
    }

    .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 4rem;
    }

    .hero-text {
        flex: 1;
        text-align: center;
        max-width: 500px;
    }

    .hero-visual {
        flex: 1;
        max-width: 400px;
    }

    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }

    .hero-subtitle {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    /* Benefits grid */
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* About totes layout */
    .totes-info {
        grid-template-columns: 1fr 1.5fr;
        gap: 3rem;
    }

    .specs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    /* Pricing grid */
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 2rem auto 0;
    }

    /* How it works */
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Form layout */
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Trust builders */
    .trust-items {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    /* Container padding */
    .container {
        padding: 0 40px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Larger spacing */
    .hero {
        padding: 80px 0 60px;
    }

    .benefits,
    .pricing,
    .how-it-works,
    .lead-form,
    .faq {
        padding: 80px 0;
    }
}

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

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Form validation */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #dc3545;
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #28a745;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
