:root {
    --primary-color: #D69E9E;
    /* Soft warm pink/rose */
    --primary-dark: #C08585;
    --secondary-color: #8CA9A9;
    /* Soft Sage */
    --bg-gradient-start: #FDFBFB;
    --bg-gradient-end: #F4EFF4;
    --text-main: #4A4545;
    --text-muted: #7A7575;
    --text-light: #9E9999;
    --white: #FFFFFF;
    --shadow-soft: 0 10px 30px rgba(214, 158, 158, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: 1px solid rgba(255, 255, 255, 0.8);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --font-family: 'Noto Sans TC', sans-serif;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #F8Dcdc;
    top: -100px;
    left: -50px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #E8F1F1;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: #FFF4E6;
    top: 40%;
    left: 20%;
    opacity: 0.4;
    animation-delay: -10s;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.container-q {
    width: 100%;
    max-width: 600px;
    z-index: 1;
    margin-top: 40px;
    margin-bottom: 40px;
	margin-left: auto;
	margin-right: auto;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease-out;
}

.main-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
}

/* Survey Card */
.survey-card,
.result-card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 30px;
    animation: slideUp 0.8s ease-out 0.2s backwards;
    transition: height 0.3s ease;
}

.survey-header {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* Question Block */
.question-block {
    display: block;
    /* Show all questions */
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.question-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.question-block.active {
    /* Legacy class support, no special animation needed if all shown */
    animation: fadeIn 0.5s ease;
}

.question-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.question-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E8E0E0;
    font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.question-topic {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.question-text {
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-weight: 500;
    color: var(--text-main);
}

/* Options */
.options-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.options-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.options-item:hover {
    border-color: var(--primary-color);
    background: #FFFFFF;
}

.options-item.selected {
    border-color: var(--primary-color);
    background: #FEF6F6;
    box-shadow: 0 4px 12px rgba(214, 158, 158, 0.2);
}

.options-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #DDD;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

/* Checked State */
.options-item input:checked+.radio-custom {
    border-color: var(--primary-color);
}

.options-item input:checked+.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: popIn 0.2s;
}

.option-text {
    font-size: 1rem;
    color: var(--text-main);
    font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Footer Action */
.action-footer {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

.btn-next,
.btn-restart {
    background: var(--text-main);
    color: var(--white);
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-next:hover,
.btn-restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #333;
}

.btn-next:active,
.btn-restart:active {
    transform: translateY(0);
}

/* Results Styles */
.result-content {
    text-align: center;
}

.result-title {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 500;
}

.score-display {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1;
    margin-bottom: 20px;
    font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.score-label {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
}

.result-level-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.result-description-box {
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: left;
    margin-bottom: 20px;
}

.result-text {
    font-size: 1rem;
    color: var(--text-main);
    white-space: pre-wrap;
    /* Keeps line breaks */
    line-height: 1.8;
}

.result-disclaimer {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
}

.fade-in-up {
    animation: slideUp 0.5s ease;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }

    80% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 0;
    }

    .hero-section {
        padding: 0 10px;
        margin-bottom: 24px;
    }

    .main-title {
        font-size: 1.5rem;
    }

    .survey-card,
    .result-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .question-topic {
        font-size: 1.2rem;
    }

    .options-item {
        padding: 14px;
    }
}