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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page {
    display: none;
    flex: 1;
    padding: 2rem 1rem;
}

.page.active {
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    background: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Landing Page Styles */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.2;
}

.subhead {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 2rem;
    font-weight: 500;
}

.body-content {
    margin-bottom: 2rem;
}

.body-content > p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.feature-section {
    margin: 2rem 0;
}

.feature-section h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.feature-section ul {
    list-style: none;
    padding-left: 0;
}

.feature-section ul li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    font-size: 1rem;
    color: #555;
}

.feature-section ul li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: #0066cc;
    font-weight: bold;
}

.cta-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 2rem;
    color: #1a1a1a;
}

/* Buttons */
.primary-button {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 2rem auto 0;
}

.primary-button:hover {
    background-color: #0052a3;
}

.primary-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.secondary-button {
    background-color: white;
    color: #0066cc;
    border: 2px solid #0066cc;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-button:hover {
    background-color: #f0f7ff;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: #0066cc;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Question Styles */
.question-container {
    margin-top: 1rem;
}

#question-text {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 600;
}

.instructions {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
}

#options-container {
    margin-bottom: 2rem;
}

.option {
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: white;
}

.option:hover {
    border-color: #0066cc;
    background-color: #f0f7ff;
}

.option.selected {
    border-color: #0066cc;
    background-color: #e6f2ff;
    font-weight: 500;
}

.option input[type="radio"] {
    margin-right: 0.75rem;
    cursor: pointer;
}

.option label {
    cursor: pointer;
    display: block;
    width: 100%;
}

/* Text input for "other" options */
.text-input-container {
    margin-top: 0.5rem;
}

.text-input-container input[type="text"],
.text-input-container textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.text-input-container input[type="text"]:focus,
.text-input-container textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.text-input-container textarea {
    min-height: 100px;
    resize: vertical;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.navigation-buttons button {
    flex: 1;
    max-width: 200px;
}

/* Results Page */
.results-container {
    max-width: 900px;
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.result-header h2 {
    font-size: 2rem;
    color: #1a1a1a;
}

.result-content {
    margin-bottom: 3rem;
}

.result-section {
    margin-bottom: 2rem;
}

.result-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.result-section h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #0066cc;
}

.result-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1rem;
}

.result-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.result-section ul li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.6;
}

.result-section ul li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: #0066cc;
    font-weight: bold;
}

.surface-decision {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-left: 4px solid #0066cc;
    margin-bottom: 1.5rem;
}

.underlying-decision {
    background-color: #fff3cd;
    padding: 1.5rem;
    border-left: 4px solid #ffc107;
    margin-bottom: 1.5rem;
}

.reframe {
    font-style: italic;
    font-weight: 600;
    font-size: 1.15rem;
    color: #0066cc;
    margin: 2rem 0;
    text-align: center;
}

/* Download Section */
.download-section {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.download-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.download-section .note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* Next Steps */
.next-steps {
    margin-bottom: 2rem;
}

.next-steps h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.option-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #0066cc;
}

.option-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.option-card p {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

.closing-note {
    text-align: center;
    font-style: italic;
    margin-top: 2rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .subhead {
        font-size: 1.1rem;
    }

    .content-wrapper {
        padding: 2rem 1.5rem;
    }

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

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

    .navigation-buttons button {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 1rem 0.5rem;
    }

    .content-wrapper {
        padding: 1.5rem 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }
}
