:root {
    --primary: #007E92;
    --secondary: #82368C;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
}

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

/* header,
footer,
.footer-page,
.partners-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
} */

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;

}

header {
    width: 100vw;
    padding: 15px 0;
    text-align: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 50;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.logo { height: 45px; display: block; margin: 0 auto; }

.progress-container {
    width: 100%;
    height: 4px;
    background: #f3f4f6;
    position: absolute;
    bottom: 0;
    left: 0;
}

.progress-bar {
    height: 100%;
    background: var(--secondary);
    width: 20%; 
    transition: width 0.5s ease;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto; 
    padding: 30px;
}

.container_form {
    width: 100%;
    /* background: #fff; */
    display: flex;
    gap: 50px;
}

.view-section {
    display: none; 
    animation: fadeIn 0.4s ease;
}
.view-section.active { display: block; } 

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.2;
    font-weight: 700;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Inputs Gigantes */
.big-input-wrapper { margin-bottom: 25px; }

.currency-display {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 800;
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
}

input[type=range] {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 5px;
    appearance: none;
    cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
}

.installments-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.installment-chip {
    padding: 10px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: 0.3s;
    font-size: 0.9rem;
}

.installment-chip:hover { border-color: var(--primary); color: var(--primary); }
.installment-chip.selected {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Inputs Clean */
.clean-input-group { margin-bottom: 25px; }
.clean-input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.clean-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #e5e7eb;
    padding: 10px 0;
    font-size: 1.2rem;
    color: var(--text-dark);
    background: transparent;
    transition: 0.3s;
    border-radius: 0;
}
.clean-input:focus {
    outline: none;
    border-bottom-color: var(--secondary);
}

/* Select Box do Cartão */
select.clean-input {
    background: #fff;
    cursor: pointer;
    color: var(--text-dark);
}

/* Destaque na pergunta do cartão */
.card-question h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}
.card-question span {
    color: var(--primary);
    font-weight: 800;
}

/* Botões */
.btn-advance {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
    margin-top: 20px;
}
.btn-advance:hover { transform: translateY(-2px); opacity: 0.9; }

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc;
}

.arrow-symbol { font-size: 1.2em; }

.container-imagem {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.container-imagem img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 600px;
}

/*  O CARD MODAL  */
.overlay-check {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* background: rgba(255, 255, 255, 0.9);  */
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    animation: fadeInOverlay 0.3s forwards;
}

