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

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    min-height: 100vh;
}

.container {
    max-width: 650px;
    margin: 0 auto;
    padding: 20px 20px 120px;
    text-align: center;
}

.header {
    background: linear-gradient(135deg, #d40e28 0%, #b00d23 100%);
    border-bottom: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header img {
    max-width: 200px;
    width: auto;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.titllee {
    text-align: center;
    margin: 30px 0 25px 0;
    padding: 0 20px;
}

.titllee h1 {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.5px;
}

.selecione-resposta {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    max-width: 320px;
    width: 90%;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.selecione-resposta-p {
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    font-size: 16px;
}

.opacity {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #d40e28 0%, #b00d23 100%);
    color: white;
    text-align: center;
    padding: 20px 0;
    z-index: -1;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.content {
    background-color: #ffffff;
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    animation: fadeInUp 0.5s ease-out;
}

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

.quiz-screen {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.btn {
    background: linear-gradient(135deg, #d40e28 0%, #b00d23 100%);
    color: #fff;
    border: none;
    padding: 16px 30px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 600;
    margin-top: 25px;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 15px rgba(212, 14, 40, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 14, 40, 0.4);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.content h2 {
    color: #1a1a1a;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.options {
    margin-top: 30px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.options button {
    display: block;
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.options button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #d40e28;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.options button:hover:not(.selected) {
    border-color: #e0e0e0;
    background-color: #f8f8f8;
    transform: translateX(3px);
}

.options button.selected {
    background: linear-gradient(135deg, rgba(212, 14, 40, 0.1) 0%, rgba(212, 14, 40, 0.05) 100%);
    border-color: #d40e28;
    font-weight: 600;
    color: #d40e28;
    box-shadow: 0 2px 8px rgba(212, 14, 40, 0.15);
}

.options button.selected::before {
    transform: scaleY(1);
}

.options button.selected:hover {
    border-color: #d40e28;
    background: linear-gradient(135deg, rgba(212, 14, 40, 0.15) 0%, rgba(212, 14, 40, 0.08) 100%);
    box-shadow: 0 3px 10px rgba(212, 14, 40, 0.2);
}

.options button:focus {
    outline: none;
    border-color: #e0e0e0;
}

.options button:focus:not(.selected) {
    border-color: #e0e0e0;
    background-color: #ffffff;
}

.options button:active:not(.selected) {
    border-color: #e0e0e0;
    background-color: #f8f8f8;
    transform: scale(0.98);
}

.hidden {
    display: none !important;
}

/* Estilos do formulário */
.lead-form {
    margin-top: 20px;
    text-align: left;
    animation: fadeInUp 0.6s ease-out;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #d40e28;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(212, 14, 40, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #999;
    font-weight: 400;
}

.form-group input:valid {
    border-color: #28a745;
}

.form-error {
    background: linear-gradient(135deg, #fee 0%, #fdd 100%);
    border: 2px solid #f00;
    color: #c00;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
    animation: shake 0.5s ease-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Tela de sucesso */
#success-screen {
    text-align: center;
    padding: 40px 20px;
    animation: fadeInUp 0.6s ease-out;
}

#success-screen::before {
    content: '✓';
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    color: white;
    font-size: 50px;
    line-height: 80px;
    font-weight: bold;
    animation: scaleIn 0.5s ease-out 0.2s both;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#success-screen h2 {
    color: #28a745;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

#success-screen p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Animações adicionais */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.btn:focus {
    outline: 2px solid #d40e28;
    outline-offset: 2px;
}

/* Progress indicator (opcional) */
.progress-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    padding: 0 20px;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: #d40e28;
    width: 30px;
    border-radius: 5px;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 15px 15px 150px;
    }

    .content {
        padding: 30px 20px;
        border-radius: 15px;
        margin-bottom: 180px;
    }

    .titllee {
        margin: 25px 0 20px 0;
    }

    .titllee h1 {
        font-size: 20px;
    }

    .header {
        padding: 20px 0;
    }

    .header img {
        max-width: 160px;
    }

    .btn {
        font-size: 16px;
        padding: 14px 25px;
        border-radius: 10px;
    }

    .options button {
        font-size: 15px;
        padding: 15px 18px;
        border-radius: 10px;
    }

    .content h2 {
        font-size: 22px;
    }

    .form-group input {
        padding: 12px 16px;
        font-size: 16px;
    }

    .lead-form {
        margin-top: 25px;
    }
}

@media (max-width: 480px) {
    .titllee h1 {
        font-size: 18px;
    }

    .content h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    p {
        font-size: 15px;
    }

    .options button {
        padding: 14px 16px;
        font-size: 14px;
    }
}
