/* Importa as fontes Montserrat e Open Sans do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;600&display=swap');

/* Variáveis de Cores e Estilos para fácil manutenção */
:root {
    --primary-color: #4CAF50;    /* Verde Vibrante e Energético */
    --primary-dark: #388E3C;     /* Verde mais escuro para hover */
    --secondary-color: #FFC107;  /* Amarelo para destaque e energia */
    --text-dark: #333333;        /* Preto quase puro para títulos */
    --text-medium: #555555;      /* Cinza escuro para corpo de texto */
    --text-light: #777777;       /* Cinza médio para textos secundários */
    --background-light: #F8F9FA; /* Fundo branco suave */
    --white: #ffffff;
    --border-color: #E0E0E0;     /* Borda clara */
    --shadow-light: rgba(0, 0, 0, 0.08); /* Sombra suave */
    --shadow-medium: rgba(0, 0, 0, 0.15); /* Sombra um pouco mais forte */

    /* Cores para os perfis (gradiente) */
    --profile-iniciante: #FF6F61; /* Coral */
    --profile-progresso: #FFD700; /* Dourado */
    --profile-avancado: #4CAF50;  /* Verde Primário */
}

/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3e2d5 100%);
    min-height: 100vh;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

.container {
    max-width: 900px; /* Aumentado para mais espaço */
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alinha ao topo para mais fluidez */
    align-items: center;
}

/* Logo */
.logo {
    margin-top: 20px;
    margin-bottom: 40px; /* Mais espaço abaixo do logo */
}

.logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem; /* Aumentado */
    font-weight: 700;
    color: var(--primary-color); /* Logo com a cor primária */
    text-align: center;
    letter-spacing: -0.5px;
}

/* Telas */
.screen {
    display: none;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out; /* Transição mais suave */
}

.screen.active {
    display: block;
    opacity: 1;
}

/* --- Tela Inicial (Hero Section) --- */
.hero-content {
    text-align: center;
    max-width: 700px; /* Aumentado para mais espaço */
    padding: 40px;
}

.hero-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem; /* Aumentado para destaque */
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem; /* Aumentado */
    color: var(--text-medium);
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* Ilustração hero */
.hero-illustration {
    position: relative;
    width: 100%;
    height: 380px; /* Altura ajustada */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    overflow: hidden; /* Garante que decorações não vazem */
}

.product-image {
    max-width: 90%;
    height: auto;
    max-height: 400px;
    border-radius: 20px; /* Mais arredondado */
    z-index: 1;
    position: relative;
}

/* Decorações - Ícones mais simples ou formas geométricas */
.decoration {
    position: absolute;
    font-size: 3rem; /* Aumentado */
    color: var(--secondary-color); /* Cor de destaque */
    opacity: 0.6;
    animation: float 5s ease-in-out infinite;
    filter: blur(0.8px); /* Um leve blur para suavizar */
}
.decoration-1 { top: 15%; left: 10%; animation-delay: 0s; transform: rotate(15deg); }
.decoration-2 { top: 25%; right: 12%; animation-delay: 1.5s; transform: rotate(-20deg); }
.decoration-3 { bottom: 20%; left: 8%; animation-delay: 2.5s; transform: rotate(5deg); }
.decoration-4 { bottom: 15%; right: 8%; animation-delay: 1s; transform: rotate(-10deg); }
.decoration-5 { top: 5%; right: 30%; animation-delay: 3s; }
.decoration-6 { bottom: 5%; left: 30%; animation-delay: 0.5s; }


/* Substituindo emojis por ícones reais ou svg. No HTML, usaremos <span> com classes */
/* Aqui você pode usar Font Awesome ou ícones SVG. Para simplificar, vou usar textos ou formas. */
.decoration-1::before { content: '🌱'; } /* Folha */
.decoration-2::before { content: '✨'; } /* Brilho */
.decoration-3::before { content: '💧'; } /* Gota */
.decoration-4::before { content: '⚡'; } /* Raio */
.decoration-5::before { content: '🧡'; } /* Coração */
.decoration-6::before { content: '🍎'; } /* Maçã */


@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); } /* Movimento mais perceptível */
}

/* Botões Modernizados */
.start-button, .cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 18px 45px; /* Aumentado */
    font-size: 1.2rem; /* Aumentado */
    font-weight: 600;
    border-radius: 50px; /* Pill shape */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3); /* Sombra da cor primária */
    text-transform: uppercase; /* Mais impactante */
    letter-spacing: 0.5px;
}

.start-button:hover, .cta-button:hover {
    transform: translateY(-5px); /* Efeito "flutuante" */
    background-color: var(--primary-dark);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.4);
}

/* --- Barra de Progresso Melhorada --- */
.progress-container {
    width: 100%;
    max-width: 600px; /* Largura controlada */
    margin: 20px auto 30px auto; /* Centralizado e mais espaçado */
    text-align: center;
}

