@charset "utf-8";

.navArea nav ul {padding:8px 0; background-color: rgba(238, 238, 238, 0.5); border-radius: 8px;}
.navArea nav ul li a {color:#505050;}

.sub-visualArea .contentBox {margin-top:50px; width:80%; max-width:1200px;}
.sub-visualArea .contentBox h1 {color:#505050; font-size:1.2rem;}
.sub-visualArea .contentBox p { font-size:1rem;}

/* Self Check Header */
.selfcheck-header {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    text-align: center;
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.header-subtitle {
    font-size: 1.3rem;
    color: #475569;
    line-height: 1.6;
}

/* Questionnaire */
.questionnaire {
    padding: 60px 0;
    background: #ffffff;
}

.questionnaire-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.question {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
    animation: fadeIn 0.4s ease-out;
}

.question:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Question header */
.question-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
}

.question-number {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.question-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.6;
    flex: 1;
}

/* Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.option {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    padding: 18px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.option:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateX(5px);
}

.option input[type="radio"],
.option input[type="checkbox"] {
    display: none;
}

/* Radio button custom style */
.radio-custom {
    width: 24px;
    height: 24px;
    border: 3px solid #cbd5e1;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    background: #ffffff;
    transition: all 0.3s ease;
}

.option input[type="radio"]:checked + .radio-custom {
    background: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-radius: 50%;
}

/* Checkbox custom style */
.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 3px solid #cbd5e1;
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    background: #ffffff;
    transition: all 0.3s ease;
}

.option input[type="checkbox"]:checked + .checkbox-custom {
    background: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
}

.option input[type="radio"]:checked ~ .option-text,
.option input[type="checkbox"]:checked ~ .option-text {
    color: #1e293b;
    font-weight: 500;
}

.option-text {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    flex: 1;
}

/* Navigation buttons */
.question-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.nav-btn {
    padding: 14px 32px;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
}

.nav-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-btn.next,
.nav-btn.result {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border-color: #3b82f6;
}

.nav-btn.next:hover,
.nav-btn.result:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.nav-btn.prev {
    background: #ffffff;
    color: #64748b;
}

/* Results */
.results {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

.results-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Result panel */
.result-panel {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    padding: 20px 30px;
    font-weight: 700;
    font-size: 1.3rem;
    text-align: center;
}

.result-content {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 50px 40px;
}

.result-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 3rem;
}

.result-icon.high-risk {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #f59e0b;
}

.result-icon.low-risk {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #10b981;
}

/* Result text */
.result-text {
    flex: 1;
}

.result-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.4;
}

.result-text p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 12px;
}

.result-text p:last-child {
    margin-bottom: 0;
}

/* Disclaimer */
.disclaimer {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    border-left: 5px solid #f59e0b;
    margin-top: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.disclaimer p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 10px;
    text-align: center;
}

.disclaimer p:last-child {
    margin-bottom: 0;
}

/* Result navigation */
.result-nav {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.nav-btn.restart {
    background: #ffffff;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    font-weight: 600;
    padding: 14px 40px;
}

.nav-btn.restart:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #2563eb;
}

/* Progress indicator */
.question-progress {
    text-align: center;
    margin-bottom: 30px;
    color: #64748b;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-title {
        font-size: 2.5rem;
    }

    .header-subtitle {
        font-size: 1.1rem;
    }

    .question {
        padding: 30px 20px;
    }

    .question-header {
        flex-direction: column;
        gap: 15px;
    }

    .question-number {
        align-self: flex-start;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .option {
        padding: 15px;
    }

    .option-text {
        font-size: 0.95rem;
    }

    .result-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 40px 25px;
    }

    .result-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .result-text h3 {
        font-size: 1.3rem;
    }

    .result-text p {
        font-size: 1rem;
    }

    .nav-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        min-width: 100px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .questionnaire-inner,
    .results-inner {
        max-width: 800px;
    }
}