.modal-container {
    background: var(--bg-light);
    width: 100%;
    max-width: 800px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    display: flex;
    overflow: hidden;
    transform: scale(0.9);
    animation: scaleUpModal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-image-side {
    flex: 1; 
    background: #f0f8ff; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.modal-image-side img {
    height: 200px;
    /* object-fit: cover;  */
    opacity: 0;
    animation: slideInImage 0.8s 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.modal-content-side {
    flex: 1.2; 
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.warning-icon {
    font-size: 1.8rem;
    color: #f59e0b; 
}

.modal-content-side h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
    font-weight: 700;
}

.modal-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.modal-alert-box {
    background: #eefbfb;
    color: var(--primary);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Botões Modernos */
.check-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end; 
}

.btn-ghost {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.btn-ghost:hover { background: #f9fafb; border-color: #ccc; }

.btn-primary-modal {
    background: var(--primary); 
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 126, 146, 0.3);
    transition: 0.3s;
}
.btn-primary-modal:hover { transform: translateY(-2px); opacity: 0.9; }

@keyframes fadeInOverlay { to { opacity: 1; } }

@keyframes scaleUpModal { to { transform: scale(1); } }

@keyframes slideInImage {
    from { transform: translateX(-50px) scale(1.1); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

/*whatsapp*/


.whatsapp-float {
    position: fixed; 
    width: 60px; 
    height: 60px; 
    bottom: 40px; 
    right: 40px; 
    border-radius: 50px; 
    text-align: center; 
    font-size: 30px; 
    z-index: 1000; 
    display: flex;
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
}

.whatsapp-float img.whatsapp-icon {
    width: 60px; 
    height: 60px; 
    vertical-align: middle; 
    border: none; 
    margin-top: 2px; 
}

.whatsapp-float:hover {
    transform: scale(1.05); 
    transition: all 0.3s ease; 
}

.whatsapp-badge {
    position: absolute; 
    top: -10px; 
    right: 70px; 
    background-color: #075E54; 
    color: #FFF; 
    padding: 5px 10px; 
    border-radius: 5px; 
    font-size: 14px; 
    white-space: nowrap; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateX(10px); 
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease; 
}

.whatsapp-badge::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -5px; 
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #075E54; 
    transform: translateY(-50%);
}


.whatsapp-float:hover .whatsapp-badge {
    opacity: 1; 
    visibility: visible; 
    transform: translateX(0); 
}

/*footer carrossel*/
.partners-section {
    padding: 20px 0;
    background-color: var(--white);
}

/* .partners-section h2 {
    letter-spacing: 0.1em;
    font-size: 1.5rem;
    margin-bottom: 4rem;
    color: var(--secondary)7;
} */

.logo-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}



.logo-track {
    display: flex;
    width: calc(250px * 12); 
    animation: scroll 40s linear infinite;
}

.logo-track:hover {
    animation-play-state: paused;
}

.logo-track img {
    width: 250px;
    height: 80px;
    object-fit: contain;
    padding: 0 40px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}
.footer{
        width: 100vw;
}
.footer-page{
    padding: 20px; 
    background: var(--white);
    margin-top: auto;
    width: 100%;
}

.final-footer{
    display: flex;
    gap: 20px;
    justify-content: space-between; 
    align-items: center;
    font-size: 0.7rem;
}
.final-footer a{
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.8rem;

}

.footer-main{
    padding: 30px;
    text-align: justify; 
    font-size: 0.7rem; 
    color: var(--secondary);
}

/*painel leads*/

.login-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: url('../img/admin-fundo.jpg') no-repeat center center/cover; */
    position: relative;
}

.login-box {
    position: relative;
    z-index: 2;
    background: var(--white);
    padding: 40px;
    width: 400px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
}
.login-box h2 { 
    font-size: 2rem;
     margin-bottom: 20px; 
     color: var(--secondary); 
}

/*finalizacao*/
.view-final {

    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.img-final img {
    height: 70px;
    margin-bottom: 20px;
}

.view-final h1 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.final-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* BLOCO DE CONTATO */
.contact-highlight {
    background: #f6f9f7;
    border: 1px solid #c5c5c5;
    padding: 25px 20px;
    border-radius: 14px;
    width: 70%;
    margin-top: 30px;
}

.contact-highlight h1 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 8px;
}

.contact-highlight p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

/* BOTÃO WHATSAPP */
.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    padding: 14px 15px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 6px 18px rgba(37,211,102,0.4);
}

.btn-whatsapp img {
    height: 22px;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
}


@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-250px * 6)); } 
}


@media(max-width: 900px) {
    .container_form { flex-direction: column-reverse; gap: 20px; }
    .container-imagem { display: none; }
    h1 { font-size: 1.8rem; }
    .modal-container {
        flex-direction: column;
        max-width: 90%;
    }
    
    .modal-image-side {
        height: 150px;
    }
    
    .modal-content-side {
        padding: 25px;
    }
    
    .check-actions {
        flex-direction: column-reverse; 
    }
    
    .btn-ghost, .btn-primary-modal { width: 100%; }

    .whatsapp-float {
    width: 50px; 
    height: 50px;
    bottom: 20px;
    right: 20px;
    }
    
    .whatsapp-float img.whatsapp-icon {
        width: 60px; 
        height: 60px; 
    }
    
    .whatsapp-badge {
        right: 60px; 
        font-size: 12px;
    }
    .final-footer{
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .clean-input-group{
        flex-direction: column;
        display: flex;
    }

    .contact-highlight{
        width: 100%;
    }

    body {
        min-height: 100svh; 
    }

    main {
        padding: 20px 15px;
        align-items: stretch;
    }

    .container_form {
        width: 100%;
    }
}


@media(max-width: 768px) {
    .modal-container {
        flex-direction: column;
        max-width: 90%;
    }
    
    .modal-image-side {
        height: 150px;
    }
    
    .modal-content-side {
        padding: 25px;
    }
    
    .check-actions {
        flex-direction: column-reverse; 
    }
    
    .btn-ghost, .btn-primary-modal { width: 100%; }

    .whatsapp-float {
    width: 50px; 
    height: 50px;
    bottom: 20px;
    right: 20px;
    }
    
    .whatsapp-float img.whatsapp-icon {
        width: 60px; 
        height: 60px; 
    }
    
    .whatsapp-badge {
        right: 60px; 
        font-size: 12px;
    }
    .final-footer{
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .clean-input-group{
        flex-direction: column;
        display: flex;
    }

    .contact-highlight{
        width: 100%;
    }

    body {
        min-height: 100svh; 
    }

    main {
        padding: 20px 15px;
        align-items: stretch;
    }

    .container_form {
        width: 100%;
    }
}