:root {
    --primary: #ff1a1a;
    --dark: #0b0b0b;
    --light: #f5f5f5;
    --text: #333;
    --font: 'Arial', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
}

body {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== LADO ESQUERDO ===== */
.left {
    width: 50%;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow: hidden;

    display: flex;
    align-items: center;   /* CENTRALIZA VERTICAL */
}

/* imagem dinâmica */
.bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: 0.5s ease;
}

/* overlay */
.bg::after {
    content: '';
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.7) 40%,
        rgba(255,0,0,0.25) 100%
    );
}

/* conteúdo esquerdo */
.left-content {
    position: relative;
    z-index: 2;

    padding: 0 60px;
    max-width: 520px;
    width: 100%;
}

.left-content h1 {
    font-size: clamp(32px, 5vw, 56px);
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.left-content p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    font-size: 18px;
    line-height: 1.5;
}

.logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    opacity: 0.6;
}

.logos div {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* ===== DIREITA ===== */
.container {
    margin-left: 50%;
    width: 50%;
    min-height: 100vh;
    background: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

form {
    width: 100%;
    max-width: 500px;
}

/* ===== STEPS ===== */
.step {
    display: none;
}

.step.active {
    display: block;
}

/* ===== TEXTOS ===== */
.step h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text);
}

/* ===== INPUTS ===== */
input,
select {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    font-size: 16px;
}

/* ===== BOTÕES ===== */
button {
    padding: 14px 20px;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    font-weight: bold;
    margin-right: 10px;
}

button:hover {
    opacity: 0.9;
}

.botoes {
    display: flex;
    justify-content: space-between;
}

/* ===== SUCESSO ===== */
#mensagemSucesso {
    font-size: 20px;
}

/* ===== TABLET (até 1024px) ===== */
@media (max-width: 1024px) {

    body {
        display: block;
        background: var(--light);
    }

    /* ===== HERO (IMAGEM) ===== */
    .left {
        position: relative;
        width: 100%;
        height: 320px;
    }

    .left-content {
        padding: 30px 20px;
        max-width: 100%;
    }

    .left-content h1 {
        font-size: 36px;
    }

    .left-content p {
        font-size: 15px;
    }

    /* ===== FORM CARD ===== */
    .container {
        margin-left: 0;
        width: 100%;

        /* 🔥 FAZ SOBREPOR */
        margin-top: -60px;

        padding: 0 20px 40px 20px;

        display: flex;
        justify-content: center;
    }

    form {
        width: 100%;
        max-width: 600px;

        /* 🔥 CARD */
        background: #fff;
        border-radius: 20px;
        padding: 30px 25px;

        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    /* centraliza conteúdo */
    .step {
        text-align: left;
    }
}

@media (max-width: 600px) {

    body {
        display: flex;
        background: #fff;
    }

    /* REMOVE ESQUERDA */
    .left {
        display: none;
    }

    /* CONTAINER NORMAL (SEM CENTRALIZAÇÃO) */
    .container {
        margin: 0;
        width: 100%;
        min-height: 100dvh;

        display: block;

        padding: 20px 16px 30px 16px;
        background: #fff;
    }

    form {
        width: 100%;
        max-width: 100%;
    }

    /* TOPO (se usar) */
    .top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
    }

    /* TEXTOS */
    .step h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    /* INPUT */
    input,
    select {
        width: 100%;
        padding: 14px;
        font-size: 14px;
        margin-bottom: 20px;
    }

    /* BOTÃO */
    button {
        width: 100%;
        padding: 14px;
        font-size: 14px;
        margin-top: 5px;
    }

    /* DEPOIMENTO */
    .card {
        margin-top: 30px;
        padding: 18px;
        border-radius: 12px;
        background: #f5f5f5;
    }

    /* RODAPÉ */
    .footer {
        margin-top: 40px;
        font-size: 12px;
        text-align: center;
        color: #777;
    }
}



/* ===== TOPO APP ===== */
.top-app {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.back-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #333;
}

/* ===== PROGRESS BAR ===== */
.progress {
    flex: 1;
    height: 6px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.4s ease;
}

/* ===== ANIMAÇÃO STEPS ===== */
.step {
    display: none;
    transform: translateX(40px);
    opacity: 0;
    transition: all 0.3s ease;
}

.step.active {
    display: block;
    transform: translateX(0);
    opacity: 1;
}
.erro-form {
    color: #ff4d4d;
    font-size: 14px;
    margin-top: 8px;
}