.progress-info {
    font-size: 1rem; /* Ajustado */
    color: var(--text-light);
    margin-bottom: 10px; /* Mais espaço */
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 12px; /* Aumentado para melhor visualização */
    background: var(--border-color);
    border-radius: 6px; /* Mais arredondado */
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); /* Sombra interna sutil */
}

.progress-fill {
    height: 100%;
    background: var(--primary-color); /* Preenchimento com a cor primária */
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Transição mais natural */
    width: 0%; /* Inicializa em 0 para animação */
}


/* Termômetro */
.thermometer-container {
    text-align: center;
    margin-bottom: 3rem;
}

.thermometer-container h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.thermometer-scale {
    width: 250px; /* Aumentado */
    height: 25px; /* Aumentado */
    background: linear-gradient(90deg, var(--profile-iniciante), var(--profile-progresso), var(--profile-avancado));
    border-radius: 15px; /* Mais arredondado */
    position: relative;
    margin: 0 auto 1.5rem auto; /* Centralizado e mais espaçado */
    box-shadow: 0 6px 15px var(--shadow-light);
}

.thermometer-pointer {
    position: absolute;
    top: 50%; /* Centraliza verticalmente */
    left: 10px; /* Posição inicial */
    width: 20px; /* Aumentado */
    height: 20px; /* Aumentado */
    background: var(--white);
    border: 4px solid var(--text-dark); /* Borda mais grossa */
    border-radius: 50%;
    transform: translate(-50%, -50%); /* Ajuste para centralizar o círculo no topo */
    transition: left 0.6s ease-out; /* Transição mais suave */
    z-index: 2; /* Garante que o ponteiro fique sobre a escala */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.thermometer-label {
    font-weight: 600;
    color: var(--text-dark);
    padding: 8px 18px; /* Aumentado */
    background: var(--white);
    border-radius: 25px; /* Mais arredondado */
    box-shadow: 0 4px 12px var(--shadow-light);
    display: inline-block; /* Para o padding funcionar */
}

/* Container de perguntas */
.question-container {
    width: 100%;
    max-width: 700px; /* Aumentado */
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
    margin-bottom: 40px;
}

.question-container h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem; /* Aumentado */
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3rem; /* Mais espaço */
    text-align: center;
    line-height: 1.4;
}

/* Opções */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem; /* Mais espaço entre as opções */
}

.option {
    background: var(--background-light); /* Fundo mais suave */
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2rem 1.8rem; /* Aumentado */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 1.1rem; /* Aumentado */
    font-weight: 500;
    color: var(--text-medium);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    position: relative; /* Para o ícone de check */
}

.option:hover {
    border-color: var(--primary-color);
    background: #e9f5e9; /* Um verde bem suave ao passar o mouse */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-light);
}

.option.selected {
    border-color: var(--primary-color);
    background: #e0f2e0; /* Um verde um pouco mais forte para selecionado */
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.15); /* Sombra mais destacada */
}

/* Ícone de Check Personalizado */
.option.selected::after {
    content: '✅'; /* Emoji de check moderno */
    position: absolute;
    right: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem; /* Tamanho ajustado */
    line-height: 1; /* Garante que o emoji não altere a altura da linha */
}

.option-icon {
    margin-right: 1rem;
    font-size: 1.4rem; /* Aumentado */
    color: var(--primary-color); /* Cor do ícone */
}

/* Tela de carregamento */
.loading-content {
    text-align: center;
    max-width: 600px;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
}

.loading-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 600;
}

.spinner {
    width: 60px; /* Aumentado */
    height: 60px; /* Aumentado */
    border: 5px solid var(--border-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 2rem;
}

.loading-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.loading-steps {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.loading-steps li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-light);
    transition: all 0.5s ease;
}

.loading-steps li.active {
    color: var(--text-dark);
    font-weight: 600;
}

.step-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--white);
    margin-right: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.5s ease;
}

.loading-steps li.active .step-icon {
    background: var(--primary-color);
}

/* --- Tela de Resultado Melhorada --- */
.result-content {
    text-align: center;
    max-width: 700px; /* Aumentado */
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
    margin-bottom: 40px;
}

.result-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem; /* Aumentado */
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.score-container {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.score-container span {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.score-bar {
    width: 80%; /* Mais largura para a barra */
    max-width: 400px; /* Limite de largura */
    height: 15px; /* Mais alta */
    background: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--profile-iniciante), var(--profile-progresso), var(--profile-avancado));
    border-radius: 8px;
    transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1); /* Transição mais longa e suave */
    width: 0%; /* Inicializa em 0 para animação */
}

.profile-result h3 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: 0.8rem;
}

