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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

.quiz-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.quiz-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.quiz-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

#quiz-container {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #1e3a5f, #4a90c2);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 12.5%;
}

.question-counter {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

#question-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.5;
}

.helper-text {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 15px;
    padding: 10px 14px;
    background: #f0f4f8;
    border-radius: 8px;
    border-left: 3px solid #1e3a5f;
}

.multi-select-hint {
    font-size: 0.88rem;
    color: #8b2332;
    font-weight: 500;
    margin-bottom: 12px;
}

#options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option {
    padding: 10px 14px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    color: #334155;
    text-align: left;
}

.option:hover {
    border-color: #4a90c2;
    background: #f0f7ff;
}

.option.selected {
    border-color: #1e3a5f;
    background: #e0f0ff;
    color: #1e3a5f;
    font-weight: 500;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a5f, #4a90c2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

.btn-secondary:hover:not(:disabled) {
    background: #cbd5e1;
}

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

.hidden {
    display: none !important;
}

#results-container {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.result-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#result-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

#result-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 15px;
}

#result-description {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
}

#result-details {
    width: 100%;
    text-align: left;
}

.next-steps {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.next-steps h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 12px;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    padding: 8px 0;
    padding-left: 22px;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    line-height: 1.5;
    font-size: 0.95rem;
}

.next-steps li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
}

.next-steps li:last-child {
    border-bottom: none;
}

.learn-more {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.learn-more h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 12px;
}

.learn-more-list {
    list-style: none;
    padding: 0;
}

.learn-more-list li {
    padding: 6px 0;
}

.learn-more-list li a {
    color: #1e3a5f;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.learn-more-list li a:hover {
    text-decoration: underline;
    color: #2d5a87;
}

.chevron {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a5f;
    flex-shrink: 0;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.cta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-schedule {
    background: #22c55e;
    color: white;
}

.cta-schedule:hover {
    background: #16a34a;
}

.cta-estimate {
    background: #f59e0b;
    color: white;
}

.cta-estimate:hover {
    background: #d97706;
}

.cta-call-outlined {
    background: white;
    color: #1e3a5f;
    border: 2px solid #1e3a5f;
    line-height: 1.4;
}

.cta-call-outlined:hover {
    background: #f0f4f8;
}

.phone-numbers {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.85;
}

.restart-link {
    color: #64748b;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 10px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.restart-link:hover {
    color: #1e3a5f;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cta-buttons {
        gap: 12px;
    }

    .cta-btn {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .quiz-header h1 {
        font-size: 1.5rem;
    }

    #quiz-container,
    #results-container {
        padding: 20px;
    }

    #question-text {
        font-size: 1.1rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    #result-title {
        font-size: 1.3rem;
    }

    #result-description {
        font-size: 0.95rem;
    }
}
