:root {
    --primary-blue: #2563eb;
    --secondary-blue: #3b82f6;
    --accent-blue: #1d4ed8;
    --light-blue: #dbeafe;
    --very-light-blue: #eff6ff;
    --dark-blue: #1e40af;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background: #f8fafc;
    --white: #ffffff;
    --border-light: #e5e7eb;
    --border: #d1d5db;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    line-height: 1.5;
    background: transparent;
    min-height: 100vh;
    color: var(--text-primary);
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.container {
    max-width: 42rem;
    margin: 0 auto;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: var(--spacing);
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 28rem;
    margin: 0 auto;
    line-height: 1.6;
}

.question-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.question-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 0;
    opacity: 1;
}

.question-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.75rem;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
    font-size: 0.875rem;
}

.options {
    display: grid;
    gap: 15px;
    margin-bottom: 40px;
}

.checkbox-options {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.option {
    display: flex;
    align-items: center;
    padding: var(--spacing) var(--spacing-lg);
    border: 1px solid #cccccc;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f8f8;
    position: relative;
}

/* Remove hover effects from options - only navigation buttons should have hover */

.option input[type="radio"],
.option input[type="checkbox"] {
    margin-right: var(--spacing);
    transform: scale(1.2);
    accent-color: #000000;
}

.option input[type="radio"]:checked + .option-text,
.option input[type="checkbox"]:checked + .option-text {
    font-weight: 700;
    color: #000000;
}

.option:has(input:checked) {
    border-color: #B5CD28;
    background: #f5f5f5;
}

.option-text {
    font-size: 1.1rem;
    line-height: 1.4;
    color: #444444;
    font-weight: 500;
}

.button-group {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* First question only has Next button, align it right */
#question-1 .button-group {
    justify-content: flex-end;
}

.next-btn,
.prev-btn,
.contact-btn,
.restart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing) var(--spacing-xl);
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.next-btn {
    background: #B5CD28;
    color: var(--white);
    box-shadow: var(--shadow);
    margin-left: auto;
}

.next-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.next-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.prev-btn {
    background: var(--white);
    color: #000000;
    border: 1px solid var(--border);
}

.prev-btn:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
}