.profile-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem; /* Grande e impactante */
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: var(--primary-dark); /* Uma cor forte */
    text-shadow: 2px 2px 8px rgba(0, 150, 0, 0.2); /* Sombra sutil para destaque */
    line-height: 1.1;
}

.profile-description {
    background: var(--background-light); /* Fundo suave */
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 2.5rem; /* Mais padding */
    margin-bottom: 3rem; /* Mais espaçamento */
    text-align: left; /* Alinha o texto à esquerda */
    box-shadow: 0 12px 35px var(--shadow-light);
}

.profile-description p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.profile-description p:first-child {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    text-align: left; /* Alinha a lista de benefícios à esquerda */
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start; /* Alinha o ícone e o texto ao topo */
    margin-bottom: 1rem;
}

.benefit-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px; /* Tamanho maior */
    height: 35px;
    border-radius: 50%;
    background: var(--secondary-color); /* Ícone com cor de destaque */
    color: var(--white);
    margin-right: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0; /* Impede que o ícone encolha */
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

.benefit-text {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.5;
}

.cta-container {
    margin-top: 4rem;
}
.cta-text {
    color: var(--text-medium);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Responsividade (Mantido e ajustado) */
@media (max-width: 768px) {
    .container { padding: 15px; }
    .logo h1 { font-size: 2.2rem; margin-bottom: 30px; }
    .hero-content { padding: 30px; margin-bottom: 30px; }
    .hero-content h2 { font-size: 2.2rem; }
    .hero-content p { font-size: 1.1rem; }
    .hero-illustration { height: 320px; margin-bottom: 2.5rem; }
    .product-image { max-height: 400px; }
    .decoration { font-size: 2.5rem; }
    .start-button, .cta-button { padding: 16px 35px; font-size: 1.1rem; }
    .question-container { padding: 30px; margin-bottom: 30px; }
    .question-container h2 { font-size: 1.5rem; margin-bottom: 2rem; }
    .option { padding: 1rem 1.5rem; font-size: 1rem; }
    .option.selected::after { right: 1rem; font-size: 1.3rem; }
    .thermometer-scale { width: 220px; height: 22px; }
    .thermometer-pointer { width: 18px; height: 18px; border-width: 3px; }
    .result-content { padding: 30px; margin-bottom: 30px; }
    .result-content h2 { font-size: 2rem; }
    .profile-title { font-size: 2.8rem; }
    .profile-description { padding: 2rem; }
    .profile-description p:first-child { font-size: 1.05rem; }
    .profile-description p { font-size: 0.95rem; }
    .benefits-list { margin-top: 1.5rem; }
    .benefit-icon { width: 30px; height: 30px; font-size: 1.1rem; margin-right: 12px; }
    .benefit-text { font-size: 0.95rem; }
    .cta-container { margin-top: 3rem; }
}

@media (max-width: 480px) {
    .container { padding: 10px; }
    .logo h1 { font-size: 1.8rem; margin-bottom: 25px; }
    .hero-content { padding: 25px; margin-bottom: 25px; }
    .hero-content h2 { font-size: 1.8rem; }
    .hero-content p { font-size: 0.95rem; margin-bottom: 2.5rem; }
    .hero-illustration { height: 280px; margin-bottom: 2rem; }
    .product-image { max-height: 400px; }
    .decoration { font-size: 2rem; }
    .start-button, .cta-button { padding: 14px 30px; font-size: 1rem; }
    .question-container { padding: 25px; margin-bottom: 25px; }
    .question-container h2 { font-size: 1.3rem; margin-bottom: 1.8rem; }
    .options-container { gap: 1rem; }
    .option { padding: 0.9rem 1.2rem; font-size: 0.9rem; }
    .option.selected::after { right: 0.8rem; font-size: 1.2rem; }
    .thermometer-scale { width: 180px; height: 20px; }
    .thermometer-pointer { width: 16px; height: 16px; border-width: 2px; }
    .loading-content { padding: 30px; }
    .loading-content h2 { font-size: 1.8rem; }
    .spinner { width: 45px; height: 45px; border-width: 4px; }
    .loading-text p { font-size: 1rem; }
    .result-content { padding: 25px; margin-bottom: 25px; }
    .result-content h2 { font-size: 1.8rem; }
    .profile-title { font-size: 2.4rem; }
    .profile-description { padding: 1.8rem; }
    .profile-description p:first-child { font-size: 1rem; margin-bottom: 1rem; }
    .profile-description p { font-size: 0.9rem; margin-bottom: 0.8rem; }
    .benefits-list { margin-top: 1rem; }
    .benefit-item { margin-bottom: 0.8rem; }
    .benefit-icon { width: 28px; height: 28px; font-size: 1rem; margin-right: 10px; }
    .benefit-text { font-size: 0.9rem; }
    .cta-container { margin-top: 2.5rem; }
}

/* Estilos para a tela de endereço */
#address-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: linear-gradient(135deg, #f5f7fa 0%, #c3e2d5 100%);;
}

