/* Quiz Specific Styles based on Hub de Links theme */
body {
    background: #f0fdf4;
    /* Light green bg */
    font-family: 'Outfit', sans-serif;
    color: #1f2937;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.quiz-container {
    max-width: 500px;
    width: 100%;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Desktop Split Layout */
@media (min-width: 768px) {
    .quiz-container {
        max-width: 900px;
        flex-direction: row;
        height: 80vh;
        /* Fixed height for desktop app feel */
        max-height: 700px;
    }

    .quiz-sidebar {
        width: 40%;
        background: #f8fafc;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        border-right: 1px solid #e5e7eb;
    }

    .quiz-main-content {
        width: 60%;
        padding: 3rem;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    /* Custom Scrollbar for Content */
    .quiz-main-content::-webkit-scrollbar {
        width: 6px;
    }

    .quiz-main-content::-webkit-scrollbar-track {
        background: transparent;
    }

    .quiz-main-content::-webkit-scrollbar-thumb {
        background-color: #d1d5db;
        border-radius: 20px;
    }
}

/* Sidebar Styles (Mobile Base) */
.quiz-sidebar {
    padding: 2rem 1.5rem 1rem;
    text-align: center;
    background: #f9fafb;
    /* Light gray to differentiate from content */
}

.quiz-main-content {
    padding: 1.5rem;
    flex: 1;
}

/* Header replacements */
.quiz-logo {
    height: 80px;
    /* Mobile size */
    width: auto;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .quiz-logo {
        height: 140px;
        /* Desktop size */
        margin-bottom: 2rem;
    }
}

.quiz-hero {
    margin-bottom: 1rem;
}

.quiz-title {
    font-size: 1.75rem;
    /* Slightly larger */
    font-weight: 700;
    color: #111827;
    margin: 0.5rem 0 0.25rem;
    line-height: 1.2;
}

.quiz-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 999px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #00A651;
    /* Ecopower Green */
    transition: width 0.4s ease;
}

.step-counter {
    font-size: 0.85rem;
    color: #6b7280;
    text-align: right;
}

/* Steps */
.step {
    display: none;
    /* Hidden by default */
    animation: fadeIn 0.4s ease-out;
    padding-bottom: 0;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
    margin-top: 0;
}

.step-desc {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

input[type="text"],
input[type="tel"],
input[type="number"],
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

input:focus,
.form-select:focus {
    outline: none;
    border-color: #00A651;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}

/* Option Cards (Radio as Cards) */
.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.option-card {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.option-card input[type="radio"] {
    display: none;
}

.option-card i {
    font-size: 1.5rem;
    color: #9ca3af;
}

.option-card:hover {
    border-color: #00A651;
    background: #f0fdf4;
}

/* Selected State */
.option-card:has(input:checked) {
    border-color: #00A651;
    background: #ecfdf5;
}

.option-card:has(input:checked) i {
    color: #00A651;
}

/* Vertical Options */
.options-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-item,
.checkbox-item {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

.radio-item:hover,
.checkbox-item:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.radio-item:has(input:checked),
.checkbox-item:has(input:checked) {
    border-color: #00A651;
    background: #f0fdf4;
}

input[type="radio"],
input[type="checkbox"] {
    accent-color: #00A651;
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
}

/* Chips for Bill Amount */
.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.chip {
    background: #f3f4f6;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover {
    background: #e5e7eb;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
    align-items: stretch;
}

.btn {
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1.2;
}

.btn-primary {
    background: #00A651;
    color: white;
    flex: 2;
    /* Increased importance */
}

.btn-primary:hover {
    background: #008c44;
}

.btn-secondary {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
    flex: 1;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Warning Message */
.warning-msg {
    color: #d97706;
    /* Amber */
    font-size: 0.875rem;
    margin-top: 0.5rem;
    background: #fffbeb;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border-left: 4px solid #f59e0b;
}

/* Result Screen */
.result-screen {
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.result-header h2 {
    color: #00A651;
}

.result-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-item .label {
    color: #64748b;
    font-weight: 500;
}

.result-item .value {
    font-weight: 700;
    font-size: 1.125rem;
    color: #0f172a;
}

.highlight-green {
    color: #00A651 !important;
}

.viability-badge {
    background: #dcfce7;
    color: #166534 !important;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem !important;
}

.final-cta {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.1rem;
    background: #25D366;
    /* WhatsApp Green */
}

.final-cta:hover {
    background: #1ebc57;
}

.disclaimer {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 1.5rem;
    line-height: 1.4;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 480px) {
    .quiz-container {
        padding: 1.5rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
        /* Stack vertically on small mobile */
    }
}