:root {
    /* Default (Dark / FastVibe Premium) */
    --bg-color: #05050f;
    --text-color: #e0e0e0;
    --primary-color: #3b82f6;
    /* Blue (was Indigo #6366f1) */
    --accent-color: #2563eb;
    /* Darker Blue (was Violet #8b5cf6) */
    --highlight-color: #0ea5e9;
    /* Sky Blue (was Cyan #06b6d4) */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Font */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Noto Sans KR', sans-serif;
    --transition-speed: 0.3s;
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #111827;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.08);
}

[data-theme="gray"] {
    --bg-color: #cfcfcf;
    /* Much darker gray for clear distinction */
    --text-color: #1f2937;
    --glass-bg: rgba(255, 255, 255, 0.85);
    /* Whiter cards to contrast with gray bg */
    --glass-border: rgba(255, 255, 255, 0.6);
}

/* Theme Switcher UI */
.theme-switcher {
    display: flex;
    gap: 8px;
    margin-right: 24px;
}

.theme-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
}

.theme-btn:hover {
    transform: scale(1.1);
}

.theme-btn.active {
    border-color: var(--primary-color);
    transform: scale(1.15);
}

.font-light {
    font-family: 'Inter', sans-serif;
    font-weight: 200 !important;
}

.font-medium {
    font-weight: 800 !important;
}

.font-heavy {
    font-weight: 800 !important;
}

/* Theme Button Specific Colors for Preview */
.theme-btn-dark {
    background-color: #05050f;
    border: 1px solid #333;
}

.theme-btn-light {
    background-color: #ffffff;
    border: 1px solid #ccc;
}

.theme-btn-gray {
    background-color: #cfcfcf;
    border: 1px solid #999;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Adjust headings for light themes */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="gray"] h1,
[data-theme="gray"] h2,
[data-theme="gray"] h3 {
    color: #111827;
}

/* Adjust nav links for light themes */
[data-theme="light"] .nav-links a,
[data-theme="gray"] .nav-links a {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .nav-links a:hover,
[data-theme="gray"] .nav-links a:hover {
    color: #000;
}

/* Adjust Logo for light themes */
[data-theme="light"] .logo,
[data-theme="gray"] .logo {
    color: #000;
}

/* Adjust secondary buttons for light themes */
[data-theme="light"] .btn-secondary,
[data-theme="gray"] .btn-secondary {
    border-color: rgba(0, 0, 0, 0.2);
    color: #333;
}

[data-theme="light"] .btn-secondary:hover,
[data-theme="gray"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #000;
}

/* Background Effects */
.noise-overlay {
    display: none;
    /* Removed due to blotchy appearance */
}

.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: drift 20s infinite alternate;
}

.globe-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.globe-2 {
    width: 600px;
    height: 600px;
    background: var(--accent-color);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.globe-3 {
    width: 400px;
    height: 400px;
    background: var(--highlight-color);
    top: 40%;
    left: 40%;
    opacity: 0.2;
    animation: drift 25s infinite alternate-reverse;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 30px);
    }
}

/* Typography & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

.text-gradient {
    background: linear-gradient(135deg, var(--highlight-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-image-container {
    flex: 0 0 auto;
    /* Allow container to fit image size */
}

.profile-img {
    height: 200px;
    /* Fixed height as requested */
    width: auto;
    /* Maintain aspect ratio */
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding 0.3s;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(5, 5, 15, 0.8);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="gray"] .navbar.scrolled {
    background: rgba(240, 240, 240, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
}

.logo .highlight {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.nav-links a:hover {
    color: #fff;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-primary.small {
    padding: 8px 10px;
    font-size: 0.9rem;
}

.btn-primary.large {
    padding: 16px 40px;
    font-size: 1.2rem;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered visually */
    gap: 60px;
    width: 100%;
}

.hero-visual {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    width: 400px;
    position: relative;
}

.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    /* Increased by 20% from 240px */
    height: auto;
    max-height: 200px;
    /* Increased by ~20% */
    opacity: 0;
    transition: opacity 1s ease-in-out;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
    /* Blue shadow */
}

.slide-icon.active {
    opacity: 1;
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--highlight-color);
    border: 1px solid rgba(6, 182, 212, 0.3);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 450;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-visual {
        height: 200px;
        width: 100%;
        order: -1;
    }

    .slide-icon {
        max-height: 120px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .profile-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-image-container {
        margin-bottom: 30px;
    }
}

/* Sections */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Intro/Profile */
.profile-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px;
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
}

