:root {
    --primary-color: #FF6B4A;
    --primary-dark: #E64A19;
    --accent-color: #FF8A65;
    --teal-color: #4DB6AC;
    --bg-color: #ffffff; /* Changed to white */
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #ffffff; /* Changed to white */
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

#app {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-color);
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

/* Landing Page Styles */
.banner-container {
    width: 100%;
    background-color: transparent; /* Removed accent color */
}

.banner-img {
    width: 100%;
    display: block;
    /* If banner.png is missing or ratio is off, this ensures it looks okay */
    min-height: 150px; 
    object-fit: cover;
}

.content-card {
    background: var(--white);
    margin: -30px 16px 16px 16px; /* Negative margin to overlap banner */
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid #eee;
    position: relative;
    z-index: 10; /* Ensure it sits on top of banner */
}

.content-card::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #333;
}
.content-card::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #333;
}

.content-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    text-align: justify;
}

.symptom-section {
    text-align: center;
    padding: 20px;
}

.symptom-section h2 {
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.symptom-section h3 {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.symptom-tag {
    display: inline-block;
    background: linear-gradient(90deg, #FF9966, #FF5E62);
    color: white;
    padding: 10px 20px;
    border-radius: 20px 20px 20px 0;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(255, 94, 98, 0.3);
}

.bottom-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    height: 60px;
    display: flex;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.share-btn {
    flex: 1;
    background-color: var(--teal-color);
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.start-btn {
    flex: 2;
    background-color: #388E3C; /* Green to match screenshot (Standard Green) */
    color: white;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

/* Quiz Page Styles */
.quiz-header-img-container {
    position: relative;
    width: 100%;
    /* Removed background-color as per user request */
}

.quiz-banner-img {
    width: 100%;
    display: block;
}

.back-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* Ensure visible on image */
    z-index: 10;
}

.quiz-card {
    background: white;
    border-radius: 12px;
    margin: -280px 20px 0 20px; /* Increased overlap from -160px to -190px */
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); /* Enhanced shadow: bigger blur, higher opacity */
    min-height: 400px; /* Ensure card has some height */
}

.progress-bar-container {
    margin-bottom: 30px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-light);
    font-weight: bold;
}

.progress-track {
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.question-text {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 30px;
    font-weight: bold;
    min-height: 60px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.option-btn {
    background-color: #EEEEEE; /* Light gray instead of orange */
    border: none;
    padding: 15px;
    border-radius: 8px; /* Slightly less rounded */
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: bold;
    text-align: center;
}

.option-btn:hover, .option-btn:active {
    background-color: #E0E0E0;
}

.option-btn.selected {
    background-color: #FFCCBC; /* Light orange highlight */
    color: #E64A19;
}

.navigation-btns {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 20px 30px 20px;
}

.nav-btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px; /* Less rounded corners as per image */
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

.nav-btn.outline {
    background: transparent;
    border: 1px solid #E64A19; /* Darker orange border */
    color: #E64A19;
}

.nav-btn.filled {
    background: #E64A19;
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(230, 74, 25, 0.3); /* Add shadow */
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
}

.quiz-footer-text {
    margin-top: auto;
    font-size: 12px;
    color: #999;
}

.quiz-footer-text h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
}

.quiz-footer-text p {
    margin-bottom: 5px;
    line-height: 1.5;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    color: #bbb;
}

/* Result Page Styles */
#result-page {
    background-color: #f5f5f5;
    min-height: 100vh;
}

.result-header-content {
    background-color: #FF6B4A;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px 80px 20px; /* Extra bottom padding for overlap */
    gap: 15px;
}

.result-header-icon {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.result-header-text {
    color: white;
    text-align: left;
}

.header-subtitle {
    font-size: 14px;
    margin: 0 0 5px 0;
    opacity: 0.9;
}

.header-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 5px 0;
}

.header-desc {
    font-size: 12px;
    margin: 0;
    opacity: 0.8;
}

.report-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: -50px 15px 15px 15px; /* Negative margin for overlap */
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.report-title {
    text-align: center;
    color: #FF8A65;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.report-title span {
    color: #FFD180;
    margin: 0 10px;
}

.report-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: #333;
    font-weight: bold;
}

.report-info-row .value {
    color: #333;
}

.report-advice {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.advice-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.advice-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.report-lock-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: #666;
}

.report-lock-row .value.lock {
    color: #FF8A65;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lock-icon {
    font-size: 14px;
}

.payment-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.payment-title {
    color: #E65100;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

.payment-info-title {
    font-size: 16px;
    font-weight: bold;
    margin: 5px 0;
    color: #333;
}

.payment-stats {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.highlight-red {
    color: #F44336;
    font-weight: bold;
}

.price-info {
    font-size: 14px;
    font-weight: bold;
    margin: 5px 0;
}

.price-val {
    color: #F44336;
    font-size: 18px;
}

.payment-arrow {
    color: #E65100;
    font-weight: bold;
    margin-top: 10px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin: 0 15px;
}

.pay-method {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid transparent;
    cursor: pointer;
    height: 90px;
}

.pay-method.selected {
    border: 2px solid #FF8A65;
}

.pay-method img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.check-mark {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background-color: #FF8A65;
    border-bottom-left-radius: 8px;
    border-top-right-radius: 6px;
}

.pay-method.selected .check-mark {
    display: block;
}

.check-mark::after {
    content: "✓";
    color: white;
    position: absolute;
    top: -2px;
    left: 4px;
    font-size: 14px;
}

.bottom-pay-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    padding: 10px 20px 20px 20px;
    background: transparent;
    z-index: 100;
    display: flex;
    justify-content: center;
}

.pay-container-col {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.activation-link {
    font-size: 14px;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.pay-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.pay-option {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.pay-option h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.pay-option .desc {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 12px;
}

.pay-option .desc-sm {
    margin: 5px 0 0 0;
    color: #999;
    font-size: 11px;
}

.buy-btn {
    background: #FF9800;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.qr-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: #fff;
    padding: 5px;
    border: 1px solid #ddd;
}

.personal-qr {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pay-divider {
    color: #ccc;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pay-divider::before, .pay-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eee;
    margin: 0 10px;
}

.input-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

#activation-code-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.unlock-btn {
    width: 100%;
    padding: 12px;
    background-color: #FF6B4A;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 0;
}

.pay-now-btn {
    width: 100%;
    background-color: #FF6B4A;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 107, 74, 0.4);
    cursor: pointer;
}

/* Submit Info Page Styles */
.submit-header-img-container {
    position: relative;
    width: 100%;
}

.submit-banner-img {
    width: 100%;
    display: block;
}

.submit-card {
    background: white;
    border-radius: 12px;
    margin: -60px 20px 20px 20px; /* Slight overlap */
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.input-label {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.gender-selection {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.gender-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #333;
}

.radio-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ddd;
    position: relative;
    box-sizing: border-box;
}

.gender-option.selected .radio-circle {
    border-color: #FF6B4A;
}

.gender-option.selected .radio-circle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #FF6B4A;
}

.gender-option.selected {
    color: #FF6B4A;
    font-weight: bold;
}

.age-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.age-btn {
    background: white;
    border: 1px solid #999;
    border-radius: 20px;
    padding: 10px 0;
    font-size: 14px;
    cursor: pointer;
    color: #333;
    transition: all 0.2s;
}

.age-btn:hover {
    background-color: #f5f5f5;
}

.age-btn.selected {
    background: #FF8A65;
    border-color: #FF8A65;
    color: white;
}

.submit-info-btn {
    width: 100%;
    background-color: #FF8A65;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 138, 101, 0.4);
}

/* View Result Button */
.view-result-btn {
    width: calc(100% - 40px);
    margin: 30px 20px;
    background: linear-gradient(135deg, #FF6B4A 0%, #FF8A65 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 107, 74, 0.4);
    transition: all 0.3s;
}

.view-result-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 74, 0.5);
}

/* Analysis Page Styles */
.analysis-container {
    background: linear-gradient(180deg, #FF8A65 0%, #FF9E80 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    color: white;
}

.analysis-icon {
    margin-bottom: 20px;
}

.analysis-icon-img {
    width: 80px;
    height: 80px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.analysis-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.analysis-dots {
    font-size: 32px;
    letter-spacing: 5px;
    margin-bottom: 30px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.analysis-steps {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.analysis-step-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #FF6B4A;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.step-indicator {
    font-size: 20px;
}

.step-text {
    font-size: 18px;
}

.analysis-item {
    margin-bottom: 25px;
}

.analysis-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.analysis-progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.analysis-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B4A 0%, #FF8A65 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Locked Items Styles */
.locked-row {
    opacity: 1;
}

.locked-value {
    color: #FF6B4A;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.locked-value.locked {
    color: #FF6B4A;
}

.locked-value.unlocked {
    color: #4CAF50;
}

.lock-icon {
    font-size: 14px;
}
