/* Gradion Branding Colors */
:root {
    --primary-orange: #F57C00;
    --primary-orange-dark: #E65100;
    --primary-orange-light: #FFB74D;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-green: #4CAF50;
    --warning-yellow: #FFC107;
    --danger-red: #f44336;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

/* Header */
.header {
    background-color: var(--primary-orange);
    color: white;
    padding: 20px 0;
}

.header .container {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
}

.tagline {
    font-size: 14px;
    opacity: 0.9;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
    color: white;
    padding: 60px 20px;
    margin: 0 -20px 40px -20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Intro Section */
.intro {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.intro p {
    margin-bottom: 16px;
    color: var(--text-light);
}

.intro p:last-child {
    margin-bottom: 0;
}

/* Scoring Info */
.scoring-info {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.scoring-info h2 {
    color: var(--primary-orange);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.scoring-info ul {
    list-style: none;
    margin-bottom: 20px;
}

.scoring-info li {
    margin-bottom: 12px;
}

.rating-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 8px;
    padding-left: 20px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.legend-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary-orange);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-orange);
}

.score-range {
    background: var(--bg-light);
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 4px solid var(--primary-orange);
}

/* Pillar Sections */
.pillar {
    background: var(--bg-white);
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.pillar-header {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
    color: white;
    padding: 24px 30px;
}

.pillar-header h2 {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.pillar-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.why-matters {
    font-size: 0.95rem;
    opacity: 0.9;
}

.why-matters em {
    font-weight: 600;
}

/* Statements */
.statements {
    padding: 20px 30px;
}

.statement {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.statement:last-child {
    border-bottom: none;
}

.statement-text {
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.5;
}

/* Rating Buttons */
.rating-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rate-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-right: 8px;
}

.rating-btn {
    width: 44px;
    height: 44px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-white);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    transform: scale(1.05);
}

.rating-btn.selected {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

.rating-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.3);
}

/* Statement with missing rating */
.statement.incomplete .rating-buttons {
    animation: shake 0.5s ease;
}

.statement.incomplete .rating-btn {
    border-color: var(--danger-red);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Submit Section */
.submit-section {
    text-align: center;
    padding: 40px 20px;
}

.validation-message {
    color: var(--danger-red);
    margin-bottom: 16px;
    font-weight: 500;
    min-height: 24px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 124, 0, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Results Section */
.results {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 40px 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.results.hidden {
    display: none;
}

.results h2 {
    color: var(--primary-orange);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.75rem;
}

.score-display {
    text-align: center;
    margin-bottom: 40px;
}

.total-score {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-light);
    padding: 30px 50px;
    border-radius: 12px;
}

.score-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.score-value {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-orange);
    line-height: 1;
}

.score-max {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Result Band */
.result-band {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.band-title {
    padding: 20px 24px;
    font-size: 1.25rem;
    color: white;
}

/* Band Colors */
.result-band.leader .band-title {
    background: var(--success-green);
}

.result-band.strong .band-title {
    background: #8BC34A;
}

.result-band.partial .band-title {
    background: var(--warning-yellow);
    color: var(--text-dark);
}

.result-band.at-risk .band-title {
    background: var(--danger-red);
}

.band-content {
    padding: 24px;
    background: var(--bg-light);
}

.what-suggests, .next-steps {
    margin-bottom: 20px;
}

.what-suggests:last-child, .next-steps:last-child {
    margin-bottom: 0;
}

.band-content h4 {
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 1rem;
}

.band-content p {
    color: var(--text-light);
    line-height: 1.6;
}

.band-content ul {
    margin-left: 20px;
    color: var(--text-light);
}

.band-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Reset Button */
.reset-btn {
    display: block;
    margin: 0 auto;
    background: transparent;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-btn:hover {
    background: var(--primary-orange);
    color: white;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
}

.footer a {
    color: var(--primary-orange-light);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

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

    .hero .subtitle {
        font-size: 1rem;
    }

    .pillar-header {
        padding: 20px;
    }

    .pillar-header h2 {
        font-size: 1.15rem;
    }

    .statements {
        padding: 16px 20px;
    }

    .rating-buttons {
        justify-content: flex-start;
    }

    .rating-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .rate-label {
        width: 100%;
        margin-bottom: 8px;
    }

    .total-score {
        padding: 20px 30px;
    }

    .score-value {
        font-size: 3rem;
    }

    .rating-legend {
        flex-direction: column;
        gap: 8px;
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .logo {
        font-size: 24px;
    }

    .hero {
        padding: 40px 20px;
    }

    .intro, .scoring-info, .results {
        padding: 20px;
    }

    .submit-btn {
        width: 100%;
        padding: 16px 24px;
    }
}

/* Print Styles */
@media print {
    .header, .footer, .submit-section, .reset-btn {
        display: none;
    }

    .hero {
        background: var(--primary-orange) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .pillar {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .results {
        display: block !important;
    }
}
