/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Progress Bar */
.progress-container {
    padding: 20px 30px;
    background: #f8f9fa;
    position: relative;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.progress-text {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

/* Assessment Form */
.assessment-form {
    padding: 40px 30px;
}

.question-container {
    display: none;
    animation: fadeIn 0.4s ease;
}

.question-container.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-number {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-text {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #2d3748;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.option input[type="radio"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

.option span {
    font-size: 1rem;
    color: #4a5568;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

/* Email Capture */
.email-capture {
    padding: 40px 30px;
    text-align: center;
}

.email-capture h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2d3748;
}

.benefits {
    list-style: none;
    margin: 25px 0 35px 0;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.benefits li {
    padding: 10px 0;
    font-size: 1.1rem;
    color: #4a5568;
}

#emailForm {
    max-width: 500px;
    margin: 0 auto;
}

#emailForm input {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

#emailForm input:focus {
    outline: none;
    border-color: #667eea;
}

/* Results Page */
.results-page {
    padding: 40px 30px;
}

.results-page h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #2d3748;
}

.score-container {
    text-align: center;
    margin-bottom: 50px;
}

.score-container h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #4a5568;
}

.gauge {
    width: 100%;
    max-width: 400px;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    margin: 0 auto 20px;
    overflow: hidden;
    position: relative;
}

.gauge-fill {
    height: 100%;
    width: var(--gauge-width, 0%);
    background: var(--gauge-color, #667eea);
    transition: width 1s ease, background 0.5s ease;
    border-radius: 15px;
}

.score-display {
    margin: 20px 0;
}

.score-number {
    font-size: 4rem;
    font-weight: 700;
    color: #2d3748;
}

.score-label {
    font-size: 2rem;
    color: #a0aec0;
}

.score-status {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 10px;
}

/* Dimension Breakdown */
.dimension-breakdown {
    margin-bottom: 50px;
}

.dimension-breakdown h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #2d3748;
}

.dimension-item {
    display: grid;
    grid-template-columns: 180px 1fr 60px;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.dimension-name {
    font-weight: 600;
    color: #4a5568;
}

.dimension-bar {
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.dimension-fill {
    height: 100%;
    width: var(--dim-width, 0%);
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.8s ease;
    border-radius: 10px;
}

.dimension-score {
    text-align: right;
    font-weight: 600;
    color: #667eea;
}

/* Roadmap */
.roadmap {
    margin-bottom: 50px;
}

.roadmap h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #2d3748;
}

.roadmap-phase {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.phase-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.roadmap-phase h4 {
    font-size: 1.3rem;
    color: #2d3748;
}

.roadmap-phase p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1rem;
}

/* Recommendation */
.recommendation {
    margin-bottom: 50px;
}

.recommendation h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #2d3748;
}

.rec-card {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #667eea;
}

.rec-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.rec-card p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* Free Download */
.free-download {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.free-download h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.free-download p {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .container {
        border-radius: 0;
        min-height: 100vh;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .question-text {
        font-size: 1.2rem;
    }

    .dimension-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dimension-name {
        margin-bottom: 5px;
    }

    .dimension-score {
        text-align: left;
        margin-top: 5px;
    }

    .navigation {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    .score-number {
        font-size: 3rem;
    }
}

/* Loading Spinner */
.loading-spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Take Another Test Button */
.retake-section {
    text-align: center;
    margin-top: 50px;
    padding: 40px 20px;
    border-top: 2px solid #e2e8f0;
}

.btn-retake {
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    transition: all 0.3s ease;
    animation: pulse-red 2s infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-retake:hover {
    background: #dc2626;
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.6);
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(239, 68, 68, 0.8);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    }
}
/* Disable selection and interactions */
* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Re-enable selection for input fields */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Watermark (optional - shows ownership) */
body::before {
    content: "© Chaos-to-Coherence Assessment - Unauthorized copying prohibited";
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 10px;
    color: rgba(0,0,0,0.3);
    pointer-events: none;
    z-index: 9999;
}