.address-form-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.address-form-container h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
}

.form-group input[type="text"] {
    width: calc(100% - 20px);
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

#search-cep-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

#search-cep-btn:hover {
    background-color: #0056b3;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
    border-radius: 8px;
    padding: 15px;
    margin-top: 2rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    display: none; /* Começa escondido */
    animation: fadeIn 0.5s ease-in-out;
}

.error-message p {
    margin: 0;
}

/* Responsividade */
@media (max-width: 600px) {
    .address-form-container {
        margin: 20px;
        padding: 20px;
    }

    .address-form-container h2 {
        font-size: 1.5em;
    }

    .form-group input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
    }

    #search-cep-btn {
        width: 100%;
        margin-left: 0;
    }
}

/* Estilos para a tela de endereço */
.address-form {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
}

.address-form h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.shipping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.shipping-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shipping-logo img {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.shipping-logo img:hover {
    transform: scale(1.05);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-group:focus-within label {
    color: var(--primary-color);
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    background-color: var(--background-light);
}

.form-group input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    background-color: var(--white);
}

.form-group button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.form-group button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.half {
    flex: 1;
}

.error-message {
    background-color: #ffebee; /* Vermelho claro */
    color: #c62828; /* Vermelho escuro */
    border: 1px solid #ef9a9a;
    border-radius: 8px;
    padding: 15px;
    margin-top: 2rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    display: none; /* Escondido por padrão */
    animation: fadeIn 0.5s ease-in-out;
}

.success-message {
    background-color: #e8f5e9; /* Verde claro */
    color: #2e7d32; /* Verde escuro */
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 1rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}



/* Estilos para a tela de pagamento */
.payment-form {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
}

.payment-form h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.payment-info {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 2rem;
    text-align: center;
}

.payment-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-medium);
}

.payment-info strong {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.half {
    flex: 1;
}

.success-message, .processing-message {
    background-color: #e8f5e9; /* Verde claro */
    color: #2e7d32; /* Verde escuro */
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 2rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    display: none; /* Escondido por padrão */
}

.processing-message {
    background-color: #e3f2fd; /* Azul claro */
    color: #1565c0; /* Azul escuro */
    border: 1px solid #90caf9;
}

/* Estilos para a tela de confirmação */
.confirmation-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
}

.success-icon {
    font-size: 5rem;
    color: var(--primary-color);
    background-color: #e8f5e9;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
}

.confirmation-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.confirmation-content p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.confirmation-details {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 2rem;
    text-align: left;
}

.confirmation-details h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.confirmation-details p {
    margin-bottom: 0.5rem;
}

.thank-you-message {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 2rem 0;
}


/* Estilos para o cabeçalho com logo da transportadora */
.shipping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.shipping-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shipping-logo img {
    max-width: 150px;
    height: auto;
}

/* Estilos para mensagem de sucesso */
.success-message {
    background-color: #e8f5e9; /* Verde claro */
    color: #2e7d32; /* Verde escuro */
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 1rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}



/* Media Queries para Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .logo h1 {
        font-size: 2.2rem;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .start-button, .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .question-container {
        padding: 25px;
    }

    .question-container h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .option {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }

    .option.selected::after {
        right: 1rem;
        font-size: 1.2rem;
    }

    .loading-content h2 {
        font-size: 1.8rem;
    }

    .result-content h2 {
        font-size: 2rem;
    }

    .profile-title {
        font-size: 2.8rem;
    }

    .profile-description {
        padding: 1.5rem;
    }

    .address-form {
        padding: 25px;
    }

    .address-form h2 {
        font-size: 1.5rem;
    }

    .form-group input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
    }

    .form-group button {
        width: 100%;
        margin-left: 0;
    }

    .shipping-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .shipping-logo {
        margin-top: 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group.half {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.8rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .start-button, .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .question-container h2 {
        font-size: 1.3rem;
    }

    .option {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .loading-content h2 {
        font-size: 1.5rem;
    }

    .result-content h2 {
        font-size: 1.8rem;
    }

    .profile-title {
        font-size: 2.2rem;
    }

    .address-form h2 {
        font-size: 1.3rem;
    }
}

/* Fundo escurecido para o pop-up */
.error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    display: none; /* Controlado via JS */
}

/* Estilo para a mensagem de erro centralizada (pop-up) */
.centered-error {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    z-index: 1000;
    line-height: 1.6;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    
    /* Estilos visuais da sua caixa de erro original */
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
    border-radius: 12px; /* Um pouco mais arredondado */
    padding: 30px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    
    display: none; /* Começa escondido */
    animation: fadeIn 0.4s ease-out;
}

/* Garante que o botão dentro do pop-up tenha o estilo correto */
.centered-error .cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.centered-error .cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}