:root {
    --primary: #3d2b1f; /* Marrom Profundo Protagonista */
    --accent: #7B9E89;  /* Verde Sálvia Decora */
    --bg-body: #fdfdfd; /* Luxury White */
    --bg-card: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #666;
    --border: #e0e0e0;
}

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

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

.container {
    width: 100%;
    max-width: 550px;
    background: var(--bg-card);
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.03);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.02);
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

h1, h2 { color: var(--primary); margin-bottom: 20px; font-weight: 600; letter-spacing: -0.5px; }
p { line-height: 1.6; margin-bottom: 30px; color: var(--text-muted); font-size: 15px; }

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 15px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(123, 158, 137, 0.3); }

.btn-secondary {
    background: transparent;
    color: #999;
    border: 1.5px solid #eee;
    padding: 18px 40px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-gender {
    background: transparent;
    border: 1.5px solid #eee;
    color: #999;
    padding: 15px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-gender.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(123, 158, 137, 0.05);
}

.input-group { margin-bottom: 25px; text-align: left; }
.input-group label { display: block; font-size: 11px; font-weight: 700; color: #aaa; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
input[type="text"], input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    border: 1.5px solid #f0f0f0;
    background: #fdfdfd;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}
input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 5px 15px rgba(123, 158, 137, 0.05); }

.progress-container {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 45px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-text {
    font-size: 20px;
    font-weight: 400;
    text-align: left;
    margin-bottom: 45px;
    color: var(--primary);
    line-height: 1.4;
}

/* SLIDER CALIBRAÇÃO GOLD (EXATAMENTE I9DECORA) */
.slider-container {
    width: 100%;
    max-width: 620px; 
    margin: 40px auto 0;
    padding: 35px 25px;
    text-align: center;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    position: relative;
}

.slider {
    width: calc(100% - 86px);
    margin: 10px auto;
    display: block;
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    background: #f0f0f0;
    outline: none;
    border-radius: 10px;
    opacity: 1;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06), 0 1px 0 rgba(255,255,255,0.5);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #444, #1a1a1a);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 3px solid #fff;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: -6px;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.labels { 
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    justify-items: center;
    width: 100%; 
    margin: 10px auto;
    color: #1a1a1a;
    box-sizing: border-box;
    font-weight: 500;
}

.bottom-labels div {
    text-align: center;
    line-height: 1.1;
    font-size: 0.85em;
}

.top-labels { font-size: 0.85em; font-weight: bold; }

.label-1, .label-5 {
    font-weight: 700;
    color: #1a1a1a;
}

/* RESPONSIVIDADE MOBILE SLIDER (EXATAMENTE I9DECORA) */
@media (max-width: 600px) {
    .slider-container {
        padding: 15px 5px;
    }

    .slider {
        width: calc(100% - 34px);
        margin: 10px 17px;
        display: block;
        -webkit-appearance: none;
        appearance: none;
        height: 10px;
        background: #f0f0f0;
        outline: none;
        border-radius: 10px;
        opacity: 1;
        cursor: pointer;
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.06), 0 1px 0 rgba(255,255,255,0.5);
    }

    .slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: radial-gradient(circle at 30% 30%, #444, #1a1a1a);
        cursor: pointer;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        border: 3px solid #fff;
        transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        margin-top: -3px;
    }

    .labels {
        width: 100%;
        font-size: 0.65em;
        margin-top: 16px;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
        justify-items: center;
        padding: 0;
        box-sizing: border-box;
    }

    .labels div {
        text-align: center;
        flex: 1;
        line-height: 1.25;
        padding: 0 2px;
        min-width: 0;
        word-break: break-word;
    }
}

.botoes {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.btn {
    padding: 18px 45px;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.nav-buttons {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 15px;
    margin-top: 30px;
}

.loading { font-style: italic; color: var(--accent); font-weight: 600; }
.error-box { padding: 30px; background: rgba(231, 76, 60, 0.05); border-radius: 20px; border: 1px dashed #e74c3c; color: #e74c3c; }

/* TOAST */
#toast { visibility: hidden; min-width: 250px; background: #fff; color: var(--accent); border: 1px solid var(--accent); text-align: center; border-radius: 15px; padding: 20px; position: fixed; z-index: 100; left: 50%; bottom: 30px; transform: translateX(-50%); box-shadow: 0 10px 30px rgba(0,0,0,0.1); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
#toast.show { visibility: visible; animation: fadeinToast 0.5s, fadeoutToast 0.5s 2.5s; }

@keyframes fadeinToast { from {bottom: 0; opacity: 0;} to {bottom: 30px; opacity: 1;} }
@keyframes fadeoutToast { from {bottom: 30px; opacity: 1;} to {bottom: 0; opacity: 0;} }

@media (max-width: 480px) {
    .container { padding: 40px 25px; border-radius: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
    .question-text { font-size: 18px; }
    .slider-labels.bottom { font-size: 8px; }
}
