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

:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --accent-color: #1a659e;
    --success-color: #06d6a0;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo h1 {
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.tagline {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Section Management */
.section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.section.active {
    display: block;
}

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

/* Form Section */
#form-section {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.4s ease;
    width: 16.67%;
}

.progress-text {
    text-align: right;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Questions */
.question {
    display: none;
    animation: slideIn 0.3s ease;
}

.question.active {
    display: block;
}

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

.question h2 {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 24px;
    font-weight: 600;
}

/* Options */
.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.option-card {
    cursor: pointer;
    position: relative;
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
    min-height: 140px;
}

.option-card:hover .option-content {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.option-card input:checked ~ .option-content {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.option-content .icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.option-content .label {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.option-content .sublabel {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 4px;
}

/* Slider */
.slider-container {
    margin: 32px 0 16px;
}

#budget-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-color);
    border-radius: 4px;
    outline: none;
}

#budget-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

#budget-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-sm);
}

.slider-value {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
}

.budget-labels {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: 40px;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

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

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--accent-color);
    background: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results Section */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 24px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.results-header h2 {
    font-size: 2rem;
    color: var(--secondary-color);
}

.persona-summary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.persona-summary h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.persona-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.persona-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Recommendations Grid */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.bike-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.bike-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.bike-card.top-match {
    border-color: var(--success-color);
    position: relative;
}

.bike-card.top-match::before {
    content: "⭐ Top Match";
    position: absolute;
    top: -12px;
    right: 16px;
    background: var(--success-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.bike-header {
    margin-bottom: 16px;
}

.bike-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.bike-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.bike-model {
    color: var(--text-light);
    font-size: 1rem;
}

.bike-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.bike-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 16px 0;
}

.financing-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
}

.bike-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.tag {
    background: var(--bg-light);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.match-reason {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(26, 101, 158, 0.1));
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-top: 16px;
    border-left: 4px solid var(--primary-color);
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px;
    margin-top: 40px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    .header {
        padding: 20px 16px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    #form-section {
        padding: 24px 20px;
    }

    .question h2 {
        font-size: 1.4rem;
    }

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

    .results-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
    }

    .form-navigation {
        flex-direction: column;
    }
}
