* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent-blue: #3b82f6;
    --accent-teal: #14b8a6;
    --accent-green: #10b981;
    --accent-orange: #f97316;
    --accent-red: #ef4444;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --neutral: #f1f5f9;
    --neutral-dark: #94a3b8;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border: #e2e8f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
}

.container {
    max-width: 950px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.header-content {
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

header .subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Main Content */
main {
    padding: 50px 40px;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
    height: 4px;
    background: var(--neutral);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Steps */
.step {
    display: none;
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    margin-bottom: 35px;
}

.step-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.step-description {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

/* Question Card */
.question-card {
    padding: 35px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(20, 184, 166, 0.02) 100%);
}

.question-content {
    margin-bottom: 30px;
}

.question-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.question-hint {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Assessment Cards */
.assessment-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.assessment-card {
    padding: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.question-number {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Option Groups */
.option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    padding: 14px 16px;
    background: var(--neutral);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.radio-option:hover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--accent-blue);
}

.radio-option input[type="radio"]:checked + .option-content {
    color: var(--accent-blue);
    font-weight: 600;
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.option-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.option-score {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Button Groups */
.button-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

/* Buttons */
.btn {
    padding: 15px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
}

/* Button Variants */
.btn-yes {
    background: linear-gradient(135deg, var(--accent-green), #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-yes:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-no {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-no:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-reset {
    background: linear-gradient(135deg, var(--accent-orange), #ea580c);
    color: white;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-reset:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

/* Score Display */
.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(20, 184, 166, 0.1));
    border-radius: 12px;
    border: 2px solid var(--accent-blue);
    margin-top: 30px;
}

.score-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.score-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-blue);
    min-width: 60px;
    text-align: center;
}

/* Solution Card */
.solution-card {
    padding: 40px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(20, 184, 166, 0.08) 100%);
    border: 2px solid var(--accent-green);
    margin-bottom: 30px;
}

.solution-header {
    margin-bottom: 20px;
}

.solution-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 8px;
}

.solution-body {
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.8;
    font-weight: 500;
}

.solution-body p {
    margin: 8px 0;
}

.treatment-highlight {
    background: linear-gradient(120deg, rgba(34, 197, 94, 0.2), rgba(20, 184, 166, 0.2));
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-green);
    margin: 15px 0;
    font-weight: 600;
    color: var(--primary);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Footer */
footer {
    background: var(--neutral);
    padding: 10px 10px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.35rem;
    font-weight: 500;
    border-top: 2px solid var(--border);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        border-radius: 0;
    }

    header {
        padding: 35px 20px;
    }

    header h1 {
        font-size: 2rem;
    }

    main {
        padding: 30px 20px;
    }

    .step-header h2 {
        font-size: 1.5rem;
    }

    .question-card {
        padding: 25px;
    }

    .question-content h3 {
        font-size: 1.3rem;
    }

    .assessment-container {
        grid-template-columns: 1fr;
    }

    .button-group {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .solution-card {
        padding: 25px;
    }

    .solution-body {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    header {
        padding: 25px 15px;
    }

    header h1 {
        font-size: 1.6rem;
    }

    main {
        padding: 20px 15px;
    }

    .step-header h2 {
        font-size: 1.3rem;
    }

    .question-content h3 {
        font-size: 1.1rem;
    }

    .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .progress-container {
        margin-bottom: 25px;
    }

    .card-header h3 {
        font-size: 1rem;
    }

    .radio-option {
        padding: 12px 14px;
    }

    .score-display {
        flex-direction: column;
        gap: 12px;
    }

    .score-value {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.solution-card {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Copyright Banner */
#copyright-banner {
    position: fixed;
    bottom: -120px; /* Hidden below viewport */
    right: 20px;
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
    font-size: 12px;
    line-height: 1.4;
    max-width: 300px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: bottom 0.5s ease-out;
    opacity: 0;
}

#copyright-banner.show {
    bottom: 0;
    opacity: 1;
}

#copyright-banner p {
    margin: 0;
    text-align: center;
}
