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

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

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

/* Screen Management */
.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: block;
}

/* Typography */
h1 {
    color: #003d66;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
}

h2 {
    color: #003d66;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
}

h3 {
    color: #003d66;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

p {
    margin-bottom: 15px;
}

/* Intro Screen */
.intro-body {
    margin: 40px 0;
    font-size: 1.125rem;
}

.intro-body p {
    margin-bottom: 20px;
}

.highlight {
    font-weight: 600;
    color: #003d66;
}

/* Buttons */
.cta-button {
    background-color: #FF8C00;
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-height: 44px;
}

.cta-button:hover {
    background-color: #e67e00;
}

.cta-button:active {
    background-color: #cc7000;
}

.nav-button {
    background-color: #f5f5f5;
    color: #003d66;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 24px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 44px;
}

.nav-button:hover {
    background-color: #e8e8e8;
}

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

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

.progress-fill {
    height: 100%;
    background-color: #FF8C00;
    transition: width 0.3s ease;
    width: 10%;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 30px;
}

/* Questions */
.question {
    animation: fadeIn 0.3s ease;
}

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

.help-text {
    color: #666;
    font-size: 0.9375rem;
    margin-bottom: 30px;
}

/* Slider Inputs */
.slider-container {
    margin: 30px 0;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FF8C00;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FF8C00;
    cursor: pointer;
    border: none;
}

.slider-value {
    text-align: center;
    margin-top: 15px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #003d66;
}

/* Checkbox and Radio Groups */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.checkbox-group label,
.radio-group label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    cursor: pointer;
    padding: 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.checkbox-group label:hover,
.radio-group label:hover {
    background-color: #f8f8f8;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Text Input */
.text-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin: 20px 0;
    transition: border-color 0.3s ease;
}

.text-input:focus {
    outline: none;
    border-color: #FF8C00;
}

/* Results Screen */

/* Bottleneck Map */
.bottleneck-map {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.zone {
    border-radius: 8px;
    padding: 24px;
    border: 2px solid;
}

.zone.owner-dependent {
    background-color: #fff5f5;
    border-color: #ff6b6b;
}

.zone.delegatable {
    background-color: #fffbf0;
    border-color: #ffa500;
}

.zone.properly-delegated {
    background-color: #f0fff4;
    border-color: #48bb78;
}

.zone-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.zone-icon {
    font-size: 1.5rem;
}

.zone-subtitle {
    color: #666;
    font-size: 0.9375rem;
    margin-bottom: 15px;
}

.zone ul {
    list-style-position: inside;
    margin-left: 10px;
}

.zone li {
    margin-bottom: 8px;
    color: #333;
}

/* Metrics Section */
.metrics-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.metric {
    text-align: center;
}

.metric-label {
    font-size: 0.9375rem;
    color: #666;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #003d66;
    margin-bottom: 8px;
}

.metric-comparison {
    font-size: 0.875rem;
    color: #666;
}

/* Insight Section */
.insight-section {
    margin: 40px 0;
    padding: 30px;
    background-color: #f0f7ff;
    border-left: 4px solid #003d66;
    border-radius: 4px;
}

.insight-intro {
    font-size: 1.25rem;
    font-weight: 600;
    color: #003d66;
    margin-bottom: 20px;
}

.insight-points {
    margin: 25px 0;
    padding-left: 10px;
}

.insight-points p {
    font-size: 1.0625rem;
    margin-bottom: 12px;
    color: #333;
}

.insight-conclusion {
    font-weight: 600;
    color: #003d66;
    margin-top: 25px;
}

/* Action Section */
.action-section {
    margin: 40px 0;
    padding: 30px;
    border: 2px solid #FF8C00;
    border-radius: 8px;
    background-color: #fffbf5;
}

.action-steps {
    margin-top: 20px;
}

.action-steps ol {
    margin: 20px 0 20px 25px;
}

.action-steps li {
    margin-bottom: 12px;
    padding-left: 5px;
}

.action-footer {
    font-weight: 600;
    color: #003d66;
    margin-top: 20px;
}

/* Download Section */
.download-section {
    text-align: center;
    margin: 40px 0;
}

/* Final CTA */
.final-cta {
    margin: 60px 0 40px;
    padding: 40px;
    background-color: #003d66;
    color: #ffffff;
    border-radius: 8px;
    text-align: center;
}

.final-cta h2 {
    color: #ffffff;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 1.0625rem;
}

.final-cta ul {
    text-align: left;
    max-width: 500px;
    margin: 20px auto;
    list-style-position: inside;
}

.final-cta li {
    margin-bottom: 10px;
}

.cta-note {
    font-style: italic;
    margin-top: 20px;
    margin-bottom: 25px;
}

.final-cta .cta-button {
    margin-top: 10px;
}

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .intro-body {
        font-size: 1rem;
    }

    .cta-button {
        width: 100%;
        padding: 16px;
    }

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

    .navigation-buttons .cta-button,
    .navigation-buttons .nav-button {
        width: 100%;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .final-cta {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .zone {
        padding: 16px;
    }

    .metrics-section,
    .insight-section,
    .action-section {
        padding: 20px;
    }
}
