:root {
    --primary-color: #00a36a;
    --primary-dark: #008f5d;
    --primary-light: #e6f6f0;
    --text-color: #2d2d33;
    --bg-color: #ffffff;
    --bg-soft: #f8f9fa;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-glow: 0 0 20px rgba(0, 163, 106, 0.2);
    --radius-lg: 1rem;
    --radius-full: 9999px;
    --font-main: 'Montserrat', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-soft);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Decor */
.background-decor-1, .background-decor-2 {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}
.background-decor-1 {
    width: 300px;
    height: 300px;
    background: rgba(0, 163, 106, 0.15);
    top: -50px;
    right: -50px;
    animation: float 10s infinite ease-in-out;
}
.background-decor-2 {
    width: 400px;
    height: 400px;
    background: rgba(0, 163, 255, 0.05);
    bottom: -100px;
    left: -100px;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 40px); }
}

.app-container {
    width: 100%;
    max-width: 480px; /* Mobile optimal width */
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    position: relative;
}

@media (min-width: 481px) {
    .app-container {
        min-height: 90vh;
        margin-top: 5vh;
        margin-bottom: 5vh;
        border-radius: 2rem;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.5);
    }
}

/* Header */
.app-header {
    padding: 1.5rem;
    text-align: center;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: var(--radius-full);
}

/* Main Content */
.content-area {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Typography */
h1 {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-weight: 500;
    font-size: 1rem;
}

/* Cards/Options */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.option-card {
    background: white;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.option-card:hover { /* Desktop hover */
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.option-card:active {
    transform: scale(0.98);
}

.option-card.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: var(--shadow-glow);
}

.option-img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    background: #eee;
}

.option-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button */
.cta-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 163, 106, 0.4);
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1rem;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 163, 106, 0.5);
}

.cta-button:active {
    transform: translateY(0);
}

/* Loading State */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--primary-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-weight: 600;
    color: var(--text-color);
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Result Page */
.result-container {
    text-align: center;
}
.result-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.result-desc {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #555;
}

/* Utility to hide/show */
.hidden { display: none; }
