/* Clear Water Co. | Recommendation Wizard Styles */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #050b18;
    --bg-secondary: #0d162a;
    --accent-cyan: #00f0ff;
    --accent-teal: #00fa9a;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover-bg: rgba(255, 255, 255, 0.08);
    --glass-hover-border: rgba(0, 240, 255, 0.4);
    --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.15);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 250, 154, 0.05) 0%, transparent 40%),
        linear-gradient(135deg, #050b18 0%, #0d162a 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

/* Container */
.quiz-container {
    width: 100%;
    max-width: 680px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.quiz-container:hover {
    box-shadow: var(--shadow-glow), 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Header & Progress */
.quiz-header {
    text-align: center;
    margin-bottom: 35px;
}

.quiz-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.quiz-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 20px 0 30px 0;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Steps Wrapper */
.step-content {
    display: none;
    animation: fadeInUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.step-content.active {
    display: block;
}

.step-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
    color: var(--text-primary);
}

/* Option Cards Grid */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

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

@media (max-width: 580px) {
    .options-grid.multi-col {
        grid-template-columns: 1fr;
    }
}

.option-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-teal));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.option-card:hover {
    background: var(--glass-hover-bg);
    border-color: var(--glass-hover-border);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 240, 255, 0.05);
}

.option-card.selected {
    background: rgba(0, 240, 255, 0.04);
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.1);
}

.option-card.selected::before {
    opacity: 1;
}

.option-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.option-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.option-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 300;
}

/* Custom Checkbox for Multi-Select */
.option-checkbox {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--glass-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.option-card.selected .option-checkbox {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.option-checkbox::after {
    content: '✓';
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.option-card.selected .option-checkbox::after {
    opacity: 1;
}

/* Navigation Buttons */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    border-top: 1px solid var(--glass-border);
    padding-top: 25px;
}

.btn {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
    border: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-teal) 100%);
    color: var(--bg-primary);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4), 0 0 10px rgba(0, 250, 154, 0.2);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Results View */
.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.result-badge {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--accent-cyan);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 15px;
}

.result-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.result-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 300;
}

.spec-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 5px;
    display: inline-block;
}

.spec-badge strong {
    color: var(--accent-cyan);
}

/* Features List */
.features-container {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
}

.features-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 8px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon {
    color: var(--accent-teal);
    font-size: 1.1rem;
    margin-right: 12px;
    margin-top: 2px;
}

.feature-item strong {
    color: var(--text-primary);
    margin-right: 4px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer logo */
.quiz-footer {
    margin-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.85rem;
    font-weight: 300;
}

.quiz-footer span {
    color: var(--accent-cyan);
    font-weight: 500;
}
