:root {
    --primary-color: #cb4f75; /* O rosa/magenta do layout original */
    --hover-color: #b3395c;
    --bg-color: #FFFFFF;
    --text-main: #1C2434;
    --text-muted: #828B9C;
    --btn-bg: #F5F7F9;
    --app-width: 900px;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding-top: 110px;
}

/* HEADER EXACTLY LIKE SCREENSHOT */
.app-header {
    position: absolute;
    top: 0; left: 0; width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: center;
}
.header-content {
    text-align: center;
}
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-color);
    letter-spacing: -1px;
}
.brand-accent {
    background-color: #F1F3F5;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

/* PROGRESS BAR */
.progress-container { width: 100%; height: 4px; background: #eee; margin-top: 15px; }
.progress-bar { height: 100%; background: var(--primary-color); width: 0%; transition: width 0.3s; }

/* CONTAINER PRINCIPAL */
.app-container {
    width: 100%;
    max-width: var(--app-width);
    padding: 20px 20px 80px 20px;
    display: flex;
    flex-direction: column;
}

#quiz-root {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* TYPOGRAPHY OVERALL */
.step-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: #1A2639;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.step-title .highlight { color: var(--primary-color); }
.step-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 40px;
}
.step-question {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #1A2639;
    margin-bottom: 25px;
    line-height: 1.3;
}
.step-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 500;
}
.step-copy {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* SPECIFIC TYPOGRAPHY FOR INFO-TRANSITION (STEP 2 ETC) */
.info-title {
    font-family: var(--font-heading);
    font-size: 1.95rem;
    font-weight: 800;
    color: #1A2639;
    margin-top: 15px;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.info-copy {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 30px auto;
    line-height: 1.5;
}
.img-center {
    width: 100%;
    max-width: 450px;
    border-radius: 20px; /* Bordas bem arredondadas, igual ao print */
    margin: 0 auto 20px auto;
    display: block;
}

/* SPLIT LAYOUT (OPTIONS LEFT / IMAGE RIGHT) */
.layout-split {
    display: flex;
    width: 100%;
    max-width: 850px;
    gap: 40px;
    align-items: center;
    justify-content: center;
}
.layout-options {
    flex: 1;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.layout-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end; 
}
.layout-image img { max-width: 100%; max-height: 450px; object-fit: contain; }

/* BOTOES DAS OPCOES */
.option-btn {
    background: var(--btn-bg);
    border: none;
    border-radius: 12px;
    padding: 22px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1A2639;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}
.option-btn::after {
    content: "→"; color: var(--text-muted); font-size: 1.3rem; font-family: Arial, sans-serif; transition: color 0.2s ease;
}
.option-btn:hover { background: #EAECEF; }
.option-btn:hover::after { color: var(--primary-color); }
.option-btn.selected { background: var(--primary-color); color: white; }
.option-btn.selected::after { color: white; }

/* OPÇÕES ESTILO CARD (COM ICONE) */
.option-btn.has-icon {
    background: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Sombra suave idêntica ao print */
    padding: 18px 24px;
    justify-content: flex-start;
    gap: 20px;
    border: 1px solid #f1f3f5;
}
.option-btn.has-icon::after {
    display: none; /* Tira a seta no botão de icone */
}
.option-btn.has-icon:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08); /* Efeito flutuante */
    transform: translateY(-2px);
    background: #FFFFFF;
}
.opt-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF0F5; /* Fundo rosinha pálido para o icone */
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.opt-image {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}
.opt-text {
    flex: 1; /* Faz o texto ocupar o espaço e empurrar o check-circle pra direita */
    color: #1A2639;
    font-size: 1.15rem;
    font-weight: 700;
}

/* CHECKBOX CIRCLE PARA MULTIPLE CHOICE */
.option-btn.is-multi .check-circle {
    width: 24px;
    height: 24px;
    border: 2px solid #E2E8F0;
    border-radius: 50%;
    margin-left: auto; 
    transition: all 0.2s ease;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.option-btn.is-multi.selected .check-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
}
/* Bolinha interna branca quando selecionado */
.option-btn.is-multi.selected .check-circle::after {
    content: "";
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* TOGGLE PARA ETAPA 7 */
.toggle-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 auto 20px auto;
    width: 100%;
    cursor: pointer;
}
.toggle-switch {
    width: 44px;
    height: 24px;
    background: #E2E8F0;
    border-radius: 20px;
    position: relative;
    transition: background 0.3s;
}
.toggle-switch::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.toggle-row.active .toggle-switch { background: var(--primary-color); }
.toggle-row.active .toggle-switch::after { transform: translateX(20px); }
.toggle-text { font-size: 1.15rem; font-weight: 500; color: #1A2639; }

/* BOTÃO CONTINUAR CTA (IDÊNTICO AO PRINT 2) */
.cta-button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px; /* Raio menor como no screenshot */
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    max-width: 420px;
    transition: background 0.3s ease;
}
.cta-button:hover { background: var(--hover-color); }

/* ANIMATIONS */
.fade-out { opacity: 0; transform: translateY(-10px); transition: all 0.3s; }
.fade-in { opacity: 1; transform: translateY(0); transition: all 0.4s; }

/* FOOTER */
#app-footer { position: absolute; bottom: 20px; left: 0; width: 100%; text-align: center; font-size: 0.8rem; color: var(--text-muted); }
#app-footer a { color: var(--text-muted); text-decoration: underline; }

@media (max-width: 768px) {
    body { padding-top: 110px; }
    .app-container { padding: 10px 15px 30px 15px; }
    .step-title { font-size: 1.8rem; margin-bottom: 10px; }
    .step-question { font-size: 1.25rem; margin-bottom: 15px; }
    .step-desc { margin-bottom: 20px; }
    .layout-split { flex-direction: column; align-items: center; gap: 20px; } 
    .layout-image { width: 100%; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
    .layout-image img { max-height: 400px; width: auto; max-width: 100%; object-fit: contain; }
    .layout-options { width: 100%; gap: 12px; justify-content: center; }
    .option-btn { padding: 14px 16px; font-size: 1rem; }
    .option-btn.has-icon { padding: 12px 16px; gap: 12px; }
    .opt-icon, .opt-image { width: 35px; height: 35px; font-size: 1.1rem; }
    .opt-text { font-size: 1rem; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
