:root {
    --primary-color: #ff6b6b; /* Vermelho vibrante */
    --secondary-color: #4ecdc4; /* Turquesa */
    --accent-color: #ffe66d; /* Amarelo */
    --background-color: #f7f7f7;
    --text-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.quiz-container {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 30px var(--shadow-color);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    animation: fadeIn 0.8s ease-out;
}

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

/* Progress Bar */
.progress-bar-container {
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    transition: width 0.4s ease-in-out;
    border-radius: 4px;
}

/* Quiz Content */
.step {
    display: none;
    animation: slideIn 0.5s ease-out;
}

.step.active {
    display: block;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.question-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 800;
}

.question-subtitle {
    font-size: 1em;
    color: #666;
    margin-bottom: 25px;
    font-weight: 400;
}

/* Options */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-button {
    background-color: #fff;
    border: 2px solid var(--secondary-color);
    color: var(--text-color);
    padding: 15px 20px;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.option-button:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(78, 205, 196, 0.4);
}

.option-button .emoji {
    font-size: 1.5em;
    margin-right: 10px;
}

/* Input Step */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.input-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.input-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
}

.input-info {
    font-size: 0.85em;
    color: #999;
    margin-top: 5px;
}

.continue-button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
    margin-top: 20px;
}

.continue-button:hover {
    background-color: #e65a5a;
    transform: translateY(-2px);
}

/* Final Step - Copy and Button */
.final-step-content {
    text-align: center;
    padding: 20px 0;
}

.final-step-content h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 15px;
    font-weight: 800;
}

.final-step-content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #555;
}

.final-button {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: #fff;
    padding: 20px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.5em;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none; /* Para garantir que o link não tenha sublinhado */
    display: inline-block;
}

.final-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.7);
}

.final-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
    transform: skewX(-30deg);
}

.final-button:hover::before {
    left: 100%;
}

/* Animation for the final button (Pulse) */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(255, 107, 107, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
}

.final-button {
    animation: pulse 2s infinite;
}

/* Footer */
.quiz-footer {
    text-align: center;
    margin-top: 30px;
}

.product-tag {
    font-size: 0.8em;
    color: #aaa;
    font-weight: 400;
}

/* Slider Styles */
.slider-group {
    margin-bottom: 20px;
}

.slider-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.slider-value {
    font-size: 3em;
    font-weight: 800;
    color: var(--primary-color);
}

.slider-unit {
    font-size: 1.2em;
    color: #999;
    font-weight: 600;
}

.slider-input {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 15px;
    cursor: pointer;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.6);
}

.slider-input::-moz-range-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
}

.slider-input::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.6);
}

.slider-info {
    font-size: 0.85em;
    color: #999;
    text-align: center;
    margin-top: 10px;
}

/* Responsiveness */
@media (max-width: 600px) {
    .quiz-container {
        margin: 10px;
        padding: 20px;
        border-radius: 15px;
    }

    .question-title {
        font-size: 1.3em;
    }

    .option-button {
        font-size: 1em;
        padding: 12px 15px;
    }

    .final-button {
        font-size: 1.2em;
        padding: 15px 30px;
    }
}
