/* Quiz Styles */

/* Container */
.quiz-container {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.quiz-wrapper {
    width: 100%;
    max-width: 600px;
    position: relative;
}

/* Quiz Screens */
.quiz-screen {
    display: none;
    animation: fadeIn 0.4s ease;
}

.quiz-screen.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quiz Card */
.quiz-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.welcome-card {
    text-align: center;
}

.quiz-icon {
    font-size: 64px;
    margin-bottom: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.quiz-card h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.quiz-card h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.quiz-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    margin-bottom: 32px;
    line-height: 1.5;
}

.quiz-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 24px;
}

/* Progress Bar */
.quiz-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 32px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00d4aa, #00b894);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Quiz Options */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.quiz-option {
    cursor: pointer;
}

.quiz-option input {
    display: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.quiz-option:hover .option-content {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.quiz-option input:checked+.option-content {
    background: rgba(0, 212, 170, 0.15);
    border-color: #00d4aa;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.2);
}

.option-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.option-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-text strong {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.option-text small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Year Options - Grid */
.year-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.year-options .option-content {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
}

.year-options .option-icon {
    width: auto;
    height: auto;
    background: none;
}

/* Quiz Navigation */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

/* Buttons */
.quiz-btn {
    width: 100%;
    padding: 18px 32px;
    font-size: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.3);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-accent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Result Card */
.result-card {
    max-height: 80vh;
    overflow-y: auto;
}

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

.result-icon {
    font-size: 72px;
    margin-bottom: 16px;
}

.result-meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.activity-badge,
.year-badge {
    padding: 8px 16px;
    background: rgba(0, 212, 170, 0.2);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 20px;
    color: #00d4aa;
    font-size: 14px;
    font-weight: 500;
}

.year-badge {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
    color: #a5b4fc;
}

/* Checklist Content */
.checklist-content {
    margin-bottom: 32px;
}

.checklist-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

.checklist-section h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checklist-section h3 .section-icon {
    font-size: 24px;
}

/* Subsections for Income/Expenses */
.subsection {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border-left: 3px solid rgba(0, 212, 170, 0.5);
}

.subsection:first-of-type {
    margin-top: 8px;
}

.subsection h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.subsection:nth-of-type(2) {
    border-left-color: rgba(239, 68, 68, 0.5);
}

.checklist-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist-items li {
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.checklist-items li:last-child {
    border-bottom: none;
}

.checklist-items li::before {
    content: "✓";
    color: #00d4aa;
    font-weight: bold;
    flex-shrink: 0;
}

.checklist-items a {
    color: #00d4aa;
    text-decoration: none;
    transition: color 0.2s;
}

.checklist-items a:hover {
    color: #00e4ba;
    text-decoration: underline;
}

/* Deadlines */
.deadline-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.deadline-box .deadline-title {
    color: #fca5a5;
    font-weight: 600;
    margin-bottom: 8px;
}

.deadline-box .deadline-date {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.deadline-box .deadline-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-top: 8px;
}

/* Tax Benefits Section */
.benefits-section {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(0, 184, 148, 0.05) 100%);
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.benefits-section h3 {
    color: #00d4aa;
}

.benefits-section h3 small {
    font-size: 0.65em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: normal;
}

.benefits-disclaimer {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    padding: 10px 14px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid rgba(255, 193, 7, 0.6);
}

.benefits-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    padding: 8px 14px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 3px solid rgba(0, 212, 170, 0.5);
}

.benefits-list li {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 4px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.benefit-name-en {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.benefit-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    padding-left: 22px;
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.result-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* CTA Section */
.result-cta {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.result-cta p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

/* Calculator Links */
.calculator-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.calc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    color: #a5b4fc;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.calc-link:hover {
    background: rgba(102, 126, 234, 0.25);
    transform: translateY(-1px);
}

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

    .quiz-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .quiz-card h1 {
        font-size: 24px;
    }

    .quiz-card h2 {
        font-size: 20px;
    }

    .quiz-subtitle {
        font-size: 16px;
    }

    .year-options {
        grid-template-columns: 1fr;
    }

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

    .result-actions {
        flex-direction: column;
    }

    .result-card {
        max-height: none;
    }
}

/* Print Styles for PDF */
@media print {
    .quiz-container {
        background: #fff !important;
        padding: 0;
    }

    .quiz-card {
        background: #fff !important;
        box-shadow: none;
        border: none;
    }

    .quiz-progress,
    .result-actions,
    .result-cta,
    .quiz-nav {
        display: none !important;
    }

    .checklist-section {
        background: #f9f9f9;
        break-inside: avoid;
    }

    .checklist-items li {
        color: #333;
    }

    h1,
    h2,
    h3 {
        color: #111 !important;
    }
}