.profile-layout {
    display: flex;
    align-items: center;
    /* Vertically center if preferred, or flex-start */
    gap: 40px;
    text-align: left;
    /* Ensure text aligns left against the image */
}

/* Removed quote-icon styles */

.profile-content h2 {
    margin-bottom: 24px;
}

.profile-content p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.8);
}

.bio-text {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
}

/* Feature Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.6);
}

/* Timeline/Curriculum */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--highlight-color));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color);
    z-index: 1;
}

.timeline-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: 16px;
    transition: var(--transition-speed);
}

.timeline-item:hover .timeline-content {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #fff;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* Inline Button Badge for Timeline */
.btn-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9em;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

/* Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-header {
    width: 100%;
    padding: 24px 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-body);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: rgba(255, 255, 255, 0.6);
}

.accordion-item.active .accordion-body {
    padding-bottom: 24px;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.conclusion {
    text-align: center;
    margin-top: 60px;
}

.highlight-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--highlight-color);
}

/* CTA/Survey */
.survey-section {
    padding-bottom: 160px;
}

.cta-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 80px 40px;
    text-align: center;
    backdrop-filter: blur(20px);
}

.cta-box h2 {
    margin-bottom: 24px;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.cta-box .disclaimer {
    font-size: 0.8rem;
    margin-top: 32px;
    color: rgba(255, 255, 255, 0.4);
}

.pulse-effect {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

.font-light {
    font-family: 'Inter', sans-serif;
    font-weight: 200 !important;
}

.footer-logo {
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.footer-signature {
    margin: 24px 0;
    font-family: var(--font-body);
    /* Changed from serif to body font */
    font-style: normal;
    /* Removed italic */
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.copyright {
    font-size: 0.8rem;
}

/* Animations Helpers */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
    transition-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
    transition-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    /* Simplified for mobile */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px;
    }
}

/* Light/Gray Theme High Contrast Overrides */
[data-theme="light"] .hero-subtitle,
[data-theme="gray"] .hero-subtitle,
[data-theme="light"] .section-header p,
[data-theme="gray"] .section-header p,
[data-theme="light"] .timeline-content p,
[data-theme="gray"] .timeline-content p,
[data-theme="light"] .accordion-body,
[data-theme="gray"] .accordion-body,
[data-theme="light"] .feature-card p,
[data-theme="gray"] .feature-card p,
[data-theme="light"] .profile-content p,
[data-theme="gray"] .profile-content p,
[data-theme="light"] .bio-text,
[data-theme="gray"] .bio-text {
    color: #4b5563;
    /* Darker gray for better readability */
    font-weight: 500;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="gray"] h1,
[data-theme="gray"] h2,
[data-theme="gray"] h3 {
    color: #111827 !important;
    /* Force nearly black */
}

[data-theme="light"] .intro-section .bio-text,
[data-theme="gray"] .intro-section .bio-text {
    border-top-color: rgba(0, 0, 0, 0.1);
    color: #4b5563 !important;
}

[data-theme="light"] .timeline-content h3,
[data-theme="gray"] .timeline-content h3 {
    color: #000;
    font-weight: 700;
}

[data-theme="light"] .accordion-header,
[data-theme="gray"] .accordion-header {
    color: #111827;
    font-weight: 600;
}

[data-theme="light"] .nav-links a,
[data-theme="gray"] .nav-links a {
    color: #374151;
    /* Dark gray for menu */
    font-weight: 600;
}

[data-theme="light"] .nav-links a:hover,
[data-theme="gray"] .nav-links a:hover {
    color: #000;
}

/* Ensure Logo is black */
[data-theme="light"] .logo,
[data-theme="gray"] .logo {
    color: #000;
}

/* Feature card text specifically */
[data-theme="light"] .feature-card h3,
[data-theme="gray"] .feature-card h3 {
    color: #000;
}

/* Footer visibility */
[data-theme="light"] .footer p,
[data-theme="gray"] .footer p,
[data-theme="light"] .footer-signature,
[data-theme="gray"] .footer-signature {
    color: #4b5563;
}

[data-theme="light"] .footer-logo,
[data-theme="gray"] .footer-logo {
    color: #111827;
}

/* Hero Badge visibility */
[data-theme="light"] .badge,
[data-theme="gray"] .badge {
    background: rgba(6, 182, 212, 0.15);
    color: #0e7490;
    /* Darker cyan */
    border-color: rgba(6, 182, 212, 0.4);
    font-weight: 600;
}

/* Survey Box Contrast */
[data-theme="light"] .cta-box p,
[data-theme="gray"] .cta-box p {
    color: #374151;
    /* Dark gray */
    font-weight: 500;
}

[data-theme="light"] .cta-box h2,
[data-theme="gray"] .cta-box h2 {
    color: #111827;
}

[data-theme="light"] .cta-box .disclaimer,
[data-theme="gray"] .cta-box .disclaimer {
    color: #4b5563;
    /* Readable disclaimer gray */
}

/* Hide or adjust globes in light mode if too bright? */
[data-theme="light"] .globe,
[data-theme="gray"] .globe {
    opacity: 0.15;
    filter: blur(100px);
}

[data-theme="gray"] .globe {
    opacity: 0.1;
}

[data-theme="light"] .noise-overlay,
[data-theme="gray"] .noise-overlay {
    opacity: 0.03;
    mix-blend-mode: multiply;
}

[data-theme="light"] .btn-primary,
[data-theme="gray"] .btn-primary {
    color: #ffffff !important;
}

/* Survey Page Styles */
.survey-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px;
    max-width: 700px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
}

.survey-header-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.survey-header-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.survey-header-icon i {
    width: 32px;
    height: 32px;
}

.survey-header-row h2 {
    font-size: 1.6rem;
    line-height: 1.4;
    margin: 0;
    color: #fff;
    text-align: left;
}

.survey-header p {
    color: rgba(255, 255, 255, 0.7);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.required {
    color: var(--highlight-color);
}

.form-input {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition-speed);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 40px 0;
}

.agreement-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.agreement-item {
    margin-bottom: 24px;
}

.agreement-details {
    margin-left: 34px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.1);
    padding: 12px;
    border-radius: 8px;
}

