:root {
    --primary-color: #16a34a;
    --primary-hover: #15803d;
    --background-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-family: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.app-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.quiz-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 10px;
}

.logo-container {
    max-width: 150px;
}

.logo {
    width: 100%;
    height: auto;
    display: block;
}

.progress-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 999px;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(45deg,
            rgba(255, 255, 255, 0.15) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.15) 75%,
            transparent 75%,
            transparent);
    background-size: 1rem 1rem;
    animation: progress-shimmer 1s linear infinite;
    opacity: 0.3;
}

@keyframes progress-shimmer {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 1rem 1rem;
    }
}

.progress-text {
    transform: translateX(20px);
}

to {
    opacity: 1;
    transform: translateX(0);
}
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

.slide-in {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-out {
    animation: slideOutLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-up {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-main);
}

.step-description {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.options-grid.two-columns {
    grid-template-columns: 1fr 1fr;
}

.option-card {
    background-color: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.option-card:hover {
    border-color: var(--primary-color);
    background-color: #f0fdf4;
}

.option-card.selected {
    border-color: var(--primary-color);
    background-color: #f0fdf4;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.option-image {
    width: 100%;
    max-width: 120px;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.option-label {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.text-input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-family: var(--font-family);
    outline: none;
    transition: border-color 0.2s;
}

.text-input:focus {
    border-color: var(--primary-color);
}

.info-image {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.testimonial-card {
    background-color: #f9fafb;
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.testimonial-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.testimonial-text {
    font-style: italic;
    text-align: center;
    color: var(--text-main);
    font-weight: 500;
}

/* Multi-Select Checkbox Styles */
.option-card.checkbox-option {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    position: relative;
}

.option-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.option-checkbox:checked~.checkbox-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-custom::after {
    content: "";
    display: none;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.option-checkbox:checked~.checkbox-custom::after {
    display: block;
}

.option-card.checkbox-option:hover {
    border-color: var(--primary-color);
    background-color: #f0fdf4;
}

.option-card.checkbox-option .option-label {
    flex: 1;
    text-align: left;
    margin-right: 12px;
}

/* Slider Styles - CENTRALIZED */
.slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
    width: 100%;
}

.slider-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.unit {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.unit-toggle {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.unit-btn {
    padding: 8px 20px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.unit-btn:hover {
    border-color: var(--primary-color);
}

.unit-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    max-width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e5e7eb;
    outline: none;
    margin: 16px 0;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.range-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: none;
}

/* Loading Screen */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.loading-bar-bg {
    width: 100%;
    height: 12px;
    background-color: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    background-color: var(--success-color);
    width: 0%;
    transition: width 0.1s linear;
}

.loading-text {
    font-weight: 600;
    color: var(--text-main);
    min-height: 48px;
}

.carousel-container {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.carousel-image {
    width: 100%;
    border-radius: var(--radius-md);
}

/* IMC Analysis Section */
.imc-section {
    margin-bottom: 32px;
}

.imc-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    text-align: center;
}

.imc-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.imc-bar-container {
    position: relative;
    margin-bottom: 50px;
    padding-top: 45px;
}

.imc-bar {
    display: flex;
    height: 50px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.imc-segment {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.7);
}

.imc-segment.underweight {
    background-color: #93c5fd;
}

.imc-segment.normal {
    background-color: #86efac;
}

.imc-segment.overweight {
    background-color: #fde047;
}

.imc-segment.obese {
    background-color: #fca5a5;
}

.imc-indicator {
    position: absolute;
    top: 0;
    left: 55%;
    transform: translateX(-50%);
    background-color: #000;
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
}

.imc-indicator::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #000;
}

.alert-zone-badge {
    position: absolute;
    top: 0;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #d97706;
    background-color: #fef3c7;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 2px solid #fbbf24;
    z-index: 10;
}

/* Alert Blocks */
.diagnosis-blocks {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.alert-block {
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.alert-block.warning {
    background-color: #fefce8;
}

.alert-block.danger {
    background-color: #fef2f2;
}

.alert-block.solution {
    background-color: #eff6ff;
}

.alert-block-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.alert-block-content {
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 12px;
}

.alert-block.solution .alert-block-content {
    color: #1e40af;
}

.warning-signs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.warning-signs-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-main);
    line-height: 1.5;
}

.warning-signs-list li::before {
    content: '✕';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.cta-secondary {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
}

.cta-secondary::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #2563eb;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
}

/* Social Proof */
.social-proof-section {
    margin-bottom: 32px;
}

.social-proof-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 20px;
}

.transformation-photo-single {
    width: 100%;
    margin-bottom: 16px;
}

.transformation-photo-main {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.testimonial-quote {
    font-style: italic;
    text-align: center;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 16px;
    padding: 0 16px;
    font-weight: 500;
}

/* Video Sales */
.video-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    background: #064e3b;
}

.play-button {
    font-size: 3rem;
    margin-top: 10px;
}

.video-options {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-cta-final {
    background-color: #16a34a;
    font-size: 1.2rem;
    padding: 20px;
    text-transform: uppercase;
    box-shadow: 0 10px 15px -3px rgba(22, 163, 74, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* Footer */
.quiz-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: auto;
    padding-bottom: 20px;
}

.secure-badge {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 12px;
    border-radius: 999px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 24px;
    box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.btn-green {
    background-color: #16a34a;
    box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.3);
}

.btn-primary.btn-green:hover {
    background-color: #15803d;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .app-container {
        gap: 16px;
    }

    .quiz-content {
        padding: 24px 16px;
    }

    .step-title {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .step-description {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .slider-value {
        font-size: 2.5rem;
    }

    .imc-title {
        font-size: 1.1rem;
    }

    .imc-value {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }

    .imc-bar-container {
        padding-top: 40px;
        margin-bottom: 40px;
    }

    .imc-bar {
        height: 45px;
    }

    .imc-segment {
        font-size: 0.7rem;
    }

    .imc-indicator {
        font-size: 0.75rem;
        padding: 6px 10px;
        left: 50%;
    }

    .alert-zone-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
        right: 2%;
    }

    .alert-block {
        padding: 16px;
    }

    .alert-block-title {
        font-size: 1rem;
        flex-wrap: wrap;
    }

    .alert-block-content {
        font-size: 0.95rem;
    }

    .warning-signs-list li {
        font-size: 0.9rem;
    }

    .social-proof-title {
        font-size: 1.1rem;
    }

    .option-card {
        padding: 14px;
    }

    .option-label {
        font-size: 1rem;
    }

    .testimonial-quote {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .imc-indicator {
        top: -5px;
        font-size: 0.7rem;
        padding: 5px 8px;
    }

    .imc-indicator::after {
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid #000;
        bottom: -6px;
    }

    .alert-zone-badge {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 10px;
        display: inline-flex;
    }

    .btn-cta-final {
        background-color: #16a34a;
        font-size: 1.2rem;
        padding: 20px;
        text-transform: uppercase;
        box-shadow: 0 10px 15px -3px rgba(22, 163, 74, 0.4);
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.02);
        }

        100% {
            transform: scale(1);
        }
    }

    /* Footer */
    .quiz-footer {
        text-align: center;
        color: var(--text-secondary);
        font-size: 0.875rem;
        margin-top: auto;
        padding-bottom: 20px;
    }

    .secure-badge {
        margin-top: 8px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.75rem;
        background: #e0f2fe;
        color: #0369a1;
        padding: 4px 12px;
        border-radius: 999px;
    }

    /* Buttons */
    .btn-primary {
        background-color: var(--primary-color);
        color: white;
        border: none;
        padding: 14px 32px;
        border-radius: 999px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        width: 100%;
        margin-top: 24px;
        box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.2);
    }

    .btn-primary:hover {
        background-color: var(--primary-hover);
        transform: translateY(-1px);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

    .btn-primary.btn-green {
        background-color: #16a34a;
        box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.3);
    }

    .btn-primary.btn-green:hover {
        background-color: #15803d;
    }

    /* Responsive - Mobile */
    @media (max-width: 768px) {
        body {
            padding: 10px;
        }

        .app-container {
            gap: 16px;
        }

        .quiz-content {
            padding: 24px 16px;
        }

        .step-title {
            font-size: 1.25rem;
            line-height: 1.3;
        }

        .step-description {
            font-size: 0.95rem;
            margin-bottom: 24px;
        }

        .slider-value {
            font-size: 2.5rem;
        }

        .imc-title {
            font-size: 1.1rem;
        }

        .imc-value {
            font-size: 1.3rem;
            margin-bottom: 30px;
        }

        .imc-bar-container {
            padding-top: 40px;
            margin-bottom: 40px;
        }

        .imc-bar {
            height: 45px;
        }

        .imc-segment {
            font-size: 0.7rem;
        }

        .imc-indicator {
            font-size: 0.75rem;
            padding: 6px 10px;
            left: 50%;
        }

        .alert-zone-badge {
            font-size: 0.7rem;
            padding: 4px 8px;
            right: 2%;
        }

        .alert-block {
            padding: 16px;
        }

        .alert-block-title {
            font-size: 1rem;
            flex-wrap: wrap;
        }

        .alert-block-content {
            font-size: 0.95rem;
        }

        .warning-signs-list li {
            font-size: 0.9rem;
        }

        .social-proof-title {
            font-size: 1.1rem;
        }

        .option-card {
            padding: 14px;
        }

        .option-label {
            font-size: 1rem;
        }

        .testimonial-quote {
            font-size: 0.95rem;
        }
    }

    @media (max-width: 480px) {
        .imc-indicator {
            top: -5px;
            font-size: 0.7rem;
            padding: 5px 8px;
        }

        .imc-indicator::after {
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-top: 6px solid #000;
            bottom: -6px;
        }

        .alert-zone-badge {
            position: relative;
            top: auto;
            right: auto;
            margin-bottom: 10px;
            display: inline-flex;
        }

        .imc-bar-container {
            padding-top: 10px;
        }
    }

    /* Full width video container - DISABLED */
    .video-container {
        /* margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px); */
    }

    /* Remove padding from quiz-content when it contains video */
    .quiz-content:has(.video-container) {
        padding: 32px 24px;
    }

    /* Add padding to title and description in video step */
    .quiz-content:has(.video-container) .step-title,
    .quiz-content:has(.video-container) .step-description {
        padding-left: 0;
        padding-right: 0;
    }

    /* Center button below video */
    .quiz-content:has(.video-container) .btn-cta-final {
        margin: 24px auto;
        display: block;
    }

    /* Fixed dimensions for video container - FORCE 348x618 */
    .video-container>div {
        width: 348px !important;
        height: 618px !important;
        max-width: 348px !important;
        max-height: 618px !important;
        margin: 0 auto !important;
    }
/* Video container fixed dimensions */
.video-container > div {
    width: 348px !important;
    height: 618px !important;
    margin: 0 auto !important;
}

/* Video wrapper should not block clicks */
.video-wrapper {
    position: relative;
    pointer-events: auto;
}

.video-wrapper * {
    pointer-events: auto;
}
