/* CSS Variables - Edit these to customize your brand colors */
:root {
    /* Brand Colors - Edit these values */
    --color-background: #dddddd;   /* Light gray background */
    --color-text: #000000;          /* Black body text */
    --color-accent: #ffe872;        /* Yellow accent for buttons & highlights */

    /* Supporting Colors - These harmonize with your brand colors */
    --color-primary: #2d2d2d;       /* Dark gray for headings */
    --color-surface: #ffffff;       /* White for cards and containers */
    --color-muted: #666666;         /* Medium gray for secondary text */
    --color-border: #c0c0c0;        /* Light gray for borders */

    /* Accent Variations */
    --color-accent-dark: #e6d04a;   /* Darker yellow for hover states */
    --color-accent-light: #fff5b3;  /* Lighter yellow for backgrounds */
}

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

body {
    font-family: 'Muli', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-background);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-surface);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 40px;
}

/* Header */
header {
    text-align: left;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--color-border);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-muted);
    line-height: 1.6;
}

/* Instructions */
.instructions {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text);
}

.scale-legend {
    display: flex;
    justify-content: space-between;
    max-width: 400px;
    margin: 0 0 30px 0;
    padding: 15px;
    background: var(--color-accent-light);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--color-text);
}

/* Question Blocks */
.question-block {
    margin-bottom: 30px;
    padding: 25px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.question-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--color-accent);
}

.question-text {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--color-text);
}

/* Rating Scale */
.rating-scale {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.rating-scale label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.rating-scale label:hover {
    background: var(--color-accent-light);
}

.rating-scale input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-text);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 232, 114, 0.5);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-background);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Results Section */
#results-section {
    animation: fadeIn 0.5s ease;
}

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

#results-section h2 {
    text-align: left;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 30px;
}

.score-display {
    text-align: left;
    margin-bottom: 30px;
    padding: 30px;
    background: var(--color-accent);
    border-radius: 12px;
    color: var(--color-text);
    border: 2px solid var(--color-accent-dark);
}

.score-number {
    font-size: 4rem;
    font-weight: 700;
}

.score-label {
    font-size: 1.2rem;
    opacity: 0.8;
}

.readiness-band {
    text-align: left;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.readiness-band.not-ready {
    background: #ffebcc;
    color: #8b5a00;
    border: 2px solid #cc9966;
}

.readiness-band.promising {
    background: #e6f2ff;
    color: #003d66;
    border: 2px solid #6699cc;
}

.readiness-band.strong {
    background: #d4f4dd;
    color: #0d5f1f;
    border: 2px solid #4d9966;
}

.results-content {
    margin-bottom: 40px;
}

.explanation {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--color-text);
}

#results-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 15px;
}

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

#next-steps-list li {
    padding: 12px 0 12px 30px;
    margin-bottom: 10px;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.6;
}

#next-steps-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent-dark);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Share CTA */
.share-cta {
    background: var(--color-accent-light);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: left;
    border: 2px solid var(--color-accent);
}

.share-cta h3 {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.share-cta p {
    margin-bottom: 20px;
    color: var(--color-text);
}

/* Share Form */
#share-form-container {
    background: var(--color-surface);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 2px solid var(--color-border);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding: 30px;
    }
}

#share-form-container h3 {
    text-align: left;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
}

#share-form-container > p {
    text-align: left;
    margin-bottom: 25px;
    color: var(--color-muted);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--color-surface);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 232, 114, 0.2);
}

#share-form .btn-primary {
    width: 100%;
    margin-top: 10px;
}

/* Success Message */
#success-message {
    text-align: left;
    padding: 30px;
    background: var(--color-accent-light);
    border: 2px solid var(--color-accent);
    border-radius: 8px;
    animation: fadeIn 0.5s ease;
}

#success-message h3 {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
}

#success-message p {
    color: var(--color-text);
    margin-bottom: 15px;
}

#success-message p:last-child {
    margin-bottom: 0;
}

#success-message a {
    color: var(--color-primary);
    text-decoration: underline;
    word-break: break-all;
}

#success-message a:hover {
    color: var(--color-text);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Honeypot spam protection - keeps field invisible to users */
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.section {
    margin-bottom: 20px;
}

#retake-btn {
    display: block;
    margin: 30px 0 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .scale-legend {
        flex-direction: column;
        gap: 5px;
        text-align: left;
    }

    .question-block {
        padding: 20px;
    }

    .rating-scale {
        gap: 10px;
    }

    .rating-scale label {
        padding: 6px 10px;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

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

    .readiness-band {
        font-size: 1.2rem;
    }

    #share-form-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .question-text {
        font-size: 0.95rem;
    }

    .rating-scale label {
        font-size: 0.9rem;
        padding: 5px 8px;
    }
}