/* Custom Checkbox */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 34px;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
    color: rgba(255, 255, 255, 0.9);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: var(--transition-speed);
}

.checkbox-container:hover input~.checkmark {
    background-color: rgba(255, 255, 255, 0.2);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.full-width {
    width: 100%;
    justify-content: center;
}

.spin {
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Light Theme Overrides for Survey */
[data-theme="light"] .survey-header h2,
[data-theme="gray"] .survey-header h2,
[data-theme="light"] .agreement-section h3,
[data-theme="gray"] .agreement-section h3 {
    color: #111827;
}

[data-theme="light"] .survey-header p,
[data-theme="gray"] .survey-header p,
[data-theme="light"] .form-group label,
[data-theme="gray"] .form-group label,
[data-theme="light"] .checkbox-container,
[data-theme="gray"] .checkbox-container {
    color: #374151;
}

[data-theme="light"] .form-input,
[data-theme="gray"] .form-input {
    background: #fff;
    border-color: #cbd5e1;
    color: #111827;
}

[data-theme="light"] .form-input:focus,
[data-theme="gray"] .form-input:focus {
    background: #fff;
}

[data-theme="light"] .form-hint,
[data-theme="gray"] .form-hint,
[data-theme="light"] .agreement-details,
[data-theme="gray"] .agreement-details {
    color: #6b7280;
    background: rgba(0, 0, 0, 0.03);
    /* Slight grey bg for details in light mode */
}

[data-theme="light"] .checkmark,
[data-theme="gray"] .checkmark {
    background-color: #fff;
    border-color: #cbd5e1;
}

[data-theme="light"] .checkbox-container:hover input~.checkmark,
[data-theme="gray"] .checkbox-container:hover input~.checkmark {
    background-color: #f1f5f9;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.radio-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 34px;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition-speed);
}

.radio-container:hover {
    color: #fff;
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition-speed);
}

.radio-container:hover input~.radio-checkmark {
    border-color: var(--primary-color);
}

.radio-container input:checked~.radio-checkmark {
    border-color: var(--primary-color);
    background-color: transparent;
}

.radio-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
}

