:root {
    --primary-blue: #006eb9;
    --primary-red: #fd0000;
    --bg-gradient: linear-gradient(135deg, #f0f4f8, #e2e8f0);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --text-main: #2d3748;
    --text-muted: #718096;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.app-header {
    text-align: center;
    margin-bottom: 20px;
}

.logo-img {
    max-width: 250px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.card.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

h1, h2 {
    margin-bottom: 15px;
    color: var(--primary-blue);
}

p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Sections visibility */
.screen {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
}

.btn-primary:hover {
    background-color: #d10000;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* ProgressBar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #edf2f7;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

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

.category-badge {
    display: inline-block;
    background-color: #e2e8f0;
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.question-title {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 30px;
}

/* Options */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    padding: 15px;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.option-btn:hover {
    border-color: var(--primary-blue);
    background-color: rgba(0, 110, 185, 0.05);
}

.option-btn:active {
    transform: scale(0.98);
}

/* Segmentation Options */
.segment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.segment-btn {
    text-align: left;
    width: 100%;
    padding: 16px 20px;
}

.segment-btn:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* Lead Form */
.input-field {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 15px;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 110, 185, 0.2);
}

.error-msg {
    color: var(--primary-red);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Chart Container */
.chart-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 1; /* Keep it square */
}

/* Responsive */
@media (max-width: 480px) {
    .card.glass { padding: 25px 20px; }
    .logo { font-size: 1.8rem; }
    .question-title { font-size: 1.2rem; }
}
