/* Estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0c2340;
    color: #333;
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px 30px 50px 30px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #333333;
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #333333;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #e8a44b, #ffffff);
    border-radius: 3px;
}

/* Barra de progresso */
.progress-container {
    width: 100%;
    height: 12px;
    background-color: #eef2f7;
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0c2340, #e8a44b);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 25%; /* Começa com 25% (1 de 4 questões) */
    box-shadow: 0 0 10px rgba(232, 164, 75, 0.5);
}

/* Estilos para as questões */
.question-container {
    position: relative;
    min-height: 400px;
}

.question {
    display: none;
    opacity: 0;
    transition: all 0.4s ease;
    position: relative;
    width: 100%;
    transform: translateY(20px);
}

.question.active {
    opacity: 1;
    transform: translateY(0);
}

.question:first-child {
    display: block;
    opacity: 1;
}

.options {
    margin-bottom: 30px;
}

.option {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.option.full-width input[type="text"],
.option.full-width input[type="tel"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #0c2340;
    border-radius: 8px;
    font-size: 18px;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.option.full-width input[type="text"]:focus,
.option.full-width input[type="tel"]:focus {
    border-color: #e8a44b;
    box-shadow: 0 0 8px rgba(232, 164, 75, 0.5);
    outline: none;
}

.option.full-width {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.option:hover {
    background-color: #f0f7ff;
    border-color: #e8a44b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.option input[type="radio"] {
    display: none;
}

.option label {
    display: block;
    cursor: pointer;
    padding-left: 30px;
    position: relative;
    font-size: 16px;
    color: #333333;
}

.option label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #0c2340;
    border-radius: 50%;
}

input[type="radio"]:checked + label:before {
    background-color: #fff;
    border-color: #e8a44b;
    box-shadow: 0 0 5px rgba(232, 164, 75, 0.5);
}

input[type="radio"]:checked + label:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #e8a44b;
    border-radius: 50%;
}

.option input[type="radio"]:checked + label {
    font-weight: bold;
    color: #e8a44b;
}

.option input[type="radio"]:checked + label:before {
    border-color: #3498db;
}

.option:has(input[type="radio"]:checked) {
    background-color: #f0f7ff;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

/* Botões de navegação */
.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    margin-bottom: 20px;
    position: relative;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.prev-btn {
    background: linear-gradient(to right, #f2f2f2, #e0e0e0);
    color: #333;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.prev-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #e0e0e0, #f2f2f2);
    transition: left 0.3s ease;
    z-index: -1;
}

.prev-btn:hover::before {
    left: 0;
}

.prev-btn:hover {
    background-color: #d0d0d0;
}

.next-btn, .submit-btn {
    background: linear-gradient(to right, #e8a44b, #d89339);
    color: white;
}

.submit-btn {
    background-color: #0c2340;
}

.submit-btn:hover {
    background-color: #0a1c33;
}

/* Tela de agradecimento */
#thank-you {
    text-align: center;
    padding: 20px;
    animation: fadeInScale 0.5s ease-in-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#thank-you h2 {
    color: #e8a44b;
    margin-bottom: 15px;
}

#thank-you p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333333;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
        margin: 10px auto;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .option {
        padding: 12px;
    }
    
    .option label {
        font-size: 15px;
    }
    
    button {
        padding: 10px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    .option {
        padding: 10px;
    }
    
    .option label {
        font-size: 14px;
    }
    
    button {
        padding: 8px 16px;
        font-size: 14px;
    }
}
