/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Khula", sans-serif;
    background-color: #f8fafc;
    min-height: 100vh;
    color: #000000;
    line-height: 1.6;
}
h2 {
    font-family: "Kanit", sans-serif;
    font-weight: 700;
    color: #1d4355;
}

/* Quiz Container */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* Main Content Area */
.quiz-content {
    flex: 1;
}

/* Header */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid #e2e8f0;
    background: white;
}

.logo-container {
    display: flex;
    align-items: center;
}

.safeu-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-family: "Kanit", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1d4355;
    letter-spacing: 0.5px;
}

.free-call-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #289dd2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 157, 210, 0.3);
}

.free-call-btn:hover {
    background: #2086b8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 157, 210, 0.4);
}

.free-call-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(40, 157, 210, 0.3);
}

/* Progress Bar */
.progress-container {
    padding: 30px 40px 0 40px;
    background: white;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #1d4355;
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 33.33%;
}

/* Progress Step Indicators */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.progress-step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.progress-step.active .progress-step-circle {
    background: #1d4355;
    color: white;
}

.progress-step.completed .progress-step-circle {
    background: #10b981;
    color: white;
}

/* Question Container */
.question-container {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.question-container.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.question-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.question-title {
    font-family: "Kanit", sans-serif;
    color: #000000;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Answer Grid */
.answers-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.answers-grid {
    grid-template-columns: repeat(2, 1fr);
}

.age-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Answer Cards */
.answer-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #000000;
}

.answer-card:hover {
    border-color: #289dd2;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(40, 157, 210, 0.15);
    background: #f8fcff;
}

.answer-card.selected {
    border-color: #289dd2;
    background: #289dd2;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(40, 157, 210, 0.4);
}

.answer-card.selected .answer-icon svg {
    fill: white;
}

.answer-icon {
    transition: transform 0.3s ease;
}

.answer-card:hover .answer-icon {
    transform: scale(1.1);
}

.answer-text {
    font-size: 18px;
    font-weight: 600;
    color: inherit;
}

/* Analysis Screen */
.analysis-content {
    text-align: center;
    /* padding-inline: 20px; */
}

.analysis-animation h2 {
    color: #000000;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.analysis-animation p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 50px;
}

/* Spinner */
.spinner-container {
    margin-bottom: 30px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #289dd2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Analysis Steps */
.analysis-steps {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: #64748b;
    font-size: 15px;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInStep 0.5s ease forwards;
}

.step-icon {
    width: 24px;
    height: 24px;
    background: #289dd2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.step:nth-child(1) { animation-delay: 0.5s; }
.step:nth-child(2) { animation-delay: 1s; }
.step:nth-child(3) { animation-delay: 1.5s; }
.step:nth-child(4) { animation-delay: 2s; }

@keyframes slideInStep {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Trust Section */
.trust-section {
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.trust-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
}

.trust-icon {
    flex-shrink: 0;
}

.value-props {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.value-prop {
    color: #289dd2;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* Footer */
.quiz-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    /* flex-wrap: wrap; */
}

.footer-link {
    color: #289dd2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #1d4355;
    text-decoration: underline;
}

.footer-disclaimer {
    margin-bottom: 20px;
}

.footer-disclaimer p {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.footer-copyright p {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

/* Completion Message Styles */
.completion-message {
    text-align: center;
    /* padding-inline: 20px; */
}

.success-icon {
    /* font-size: 64px; */
    /* margin-bottom: 20px; */
}

.completion-message h2 {
    color: #000000;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.completion-message p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 15px;
}

.redirect-info {
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: left;
    border: 1px solid #e2e8f0;
}

.redirect-info p {
    margin-bottom: 8px;
    font-size: 15px;
    color: #475569;
}

.redirect-info strong {
    color: #000000;
}

.redirect-btn {
    background: #289dd2;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(40, 157, 210, 0.3);
    margin-top: 20px;
}

.redirect-btn:hover {
    background: #2086b8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 157, 210, 0.4);
}

.redirect-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(40, 157, 210, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-header {
        padding: 15px 20px;
    }
    
    .progress-container {
        padding-inline: 20px;
        padding-top: 20px;
    }
    
    .question-container {
        padding: 20px;
    }
    
    .question-title {
        font-size: 24px;
    }
    
    .age-grid {
        grid-template-columns: 1fr;
    }
    
    .answer-card {
        padding: 24px 16px;
        min-height: 60px;
    }
    
    .answer-text {
        font-size: 16px;
    }
    
    .trust-section {
        padding: 30px 20px;
    }
    
    .value-props {
        gap: 15px;
    }
    
    .quiz-footer {
        padding: 30px 20px;
    }
    
    .footer-links {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .answers-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-header {
        gap: 15px;
        text-align: center;
    }
    
    .question-title {
        font-size: 22px;
    }
    
    .analysis-animation h2 {
        font-size: 24px;
    }
    
    .footer-links {
        /* flex-direction: column; */
        gap: 15px;
    }
    
    .value-props {
        flex-direction: column;
        align-items: center;
    }
}