.radio-container input:checked~.radio-checkmark:after {
    display: block;
}

/* Checkbox Group Styling */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

/* Agreement Details Box */
.agreement-details-box {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.agreement-details-box p {
    margin-bottom: 4px;
}

.agreement-details-box p:last-child {
    margin-bottom: 0;
}

/* Light Theme Overrides for Radio and Agreement Box */
[data-theme="light"] .radio-container,
[data-theme="gray"] .radio-container {
    color: #374151;
}

[data-theme="light"] .radio-container:hover,
[data-theme="gray"] .radio-container:hover {
    color: #111827;
}

[data-theme="light"] .radio-checkmark,
[data-theme="gray"] .radio-checkmark {
    background-color: #fff;
    border-color: #cbd5e1;
}

[data-theme="light"] .agreement-details-box,
[data-theme="gray"] .agreement-details-box {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #4b5563;
}

/* Grid Table for Ranking */
.grid-table {
    margin-top: 16px;
    overflow-x: auto;
}

.grid-header,
.grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 50:50 ratio */
    gap: 8px;
    align-items: center;
    padding: 12px 0;
}

.grid-header>.grid-label,
.grid-row>.grid-label {
    flex: 1;
}

/* Nested grid for ranking columns */
.grid-header>.grid-col:first-of-type,
.grid-row>.grid-col:first-of-type {
    grid-column: 2;
}

.grid-header {
    display: grid;
    grid-template-columns: 1fr repeat(5, 50px);
    /* Label flexible, 5 cols fixed narrow */
    gap: 2px;
    font-weight: 600;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.grid-row {
    display: grid;
    grid-template-columns: 1fr repeat(5, 50px);
    /* Label flexible, 5 cols fixed narrow */
    gap: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.grid-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.grid-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    padding-right: 16px;
}

.grid-col {
    text-align: center;
}

.grid-col input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* Inline Input for "기타" option */
.other-option {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.inline-input {
    width: auto;
    flex: 1;
    min-width: 150px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* Light Theme Overrides for Grid */
[data-theme="light"] .grid-header,
[data-theme="gray"] .grid-header {
    color: #6b7280;
    border-bottom-color: #e5e7eb;
}

[data-theme="light"] .grid-row,
[data-theme="gray"] .grid-row {
    border-bottom-color: #f3f4f6;
}

[data-theme="light"] .grid-row:hover,
[data-theme="gray"] .grid-row:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .grid-label,
[data-theme="gray"] .grid-label {
    color: #374151;
}

/* Survey Closing Message */
.survey-closing {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.survey-closing p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

[data-theme="light"] .survey-closing,
[data-theme="gray"] .survey-closing {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .survey-closing p,
[data-theme="gray"] .survey-closing p {
    color: #374151;
}

/* Consent Details - Small Text Box */
.consent-details {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

[data-theme="light"] .consent-details,
[data-theme="gray"] .consent-details {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.7);
}

.consent-details p {
    margin-bottom: 8px;
}

.consent-details ol {
    margin-left: 20px;
    margin-bottom: 12px;
    list-style-type: decimal;
}

.consent-details li {
    margin-bottom: 4px;
}

.highlight-info {
    color: var(--highlight-color);
    font-weight: 500;
    margin-top: 8px;
    font-size: 0.9rem;
}

[data-theme="light"] .highlight-info,
[data-theme="gray"] .highlight-info {
    color: var(--primary-color);
}

.consent-warning {
    display: block;
    margin-top: 6px;
    margin-left: 34px;
    /* Align with checkbox label text */
    font-size: 0.85rem;
    color: #ef4444;
    font-weight: 500;
}