/* =============================== */
/*         ESTILOS DESKTOP         */
/* =============================== */

/* Definições gerais */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

/* Estilização da introdução */
#intro-container {
    text-align: center;
    background-color: #ffe4e1;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.texto-introducao {
    font-size: 2rem;
    color: #1e40af;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: center;
}

.texto-secundario {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: bold;
}

.intro-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
}

.image-caption {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    color: #ffffff;
    background-color: #1e40af;
    margin-top: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Estilização do botão de continuar */
.button-continuar {
    position: absolute;
    bottom: 100px; /* ajuste fino conforme o botão da imagem */
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background-color: #2563eb;
    color: #fff;
    font-size: 1.25rem;
    font-weight: bold;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, transform 0.15s ease-in-out;
    z-index: 10;
    transform-origin: center;
    box-sizing: border-box;
}

.button-continuar:active {
    transform: scale(0.95);
}

/* Centralização do conteúdo principal */
#fluxo-container,
#final-message {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#final-message {
    text-align: center;
    background-color: #fff0f5;
}

#final-text {
    font-size: 20px;
    font-weight: bold;
    color: #ff6f61;
    margin-top: 20px;
    text-align: center;
}

#loading-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    background-color: #fff9fb;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Estilização dos títulos */
h1, h2, h3 {
    font-family: 'Georgia', serif;
    color: #ff6f61;
    margin-bottom: 15px;
}

/* Estilização dos parágrafos */
p {
    font-size: 22px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

/* Estilização dos botões */
button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #ffb6c1;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

button:hover {
    background-color: #ff8a9f;
}

/* Estilo dos campos de input */
input[type="text"],
input[type="date"],
input[type="number"],
input[type="tel"],
input[type="email"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

/* Container da imagem */
.imagem-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Tela de carregamento */
.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    gap: 6px;
}

.loading-dots div {
    width: 10px;
    height: 10px;
    background-color: #ff6f61;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots div:nth-child(1) { animation-delay: -0.32s; }
.loading-dots div:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}


/* =============================== */
/*      ESTILOS PARA MOBILE        */
/* =============================== */

@media (max-width: 768px) {
    body {
        padding: 10px;
        justify-content: center;
        align-items: center;
    }

    .imagem-container {
        max-width: 100%;
        padding: 0 10px;
    }

    .intro-image {
        width: 100%;
        height: auto;
    }

    .button-continuar {
        position: static;
        margin: 10px auto 0 auto;
        display: block;
        width: 100%;
        font-size: 1.1rem;
        padding: 1rem;
        transform: none;
        
    }

    #intro-container,
    #fluxo-container,
    #final-message,
    #loading-message {
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    h1, h2, h3 {
        font-size: 20px;
        text-align: center;
        margin-bottom: 10px;
    }

    p {
        font-size: 16px;
        text-align: left;
    }

    input[type="text"],
    input[type="date"],
    input[type="number"],
    input[type="tel"],
    input[type="email"] {
        font-size: 16px;
    }

    button {
        width: 100%;
        padding: 15px;
        font-size: 18px;
    }
}


.step-image {
    max-width: 350px;   /* limita a largura da ilustração */
    width: 100%;
    display: block;
    margin: 0 auto 20px; /* centraliza e dá um espaço embaixo */
}
