/* Vision Test Styles */

/* Section */
.vision-test {
    padding: 60px 0;
    background: transparent;
    position: relative;
}

/* Wrapper */
.vision-test-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

/* Test Screens */
.test-screen {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Intro Card */
.test-card {
    background: var(--bg-card);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.test-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.2) 0%, rgba(0, 206, 209, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #00CED1;
    border: 2px solid rgba(0, 206, 209, 0.3);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 206, 209, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 5px rgba(0, 206, 209, 0.2);
    }
}

.test-card h3 {
    font-size: 28px;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

.test-card>p {
    color: var(--text-sec);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Instructions */
.test-instructions {
    background: var(--bg-input);
    border-radius: 16px;
    padding: 25px;
    text-align: left;
    margin-bottom: 30px;
}

.test-instructions h5 {
    font-size: 14px;
    color: #00CED1;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.test-instructions ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: steps;
}

.test-instructions li {
    counter-increment: steps;
    color: var(--text-sec);
    font-size: 15px;
    line-height: 1.6;
    padding: 8px 0;
    padding-left: 35px;
    position: relative;
}

.test-instructions li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 8px;
    width: 24px;
    height: 24px;
    background: rgba(0, 206, 209, 0.15);
    color: #00CED1;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.test-instructions li strong {
    color: #00CED1;
}

/* Eye Selection */
.eye-selection h5 {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 20px;
}

.eye-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.eye-btn {
    background: var(--bg-surface);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.eye-btn i {
    font-size: 32px;
    color: #00CED1;
}

.eye-btn span {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.eye-btn small {
    font-size: 13px;
    color: #64748B;
}

.eye-btn:hover {
    background: rgba(0, 206, 209, 0.1);
    border-color: rgba(0, 206, 209, 0.5);
    transform: translateY(-3px);
}

.eye-btn:hover i {
    transform: scale(1.1);
}

/* Test Main Screen */
.test-main {
    background: var(--bg-card);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.test-progress {
    flex: 1;
    min-width: 200px;
}

.progress-bar {
    height: 8px;
    background: rgba(226, 232, 240, 1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00CED1, #00ACC1);
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 10%;
}

.progress-text {
    font-size: 13px;
    color: #64748B;
}

.eye-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 206, 209, 0.1);
    padding: 10px 18px;
    border-radius: 25px;
    color: #00CED1;
    font-size: 14px;
    font-weight: 500;
}

.eye-indicator small {
    color: #64748B;
    font-weight: 400;
}

/* Chart Display */
.chart-display {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-input);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 20px;
}

.letter-display {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.15em;
    margin-bottom: 30px;
    line-height: 1.2;
    transition: font-size 0.3s ease;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.letter-display.fade-in {
    animation: letterFade 0.3s ease;
}

@keyframes letterFade {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.input-area {
    display: flex;
    gap: 10px;
    max-width: 350px;
    margin: 0 auto;
}

.letter-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 20px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    outline: none;
    text-align: center;
    transition: all 0.3s ease;
}

.letter-input:focus {
    border-color: #00CED1;
    box-shadow: 0 0 0 4px rgba(0, 206, 209, 0.1);
}

.submit-btn {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #00CED1 0%, #00ACC1 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 206, 209, 0.4);
}

.input-hint {
    margin-top: 15px;
    font-size: 13px;
    color: #9E9E9E;
}

/* Skip Row */
.skip-row {
    text-align: center;
}

.skip-btn {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #64748B;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.skip-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #1e293b;
}

/* Results Screen */
.results-card {
    background: var(--bg-card);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.results-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
}

.results-icon.excellent {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.results-icon.moderate {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.results-icon.needs-attention {
    background: rgba(255, 87, 34, 0.15);
    color: #FF5722;
    border: 2px solid rgba(255, 87, 34, 0.3);
}

.results-card h3 {
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 25px;
}

.vision-score {
    background: rgba(241, 245, 249, 0.8);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

.score-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.score-value {
    font-size: 56px;
    font-weight: 700;
    color: #00CED1;
    line-height: 1;
    margin-bottom: 10px;
    animation: scoreReveal 0.6s ease;
}

@keyframes scoreReveal {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.score-eye {
    font-size: 16px;
    color: #94A3B8;
}

.results-message {
    margin-bottom: 25px;
}

.results-message p {
    color: var(--text-sec);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.results-message strong {
    color: var(--text-main);
}

.results-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(0, 206, 209, 0.08);
    border: 1px solid rgba(0, 206, 209, 0.15);
    border-radius: 12px;
    padding: 15px;
    text-align: left;
    margin-bottom: 30px;
}

.results-disclaimer i {
    color: #00CED1;
    font-size: 18px;
    margin-top: 2px;
}

.results-disclaimer p {
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.results-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.action-btn {
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #1e293b;
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.8);
}

.action-btn.primary {
    background: linear-gradient(135deg, #00CED1 0%, #00ACC1 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 206, 209, 0.3);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 206, 209, 0.4);
}

/* Responsive */
@media (max-width: 576px) {

    .test-card,
    .test-main,
    .results-card {
        padding: 25px 20px;
    }

    .eye-buttons {
        grid-template-columns: 1fr;
    }

    .results-actions {
        grid-template-columns: 1fr;
    }

    .score-value {
        font-size: 44px;
    }

    .test-header {
        flex-direction: column;
        align-items: stretch;
    }
}