:root {
    --primary-color: #AF8C53;
    --secondary-color: #3D3A2A;
    --background-color: #F8F5F0;
    --card-background: #FFFFFF;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
    position: relative;
    overflow-x: hidden;
}

.bg-decoration { 
    display: none; 
}

.quiz-container {
    width: 100%;
    max-width: 600px;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    position: relative;
    z-index: 1;
    margin: 10px 0;
}

.site-header, .site-footer {
    width: 100%;
    max-width: 600px;
    padding: 10px 0;
    text-align: center;
    z-index: 2;
}

.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.site-header img { 
    max-height: 60px; 
    width: auto; 
}

.site-footer { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 8px; 
}

.site-footer p { 
    margin: 0; 
    font-size: 0.85rem; 
    color: #666; 
    font-weight: 500; 
}

.made-in { 
    font-size: 0.7rem; 
    font-weight: 400; 
    color: #999; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.site-footer img { 
    max-height: 40px; 
    width: auto; 
    opacity: 0.8; 
}

.screen, .question-block {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeIn 0.6s ease-in-out;
}

.screen.active, .question-block.active { 
    display: flex; 
}

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

h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    padding: 0 5px;
}

h2 { 
    font-size: 1.2rem; 
    font-weight: 600; 
    margin-bottom: 20px; 
    width: 100%;
    line-height: 1.4;
    padding: 0 5px;
}

h2 span { 
    display: block; 
    font-size: 0.75rem; 
    font-weight: 300; 
    color: #888; 
    margin-bottom: 8px; 
}

p { 
    font-size: 0.95rem; 
    line-height: 1.6; 
    margin-bottom: 20px;
    padding: 0 5px;
}

.btn-primary, .btn-secondary, .option-btn {
    width: 100%; 
    padding: 14px; 
    border-radius: var(--border-radius); 
    border: none;
    cursor: pointer; 
    font-size: 0.95rem; 
    font-weight: 600; 
    transition: all 0.3s ease;
    text-align: center; 
    text-decoration: none;
}

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

.btn-primary:hover { 
    background-color: #967543; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled { 
    background-color: #ccc; 
    cursor: not-allowed; 
    transform: none; 
    box-shadow: none; 
}

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

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

.options { 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}

.option-btn {
    background-color: #F9F9F9; 
    color: var(--secondary-color); 
    text-align: left;
    display: flex; 
    flex-direction: column; 
    border: 2px solid #EEE; 
    padding: 14px;
    min-height: auto;
}

.option-btn strong { 
    font-weight: 600; 
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.option-btn span { 
    font-weight: 300; 
    font-size: 0.85rem; 
    line-height: 1.5;
    color: #666;
}

.option-btn:hover { 
    border-color: var(--primary-color); 
    background-color: #fdfaf5; 
    transform: scale(1.01); 
}

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

#result-screen h2 { 
    font-size: 1.15rem; 
    margin-bottom: 8px; 
    color: #555; 
    font-weight: 400;
    line-height: 1.4;
}

#result-screen .solution-title { 
    margin-bottom: 5px; 
    font-size: 0.9rem; 
}

#result-screen h3 { 
    font-size: 1.7rem; 
    font-weight: 700; 
    color: var(--primary-color); 
    margin-bottom: 15px; 
}

#result-image { 
    max-width: 100%; 
    height: auto; 
    width: 100%;
    max-width: 280px;
    border-radius: var(--border-radius); 
    margin-bottom: 15px; 
    box-shadow: var(--box-shadow); 
}

#result-objective { 
    font-size: 0.95rem; 
    font-weight: 400; 
    max-width: 95%;
    line-height: 1.6;
}

.result-buttons { 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    margin-top: 15px; 
}

#lead-form, .form-group, .form-group-checkbox { 
    width: 100%; 
}

#lead-form { 
    display: flex; 
    flex-direction: column; 
    gap: 14px; 
}

