:root {
    --primary: #FFDD00;
    --primary-dark: #E6C700;
    --secondary: #000000;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --bg-light: #F8F9FA;
    --bg-gradient: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
    --white: #FFFFFF;
    --error: #FF3B30;
    --success: #34C759;
    --warning: #FF9500;

    --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.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background: var(--bg-gradient);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

.logo-container {
    display: inline-block;
    transition: var(--transition);
}

.logo-container:hover {
    transform: scale(1.03);
}

.logo-img {
    height: 120px;
    /* Adjusted size */
    width: auto;
    object-fit: contain;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-up {
    animation: fadeInUp 0.6s forwards;
}

.animate-in {
    animation: fadeIn 0.4s forwards;
}

/* Screen visibility */
.screen {
    display: none;
}

.screen.active {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease-out;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    border: none;
    text-decoration: none;
    gap: 10px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Cards & Forms */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #EDEDED;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: #FDFDFD;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 221, 0, 0.15);
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-item {
    flex: 1;
}

.radio-item input {
    display: none;
}

.radio-item label {
    display: block;
    padding: 12px;
    text-align: center;
    border: 1.5px solid #E0E0E0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    margin: 0;
}

.radio-item input:checked+label {
    border-color: var(--primary);
    background-color: rgba(255, 221, 0, 0.05);
    font-weight: 700;
}

/* Brands Slider */
.brands-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 10px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.brands-track {
    display: flex;
    width: fit-content;
    animation: scrollBrands 15s linear infinite;
    gap: 40px;
    align-items: center;
    padding-left: 20px;
    /* Start offset */
}

.brand-item {
    flex-shrink: 0;
    width: 80px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
}

.brand-item span {
    font-weight: 800;
    font-size: 1.1rem;
    color: #999;
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Assuming the content is doubled */
}

/* Product Label Box */
.product-label-box {
    background: #f4f4f4;
    color: #333;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border-left: 4px solid var(--primary);
    font-size: 0.95rem;
}

/* Result Styles */
.result-header {
    border-bottom: 1px solid #EEE;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.summary-item.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #EEE;
    font-weight: 700;
    font-size: 1.2rem;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-low {
    background: #E8F5E9;
    color: #2E7D32;
}

.badge-medium {
    background: #FFF3E0;
    color: #EF6C00;
}

.badge-high {
    background: #FFEBEE;
    color: #C62828;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 20px;
    font-style: italic;
}

.whatsapp-link {
    background-color: #25D366;
    color: white;
}

.whatsapp-link:hover {
    background-color: #128C7E;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }

    .card {
        padding: 20px;
    }

    .btn {
        padding: 12px 20px;
    }
}