/* ========================================
   LP Inteligente — Parcela Diaria
   Base: LP existente (Montserrat, #042321, #61CE70)
   ======================================== */

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

body {
    font-family: 'Montserrat', sans-serif;
    color: #042321;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    background-color: #042321;
    background-image: url('../img/group-194.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 40px;
}

.hero-resultado {
    min-height: 120px;
    padding-bottom: 20px;
}

.hero-logo-bar {
    width: 100%;
    max-width: 1280px;
    padding: 30px 40px 0;
}

.hero-logo-bar img {
    width: 220px;
    height: auto;
}

.hero-row {
    width: 100%;
    max-width: 1280px;
    display: flex;
    align-items: stretch;
    padding: 0 40px;
    margin-top: 20px;
}

.hero-left {
    width: 58%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 30px 0;
}

.hero h1 {
    font-size: 42px;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 17px;
    font-weight: 400;
    color: #fff;
    max-width: 74%;
    line-height: 1.5;
}

.app-logos {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    max-width: 400px;
}

.app-logos img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
}

.hero-right {
    width: 42%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.hero-photo {
    width: 100%;
    height: 350px;
    border-radius: 60px;
    background-image: url('../img/frame-hero.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* ========================================
   FORMULARIO
   ======================================== */
.form-section {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    /* Escondido por padrao */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
}

.form-section.open {
    max-height: 800px;
    opacity: 1;
    margin: 40px auto 40px;
    overflow: visible;
}

.form-container {
    background: #fff;
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.form-container h2 {
    font-size: 24px;
    font-weight: 700;
    color: #042321;
    text-align: center;
    margin-bottom: 4px;
}

.form-subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #042321;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #042321;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #61CE70;
    background: #fff;
}

.form-group.has-error input,
.form-group.has-error select {
    border-color: #EF5350;
}

.field-error {
    display: block;
    font-size: 12px;
    color: #EF5350;
    margin-top: 4px;
    min-height: 16px;
}

/* Radio buttons */
.radio-row {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #61CE70;
}

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

/* ========================================
   CTA BUTTON
   ======================================== */
.cta-btn {
    display: block;
    width: 100%;
    background-color: #61CE70;
    color: #042321;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    padding: 18px 24px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 16px rgba(97,206,112,0.3);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-btn:hover {
    background-color: #52b85f;
    transform: translateY(-2px);
}

.cta-btn:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn {
    margin-top: 8px;
}

.cta-btn-outline {
    background: transparent;
    color: #042321;
    border: 2px solid #042321;
    box-shadow: none;
}

.cta-btn-outline:hover {
    background: #042321;
    color: #fff;
}

/* ========================================
   RESULTADO
   ======================================== */
.resultado-section {
    max-width: 560px;
    margin: -40px auto 0;
    padding: 0 20px 60px;
    position: relative;
    z-index: 10;
}

.resultado-container {
    background: #fff;
    border-radius: 20px;
    padding: 48px 32px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    text-align: center;
}

.resultado-icon {
    margin-bottom: 24px;
}

.resultado-container h2 {
    font-size: 24px;
    font-weight: 700;
    color: #042321;
    margin-bottom: 12px;
}

.resultado-msg {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 32px;
}

.app-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========================================
   VALORES SECTION
   ======================================== */
.section-valores {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 0 40px;
}

.valores-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 40px 0 60px;
}

.valores-left h2 {
    font-size: 24px;
    font-weight: 700;
    color: #042321;
    line-height: 1.3;
}

.badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #007256;
    border-radius: 9px;
    padding: 12px 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.badge svg {
    width: 18px;
    height: 18px;
    fill: #00C83C;
    flex-shrink: 0;
}

.valores-right {
    width: 50%;
}

/* ========================================
   PRICE TABLE
   ======================================== */
.price-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #04523F;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    background: #fff;
    padding: 16px;
}

.table-header:first-child {
    border-right: 1px solid #e0e0e0;
}

.table-header span {
    font-size: 24px;
    font-weight: 500;
    color: #042321;
}

.table-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    padding: 16px;
}

.table-cell.gl { background-color: #007256; }
.table-cell.gd { background-color: #04523F; }

.cell-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cell-content svg {
    width: 20px;
    height: 20px;
    fill: #00C83C;
    flex-shrink: 0;
}

.cell-text {
    font-size: 24px;
    font-weight: 500;
    color: #fff;
}

.table-disclaimer {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #042321;
    text-align: center;
    margin-top: 10px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 40px;
    text-align: center;
}

.footer img {
    width: 200px;
    height: auto;
    margin-bottom: 16px;
}

.footer p {
    font-size: 14px;
    font-weight: 400;
    color: #042321;
    line-height: 1.8;
}

.footer .fine-print {
    margin-top: 8px;
    font-size: 12px;
}

/* ========================================
   MOBILE
   ======================================== */
@media (max-width: 767px) {
    .hero {
        background-image: url('../img/frame-mobile.png');
        background-size: cover;
        min-height: auto;
        padding-bottom: 30px;
    }

    .hero-resultado {
        min-height: auto;
        padding-bottom: 15px;
    }

    .hero-logo-bar {
        padding: 20px 20px 0;
        text-align: center;
    }

    .hero-logo-bar img {
        width: 60%;
        max-width: 240px;
    }

    .hero-row {
        flex-direction: column;
        padding: 0 20px;
        margin-top: 10px;
    }

    .hero-left {
        width: 100%;
        align-items: center;
        text-align: center;
        padding: 20px 0;
    }

    .hero h1 {
        font-size: 24px;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 15px;
        max-width: 100%;
        text-align: center;
    }

    .app-logos {
        max-width: 100%;
    }

    .hero-right {
        display: none;
    }

    /* Form */
    .form-section {
        margin-top: -30px;
        padding: 0 16px;
    }

    .form-container {
        padding: 28px 20px;
    }

    /* Resultado */
    .resultado-section {
        margin-top: -20px;
        padding: 0 16px 40px;
    }

    .resultado-container {
        padding: 36px 20px;
    }

    /* Valores */
    .section-valores {
        margin-top: 20px;
        flex-direction: column;
        padding: 0 20px;
        gap: 0;
    }

    .valores-left {
        width: 100%;
        padding: 30px 0;
        align-items: center;
        text-align: center;
    }

    .valores-right {
        width: 100%;
    }

    .badges {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .badge {
        font-size: 18px;
    }

    .table-header span {
        font-size: 18px;
    }

    .cell-text {
        font-size: 18px;
    }

    .footer img {
        width: 75%;
        max-width: 280px;
    }

    .footer {
        margin-top: 40px;
    }

    .table-disclaimer {
        font-size: 12px;
    }
}