.form-group { 
    text-align: left; 
}

.form-group label { 
    display: block; 
    margin-bottom: 6px; 
    font-weight: 600; 
    font-size: 0.85rem; 
}

.form-group input { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    font-size: 0.95rem; 
    font-family: 'Poppins', sans-serif; 
}

.form-group input:focus { 
    outline: none; 
    border-color: var(--primary-color); 
    box-shadow: 0 0 0 2px rgba(175, 140, 83, 0.2); 
}

.form-group-checkbox { 
    display: flex; 
    align-items: flex-start; 
    text-align: left; 
    gap: 10px; 
    margin-top: 5px; 
    margin-bottom: 12px; 
}

.form-group-checkbox input { 
    margin-top: 4px; 
    width: auto; 
    flex-shrink: 0;
    cursor: pointer;
}

.form-group-checkbox label { 
    font-size: 0.75rem; 
    line-height: 1.5; 
    color: #666; 
}

.form-group-checkbox a { 
    color: var(--primary-color); 
    text-decoration: none; 
}

.form-group-checkbox a:hover { 
    text-decoration: underline; 
}

.form-message { 
    font-size: 0.85rem; 
    color: red; 
    min-height: 20px; 
    margin-bottom: 0; 
}

/* Tablets */
@media (min-width: 768px) {
    body {
        padding: 20px;
    }
    
    .site-header img { 
        max-height: 100px; 
    }
    
    .site-footer img { 
        max-height: 55px; 
    }
    
    .quiz-container { 
        padding: 35px; 
        margin: 15px 0;
    }
    
    h1 { 
        font-size: 2rem; 
    }
    
    h2 { 
        font-size: 1.6rem; 
    }
    
    h2 span {
        font-size: 0.85rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .btn-primary, .btn-secondary, .option-btn {
        font-size: 1rem;
        padding: 15px;
    }
    
    .options { 
        flex-direction: row;
        gap: 15px;
    }
    
    .option-btn strong {
        font-size: 1rem;
    }
    
    .option-btn span {
        font-size: 0.9rem;
    }
    
    .result-buttons { 
        flex-direction: row; 
        justify-content: center; 
        gap: 15px; 
    }
    
    #result-image { 
        width: 320px;
        max-width: 350px;
    }
    
    #result-screen h2 {
        font-size: 1.3rem;
    }
    
    #result-screen h3 {
        font-size: 2rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .site-header img { 
        max-height: 120px; 
    }
    
    .site-footer img { 
        max-height: 60px; 
    }
    
    .quiz-container { 
        padding: 40px; 
    }
    
    h1 { 
        font-size: 2.2rem; 
    }
    
    h2 { 
        font-size: 1.8rem; 
    }
    
    #result-image { 
        width: 350px; 
    }
}

/* Large Desktop with decorations */
@media (min-width: 1300px) {
    .bg-decoration {
        display: block; 
        position: fixed; 
        top: 0; 
        height: 100vh; 
        width: 250px;
        background-size: cover; 
        background-position: center center; 
        z-index: -1;
        opacity: 0.8; 
        pointer-events: none;
    }
    
    .bg-decoration-left { 
        left: 0; 
        background-image: url('images/bg-left.png'); 
    }
    
    .bg-decoration-right { 
        right: 0; 
        background-image: url('images/bg-right.png'); 
    }
}

/* Extra small devices (320px and below) */
@media (max-width: 360px) {
    body {
        padding: 8px;
    }
    
    .quiz-container {
        padding: 15px;
        margin: 8px 0;
    }
    
    h1 {
        font-size: 1.2rem;
    }
    
    h2 {
        font-size: 1.1rem;
    }
    
    .site-header img {
        max-height: 50px;
    }
    
    .btn-primary, .btn-secondary, .option-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .option-btn strong {
        font-size: 0.9rem;
    }
    
    .option-btn span {
        font-size: 0.8rem;
    }
}