.contact-btn {
    background: linear-gradient(135deg, var(--success), #16a34a);
    color: var(--white);
    box-shadow: var(--shadow);
    margin: var(--spacing-lg) auto;
    display: block;
}

.contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.restart-btn,
.back-btn {
    background: var(--white);
    color: #000000;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing) var(--spacing-xl);
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.restart-btn:hover,
.back-btn:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
}

.results-buttons {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.progress-container {
    margin-top: 37px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.progress-bar {
    height: 8px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.progress-fill {
    height: 100%;
    background: #B5CD28;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.results-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    border: 1px solid hsl(var(--border-color));
}

.results-container h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 20px;
    text-align: center;
}

.recommendations-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .recommendations-container {
        grid-template-columns: 1fr;
    }
}

.machine-recommendation {
    border: 2px solid #cccccc;
    border-radius: var(--border-radius);
    padding: 25px;
    background: white;
    transition: var(--transition);
    height: fit-content;
}

.machine-recommendation.good-match {
    border-color: #B5CD28 !important;
    background: #f8fff8 !important;
}

.machine-recommendation.closest-fit {
    border-color: #5498D2 !important;
    background: #f0f6ff !important;
}

.machine-recommendation:hover {
    box-shadow: var(--box-shadow);
}

.machine-recommendation h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.machine-image {
    width: 120px;
    height: 80px;
    border-radius: var(--border-radius);
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.reasons-list {
    list-style: none;
    padding: 0;
}

.reasons-list li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.reasons-list li::before {
    content: "✓";
    color: hsl(var(--success-color));
    font-weight: bold;
    font-size: 1.2rem;
}

.reasons-list li.limitation::before {
    content: "✗";
    color: #ff6b6b;
}

.reasons-list li.limitation {
    color: #ff6b6b;
    font-weight: 500;
}

.limitation::marker {
    content: "";
}

.no-match-message {
    text-align: center;
    padding: 40px;
    background: hsl(var(--warning-color) / 0.1);
    border: 2px solid hsl(var(--warning-color));
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.no-match-message h3 {
    color: hsl(var(--warning-color));
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-section {
    text-align: center;
    padding: 30px;
    background: hsl(var(--secondary-color));
    border-radius: var(--border-radius);
    margin: 30px 0;
}

.contact-section h3 {
    color: hsl(var(--text-primary));
    margin-bottom: 10px;
}

.manual-cleaning-note,
.under-10k-message {
    background: hsl(var(--success-color) / 0.1);
    border: 2px solid hsl(var(--success-color));
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
}

.manual-cleaning-note h3,
.under-10k-message h3 {
    color: hsl(var(--success-color));
    margin-bottom: 10px;
}

.microplastics-note {
    background: hsl(var(--warning-color) / 0.1);
    border-left: 4px solid hsl(var(--warning-color));
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.microplastics-note p {
    color: hsl(var(--text-primary));
    font-weight: 500;
    margin: 0;
}

.personalized-recommendation-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 20px 0;
    text-align: center;
}

.personalized-recommendation-section h3 {
    color: #333333;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.personalized-recommendation-section p {
    color: #666666;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.personalized-recommendation-btn {
    background: #B5CD28;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(181, 205, 40, 0.3);
}

.personalized-recommendation-btn:hover {
    background: #a3b825;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(181, 205, 40, 0.4);
}

/* Contact Form Styles */
.contact-form {
    max-width: 400px;
    margin: 0 auto 30px auto;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #B5CD28;
    box-shadow: 0 0 0 3px rgba(181, 205, 40, 0.1);
}

.form-group input:invalid {
    border-color: #ef4444;
}

/* Efficiency Note for 600XL */
.efficiency-note {
    background: hsl(var(--primary-color) / 0.1);
    border: 1px solid hsl(var(--primary-color));
    border-radius: var(--border-radius);
    padding: 10px 15px;
    margin: 10px 0;
    color: hsl(var(--primary-color));
    font-size: 0.95rem;
}

/* CTA Link Styling */
.cta-link {
    text-align: center;
    margin-top: 15px;
}

.debris-link {
    color: hsl(var(--text-primary));
    text-decoration: underline;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.debris-link:hover {
    color: hsl(var(--primary-color));
}

.form-group input:valid {
    border-color: #10b981;
}

/* CTA Section Styles */
.cta-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px auto 20px auto;
    text-align: center;
    max-width: 600px;
}

.cta-section h3 {
    color: #333333;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.4;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.cta-btn {
    padding: 15px 25px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 280px;
    text-align: center;
}

.cta-btn.primary {
    background: #B5CD28;
    color: white;
    border-color: #B5CD28;
}

.cta-btn.primary:hover {
    background: #a3b825;
    border-color: #a3b825;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(181, 205, 40, 0.4);
}

.cta-btn.secondary {
    background: white;
    color: #5498D2;
    border-color: #5498D2;
}

.cta-btn.secondary:hover {
    background: #5498D2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(84, 152, 210, 0.3);
}

@media (max-width: 768px) {
    .cta-section {
        margin: 20px 0;
        padding: 20px;
    }
    
    .cta-btn {
        min-width: 100%;
        padding: 12px 20px;
    }
}

.match-indicator {
    background: #B5CD28;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.good-match .match-indicator {
    background: #B5CD28 !important;
}

.closest-fit .match-indicator {
    background: #5498D2 !important;
}

.warning-note {
    background: hsl(var(--warning-color) / 0.1);
    border-left: 4px solid hsl(var(--warning-color));
    padding: 12px 15px;
    margin: 15px 0 0 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-size: 0.95rem;
}

.warning-note strong {
    color: hsl(var(--warning-color));
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1.1rem;
    }

    .question-card {
        padding: 25px 20px;
    }

    .question-card h2 {
        font-size: 1.5rem;
    }

    .checkbox-options {
        grid-template-columns: 1fr;
    }

    .option {
        padding: 12px 15px;
    }

    .option-text {
        font-size: 1rem;
    }

    .button-group {
        flex-direction: column;
        gap: 15px;
    }

    .next-btn,
    .prev-btn {
        width: 100%;
        margin: 0;
    }
    
    .button-group {
        flex-direction: column-reverse;
        gap: 15px;
    }
    
    .next-btn, .prev-btn {
        width: 100%;
        margin: 0;
    }

    .progress-container {
        padding: 15px;
    }

    .results-container {
        padding: 25px 20px;
    }

    .machine-recommendation {
        padding: 20px;
    }

    .machine-recommendation h3 {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .machine-image {
        width: 100%;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px 12px;
    }

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

    .header h1 {
        font-size: 1.8rem;
        margin-bottom: var(--spacing-sm);
    }

    .question-card {
        padding: var(--spacing-lg);
    }

    .question-card h2 {
        font-size: 1.2rem;
        margin-bottom: 1.75rem;
    }

    .option {
        padding: 10px 12px;
    }

    .progress-container {
        padding: 8px;
        margin-top: 8px;
    }
}
