* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1A68DA;
    --primary-dark: #1557b8;
    --accent: #FFC416;
    --accent-dark: #e5af0d;
    --dark: #0f1114;
    --dark-navy: #070f26;
    --success: #10be8a;
    --warning: #FFC416;
    --danger: #dc3545;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #0f1114;
    --text-muted: #6c757d;
    --border: #e9ecef;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

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

/* Header */
.header {
    text-align: center;
    padding: 20px 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.header-tagline {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 4px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin: 20px 0;
    border-top: 4px solid var(--primary);
}

.hero h1 {
    font-size: 2.25rem;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
}

.trust-badges {
    margin-top: 24px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

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

.btn-accent:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Form Section */
.form-section {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 40px;
    margin: 20px 0;
    border-top: 4px solid var(--primary);
}

.form-section h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-subtitle {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.125rem;
    margin: 32px 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--dark);
}

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

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    padding: 12px;
    font-size: 1rem;
    font-family: 'Nunito Sans', sans-serif;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 104, 218, 0.15);
}

.form-section .btn {
    width: 100%;
    margin-top: 24px;
}

/* Progress Bar */
.progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin-bottom: 32px;
    overflow: hidden;
}

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

/* Questions */
.question-card {
    text-align: center;
}

.question-number {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.question-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.4;
    color: var(--dark);
}

.question-category {
    display: inline-block;
    background: rgba(26, 104, 218, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.option-btn {
    padding: 16px 20px;
    text-align: left;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-family: 'Nunito Sans', sans-serif;
}

.option-btn:hover {
    background: rgba(26, 104, 218, 0.08);
    border-color: var(--primary);
}

.option-btn.selected {
    background: rgba(26, 104, 218, 0.12);
    border-color: var(--primary);
}

.question-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    gap: 16px;
}

.question-nav .btn {
    flex: 1;
}

/* Results Section */
.results-section {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 40px;
    margin: 20px 0;
    border-top: 4px solid var(--accent);
}

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

.results-header h2 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.results-header p {
    color: var(--text-muted);
}

/* Score Card */
.score-card {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--dark) 100%);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
}

.gauge-container {
    max-width: 250px;
    margin: 0 auto 16px;
}

.gauge {
    width: 100%;
    height: auto;
}

.gauge-bg {
    stroke: rgba(255, 255, 255, 0.15);
}

.score-text {
    font-size: 2.5rem;
    font-weight: 700;
    fill: var(--accent);
    font-family: 'Poppins', sans-serif;
}

.score-label {
    font-size: 0.875rem;
    fill: rgba(255, 255, 255, 0.7);
}

.score-interpretation {
    font-size: 1.125rem;
    color: white;
    margin-top: 16px;
}

/* Category Cards */
.breakdown-section {
    margin-bottom: 32px;
}

.breakdown-section h3 {
    font-size: 1.125rem;
    margin-bottom: 16px;
    color: var(--dark);
}

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

@media (max-width: 600px) {
    .category-cards {
        grid-template-columns: 1fr;
    }
}

.category-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.category-score {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
    flex-shrink: 0;
    font-family: 'Poppins', sans-serif;
}

.category-score.high {
    background: var(--success);
}

.category-score.medium {
    background: var(--warning);
    color: var(--dark);
}

.category-score.low {
    background: var(--danger);
}

.category-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark);
}

.category-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Recommendations */
.recommendations-section {
    margin-bottom: 32px;
}

.recommendations-section h3 {
    font-size: 1.125rem;
    margin-bottom: 16px;
    color: var(--dark);
}

.recommendations-list {
    list-style: none;
}

.recommendations-list li {
    padding: 12px 16px;
    background: rgba(255, 196, 22, 0.15);
    border-left: 4px solid var(--warning);
    margin-bottom: 12px;
    border-radius: 0 8px 8px 0;
    font-size: 0.9375rem;
}

.recommendations-list li.success {
    background: rgba(16, 190, 138, 0.15);
    border-left-color: var(--success);
}

.recommendations-list li.danger {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: var(--danger);
}

/* CTA Section */
.cta-section {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
}

@media (max-width: 600px) {
    .cta-section {
        flex-direction: column;
    }
}

.footer-cta {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-cta a {
    color: var(--primary);
    font-weight: 600;
}

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

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

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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