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

body {
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.progress-container {
    width: 80%;
    margin: 30px auto;
    background-color: #f0e6ff;
    border-radius: 10px;
    height: 10px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    background: linear-gradient(to right, #FF4155, #9747FF);
    transition: width 0.4s ease-in-out;
}

h1 {
    color: #FFF;
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

h2, h3 {
    color: #332D2F;
    font-size: 32px !important;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-align: left !important;
}

.quiz-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
}

.quiz-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: none;
}

.quiz-section.active {
    display: block;
}

/* Primeira Parte */
.intro-section {
    display: flex;
    gap: 30px;
    align-items: stretch;
}
        
.color-white {
    color: #fff;
}

.p-inicial {
    margin-top: 40px;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.p-inicial-2 {
    margin-top: 40px;
    margin-bottom: 40px;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.intro-block-1 {
    background-image: url('https://22478337.fs1.hubspotusercontent-na1.net/hubfs/22478337/Rectangle.png') !important;
    background-size: cover;         
    background-repeat: no-repeat;  
    background-position: center;  
}

.intro-block-2 {
    background-color: #332D2F !important;
    padding:40px !important;
}
        
.intro-block {
    flex: 1;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 500px;
}

.intro-block:last-child { /* Este se refere ao .intro-block-3 que contém .intro-image */
    flex: 0.7;
    padding: 0;
    background: none;
    display: flex;
    flex-direction: column;
}

.intro-image { /* Este é o container da imagem que você quer esconder */
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex: 1;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
}

.btn {
    background: #FF4155;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 70%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-2 {
    background: #FF4155;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 40%;
}

.btn-2:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Form Section */
.form-section h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #212121;
    border-radius: 24px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* Quiz Questions */
.question-section h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.radio-group {
    margin-bottom: 20px;
}

.radio-option input[type="radio"] {
  height: 0;
  width: 0;
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    background: #e5e5e5;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    background: #e9ecef;
    border-color: #667eea;
}

/* Removido o margin-right e transform do input[type="radio"] que está escondido */
/* .radio-option input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
} */

.radio-option.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Results Section */
.result-section {
    display: flex;
    gap: 40px;
    align-items: stretch;
    min-height: 500px;
}

.result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-subtitle {
    color: #787878;
    font-size: 24px !important;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 20px;
}

.result-title {
    color: #8438C1;
    font-size: 48px !important;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 20px;
}

.result-text {
    color: #332D2F;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; 
    margin-bottom: 40px;
}

.span-text {
    display: flex !important;
    /* justify-content: center !important; /* Removido para alinhamento com o texto geral */
    align-items: center; /* Adicionado para alinhar o ícone com o texto */
    gap: 20px !important;
    margin-bottom: 20px; /* Adicionado para dar espaço */
}

.result-subtext {
    color: #555;
    font-size: 19px;
    font-style: italic;
    font-weight: 400;
    line-height: 120%; 
    margin-bottom: 40px;
    /* Adicionado para remover o flex e centralização explícita */
    display: block; 
    text-align: left; /* Ou o alinhamento que preferir */
}

.result-text2 {
    color: #000;
    font-size: 22px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%; 
    margin-bottom: 20px;
}

.result-image {
    flex: 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 20px;
    min-height: 400px;
}

.result-image img {
    width: 100% !important;
    height: auto; /* Para manter a proporção da imagem */
    max-width: 100%; /* Garante que não ultrapasse o container */
    object-fit: contain; /* Para garantir que toda a imagem seja visível */
}

/* Loading Animation */
.loading {
    display: none;
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================== */
/* RESPONSIVE RULES      */
/* ========================== */
@media (max-width: 768px) {
    .intro-section,
    .result-section {
        flex-direction: column;
        gap: 20px; /* Reduzido o gap para telas menores */
    }

    .quiz-section {
        padding: 20px;
    }

    h1 {
        font-size: 36px; /* h1 reduzido para mobile */
    }

    .intro-block-1,
    .intro-block-2 {
        text-align: center; /* Textos da primeira etapa centralizados */
        padding: 20px; /* Garante padding consistente */
    }
    
    .intro-block { /* Ajustes gerais para intro-block no mobile */
        padding: 20px;
        height: auto; /* Altura automática para se ajustar ao conteúdo */
        min-height: initial; /* Remove min-height se não for necessário */
    }

    .intro-image {
        display: none; /* Div intro-image escondida no mobile */
    }

    .p-inicial {
        font-size: 20px; /* Ajuste opcional do tamanho da fonte */
    }

    .p-inicial-2 {
        font-size: 18px; /* Ajuste opcional do tamanho da fonte */
    }

    .btn,
    .btn-2 {
        width: 100%; /* Botões com 100% de largura no mobile */
        padding: 15px; /* Padding pode ser ajustado se necessário */
    }

    .form-section h2 {
        font-size: 24px; /* Ajuste opcional */
    }

    .question-section h3 {
        font-size: 20px; /* Ajuste opcional */
    }
    
    .radio-option {
        padding: 15px; /* Padding menor para opções de rádio */
    }
    
    .result-title {
        font-size: 32px !important; /* Tamanho do título do resultado ajustado para mobile, mantendo !important se necessário para sobrescrever */
    }

    .result-subtitle {
        font-size: 20px !important; /* Ajuste opcional */
    }
    
    .result-text {
        font-size: 18px; /* Ajuste opcional */
    }

    .result-subtext {
        font-size: 16px; /* Ajuste opcional */
    }

    .result-text2 {
        font-size: 20px; /* Ajuste opcional */
    }

    .span-text {
        flex-direction: column; /* Ícone e texto em coluna para melhor encaixe */
        text-align: center; /* Centraliza o texto abaixo do ícone */
    }
    
    .result-image {
        min-height: 250px; /* Altura mínima menor para a imagem no resultado */
        margin-top: 20px; /* Espaço entre conteúdo e imagem no resultado */
    }
}