:root {
    --brand-red: #d91b1b;
    --brand-dark: #0a192f;
    --brand-gray: #667085;
    --brand-gold: #ffc107;
    --brand-green: #22c55e;
    --dark-blue: #101828;
    --soft-bg: #f9fafb;
    --bg-light: #f4f7f9;
    --glass: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-light);
    font-family: 'Kulim Park', sans-serif;
    color: var(--brand-dark);
    height: 100vh;
    overflow: hidden;
}

.main-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    background: #fff;
    overflow: hidden;
}

.brand-side {
    flex: 1;
    background: var(--dark-blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    height: 100vh;
}

.brand-side::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

.brand-image {
    max-width: 60%;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

.quiz-side {
    flex: 1.2;
    padding: 40px 80px;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: #fff;
}

#quiz-container {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}

.progress-container {
    width: 80px;
    height: 4px;
    background: #eaecf0;
    border-radius: 10px;
    margin-bottom: 25px;
    position: relative;
}

.progress-fill {
    position: absolute;
    height: 100%;
    background: var(--brand-red);
    border-radius: 10px;
    transition: 0.5s ease;
}

.step-label {
    font-size: 12px;
    color: var(--brand-gray);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.quiz-h1 {
    font-size: 18px;
    color: var(--dark-blue);
    margin-bottom: 20px;
    line-height: 1.4;
}

.option-box {
    border: 1.5px solid #eaecf0;
    padding: 10px 15px !important;
    min-height: 75px;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.option-box:hover,
.option-box.selected {
    border-color: var(--brand-green);
    background: #f0fdf4;
}

.radio-dot {
    width: 18px;
    height: 18px;
    border: 2px solid #d0d5dd;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
}

.selected .radio-dot::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--brand-green);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.food-img-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
}

.food-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-input {
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 12px;
    width: 100%;
    margin-bottom: 5px;
}

.btn-premium {
    background: var(--brand-red);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 12px rgba(217, 27, 27, 0.2);
}

.steps,
#success-screen,
#result-screen {
    display: none;
}

.steps.active {
    display: block;
}

#result-screen {
    width: 100%;
    padding: 10px 0;
}

.result-table-container {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #f2f4f7;
    box-shadow: var(--card-shadow);
    margin: 20px 0;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
}

.table-custom th {
    background: #f9fafb;
    padding: 12px;
    font-size: 14px;
    color: var(--brand-gray);
    position: sticky;
    top: 0;
    text-align: left;
}

.table-custom td {
    padding: 12px;
    border-bottom: 1px solid #f2f4f7;
    font-size: 13px;
}

.selection-badge {
    background: #fff1f1;
    color: var(--brand-red);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@media (max-width: 992px) {
    body {
        overflow-y: auto;
        height: auto;
    }
    .main-wrapper {
        flex-direction: column;
        height: auto;
    }
    .brand-side {
        display: none;
    }
    .quiz-side {
        padding: 10px 10px;
        height: auto;
        min-height: 100vh;
        justify-content: flex-start;
    }
}

.option-box input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-dot {
    width: 20px;
    height: 20px;
    min-width: 20px;
    height: 20px;
    border: 2px solid #d0d5dd;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    background-color: #fff;
    transition: all 0.2s ease;
    display: inline-block;
    vertical-align: middle;
}

.option-box:hover .radio-dot {
    border-color: var(--brand-green);
}

.option-box.selected .radio-dot {
    border-color: var(--brand-green);
    background-color: #fff;
}

.radio-dot::after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-green);
    transform: translate(-50%, -50%);
}

.option-box.selected .radio-dot::after {
    display: block;
}

.option-box {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
}

@media (max-width: 768px) {
    .quiz-h1 {
        font-size: 16px;
        margin-bottom: 15px;
        line-height: 1.4;
    }
}

@media (max-width: 576px) {
    .table-custom thead {
        display: none;
    }
    .table-custom tr {
        display: block;
        border: 1px solid #eee;
        border-radius: 10px;
        margin-bottom: 10px;
        padding: 10px;
    }
    .table-custom td {
        display: flex;
        justify-content: space-between;
        border: none;
        padding: 5px 0;
    }
    .table-custom td::before {
        content: attr(data-label);
        font-size: 13px;
    }
}