/* CSS Variables */
:root {
    --primary: #0066cc;
    --primary-dark: #004499;
    --primary-light: #e8f4fc;
    --success: #28a745;
    --success-light: #d4edda;
    --warning: #ffc107;
    --warning-light: #fff3cd;
    --danger: #dc3545;
    --danger-light: #f8d7da;
    --orange: #fd7e14;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --transition: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
}

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

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

.logo {
    text-decoration: none;
}

.logo-img {
    height: 36px;
    width: auto;
}

.header-cta {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid var(--primary);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.header-cta:hover {
    background: var(--primary);
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #1e7e34 100%);
    color: white;
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-link {
    background: none;
    color: var(--primary);
    padding: 8px 16px;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1em;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.5em;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2em;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
}

.feature-icon {
    font-size: 1.2em;
}

.hero-note {
    font-size: 0.9em;
    color: var(--gray-500);
    margin-top: 20px;
}

/* Assessment Section */
.assessment {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    margin-bottom: 30px;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-size: 0.9em;
    color: var(--gray-500);
}

/* Question Container */
.question-container {
    min-height: 300px;
    margin-bottom: 30px;
}

.question {
    animation: fadeIn 0.3s ease;
}

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

.question-dimension {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 16px;
}

.question h2 {
    font-size: 1.4em;
    color: var(--gray-900);
    margin-bottom: 24px;
    line-height: 1.4;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.option:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.option input {
    display: none;
}

.option-radio {
    width: 22px;
    height: 22px;
    border: 2px solid var(--gray-400);
    border-radius: 50%;
    margin-right: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-top: 2px;
}

.option.selected .option-radio {
    border-color: var(--primary);
    background: var(--primary);
}

.option.selected .option-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.option-content {
    flex: 1;
}

.option-label {
    font-weight: 500;
    color: var(--gray-800);
    display: block;
    margin-bottom: 4px;
}

.option-description {
    font-size: 0.9em;
    color: var(--gray-500);
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.nav-buttons .btn {
    min-width: 140px;
}

/* Contact Section */
.contact-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    margin-bottom: 30px;
}

.contact-card h2 {
    text-align: center;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.contact-card > p {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 30px;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
    font-size: 0.95em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    font-size: 1em;
    font-family: var(--font-family);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.checkbox-group {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9em;
    color: var(--gray-600);
}

.checkbox-label input {
    width: auto;
    margin-top: 3px;
}

.form-note {
    text-align: center;
    font-size: 0.85em;
    color: var(--gray-500);
    margin-top: 20px;
}

.form-note a {
    color: var(--primary);
}

/* Results Section */
.results {
    margin-bottom: 30px;
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h2 {
    color: var(--gray-900);
    margin-bottom: 8px;
}

.results-date {
    color: var(--gray-500);
    font-size: 0.9em;
}

/* Score Card */
.score-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 24px;
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.score-level {
    font-size: 3em;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 0.8em;
    opacity: 0.9;
    margin-top: 4px;
}

.score-details {
    flex: 1;
}

.score-details h3 {
    font-size: 1.5em;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.score-details p {
    color: var(--gray-600);
    margin-bottom: 20px;
}

.score-bar-container {
    margin-top: 20px;
}

.score-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.score-bar {
    height: 12px;
    background: linear-gradient(90deg, var(--danger) 0%, var(--orange) 25%, var(--warning) 50%, var(--success) 75%, var(--primary) 100%);
    border-radius: 6px;
    position: relative;
}

.score-bar-fill {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background: var(--gray-200);
    border-radius: 0 6px 6px 0;
}

.score-bar-marker {
    position: absolute;
    top: -4px;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid var(--gray-800);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: var(--shadow);
}

.score-bar-levels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75em;
    color: var(--gray-400);
    margin-top: 8px;
    padding: 0 10px;
}

/* Chart Card */
.chart-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 30px;
    margin-bottom: 24px;
}

.chart-card h3 {
    text-align: center;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.chart-container {
    max-width: 400px;
    margin: 0 auto;
}

/* Dimensions Card */
.dimensions-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 30px;
    margin-bottom: 24px;
}

.dimensions-card h3 {
    color: var(--gray-900);
    margin-bottom: 20px;
}

.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.dimension-item {
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--primary);
}

.dimension-item.level-1 { border-left-color: var(--danger); }
.dimension-item.level-2 { border-left-color: var(--orange); }
.dimension-item.level-3 { border-left-color: var(--warning); }
.dimension-item.level-4 { border-left-color: var(--success); }
.dimension-item.level-5 { border-left-color: var(--primary); }

.dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.dimension-name {
    font-weight: 600;
    color: var(--gray-800);
}

.dimension-score {
    font-weight: 700;
    font-size: 1.2em;
}

.dimension-item.level-1 .dimension-score { color: var(--danger); }
.dimension-item.level-2 .dimension-score { color: var(--orange); }
.dimension-item.level-3 .dimension-score { color: var(--warning); }
.dimension-item.level-4 .dimension-score { color: var(--success); }
.dimension-item.level-5 .dimension-score { color: var(--primary); }

.dimension-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.dimension-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.dimension-item.level-1 .dimension-bar-fill { background: var(--danger); }
.dimension-item.level-2 .dimension-bar-fill { background: var(--orange); }
.dimension-item.level-3 .dimension-bar-fill { background: var(--warning); }
.dimension-item.level-4 .dimension-bar-fill { background: var(--success); }
.dimension-item.level-5 .dimension-bar-fill { background: var(--primary); }

/* Recommendations Card */
.recommendations-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 30px;
    margin-bottom: 24px;
}

.recommendations-card h3 {
    color: var(--gray-900);
    margin-bottom: 20px;
}

.recommendation-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
}

.recommendation-item:last-child {
    margin-bottom: 0;
}

.recommendation-priority {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.recommendation-content h4 {
    color: var(--gray-800);
    margin-bottom: 4px;
}

.recommendation-content p {
    color: var(--gray-600);
    font-size: 0.95em;
}

/* Results CTA */
.results-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    color: white;
    margin-bottom: 24px;
}

.results-cta h3 {
    margin-bottom: 12px;
    font-size: 1.5em;
}

.results-cta p {
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.results-cta .btn-primary {
    background: white;
    color: var(--primary);
}

.results-cta .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.results-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Results Footer */
.results-footer {
    text-align: center;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--gray-500);
    font-size: 0.9em;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary);
}

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

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

    .hero {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 1.8em;
    }

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

    .hero-features {
        gap: 16px;
    }

    .assessment {
        padding: 24px;
    }

    .question h2 {
        font-size: 1.2em;
    }

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

    .nav-buttons .btn {
        width: 100%;
    }

    .score-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .score-circle {
        width: 120px;
        height: 120px;
    }

    .score-level {
        font-size: 2.5em;
    }

    .dimensions-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .cta-buttons .btn {
        width: 100%;
    }
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
