:root {
    --teal: #008F81;
    --magenta: #832472;
    --white: #ffffff;
    --gray-light: #f8fafc;
    --gray-medium: #e2e8f0;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --radius: 16px;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--gray-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Wrapper do layout dividido */
.landing-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

/* Coluna da esquerda: visual e informacoes */
.visual-section {
    flex: 1.2;
    background: linear-gradient(135deg, var(--teal) 0%, #442a59 50%, var(--magenta) 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--white);
    position: relative;
}

.visual-section .logo {
    font-size: 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.visual-section .logo .teal { color: #51e2d4; }
.visual-section .logo .magenta { color: #ff7bcb; }

.visual-content {
    max-width: 520px;
    margin: auto 0;
}

.visual-content .hero h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 800;
}

.visual-content .hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
}

.benefits {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.benefit-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.benefit-icon {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.benefit-text h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--white);
}

.benefit-text p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.4;
}

.visual-footer {
    font-size: 12px;
    opacity: 0.7;
}

/* Coluna da direita: container do formulario */
.form-section {
    flex: 1.5;
    background-color: var(--gray-light);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    overflow-y: auto;
    position: relative;
}

/* Barra de acoes do topo */
.top-actions {
    position: absolute;
    top: 30px;
    right: 40px;
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 10;
}

/* Estilo base dos botoes do topo */
.btn-login-top, .btn-portal-top, .btn-hub-top, .btn-sim-top {
    padding: 8px 18px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.8px;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Botao do Simulador de Propostas */
.btn-sim-top {
    border: 1.5px solid #2563eb;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.1);
}

.btn-sim-top:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);
}

.btn-sim-top .sim-icon {
    font-size: 13px;
    display: inline-block;
}

/* Botao do Hub Comercial Órigo com 1 clique seguro */
.btn-hub-top {
    border: 1.5px solid #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
    box-shadow: 0 2px 5px rgba(245, 158, 11, 0.1);
}

.btn-hub-top:hover {
    background: #f59e0b;
    color: #ffffff;
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.25);
}

.btn-hub-top .hub-sparkle {
    font-size: 14px;
    display: inline-block;
}

/* Botao de login do topo */
.btn-login-top {
    border: 1.5px solid var(--magenta);
    background: transparent;
    color: var(--magenta);
    box-shadow: 0 2px 5px rgba(131, 36, 114, 0.05);
}

.btn-login-top:hover {
    background: var(--magenta);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(131, 36, 114, 0.2);
}

/* Botao do portal Área do Cliente */
.btn-portal-top {
    border: 1.5px solid var(--teal);
    background: transparent;
    color: var(--teal);
    box-shadow: 0 2px 5px rgba(0, 143, 129, 0.05);
}

.btn-portal-top:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 143, 129, 0.2);
}

/* Card de Chamada para o Simulador de Propostas na Landing Page */
.sim-callout-card {
    margin-top: 22px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(131,36,114,0.04));
    border: 1.5px dashed rgba(37,99,235,0.35);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    transition: all 0.25s ease;
}
.sim-callout-card:hover {
    border-color: #2563eb;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(131,36,114,0.06));
    transform: translateY(-1px);
}
.sim-callout-body {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sim-callout-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}
.sim-callout-title {
    font-weight: 700;
    font-size: 13px;
    color: #1e3a8a;
}
.sim-callout-desc {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.35;
}
.btn-sim-callout {
    padding: 9px 18px;
    background: #2563eb;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(37,99,235,0.25);
    flex-shrink: 0;
}
.btn-sim-callout:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37,99,235,0.35);
}


/* Logo e divisor do Passo 0 */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.landing-logo {
    height: 55px;
    width: auto;
}

.logo-divider {
    border: none;
    height: 4px;
    background-color: #e2e8f0;
    border-radius: 2px;
    margin-bottom: 28px;
    width: 100%;
}

.app-container {
    width: 100%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Cabecalho e barra de progresso */
header {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
}

.logo-mobile {
    display: none;
    font-size: 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 4px;
}

.logo-mobile .teal { color: var(--teal); }
.logo-mobile .magenta { color: var(--magenta); }

.progress-container {
    width: 100%;
    height: 8px;
    background: var(--gray-medium);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--magenta));
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estilos dos passos principais */
main {
    position: relative;
    width: 100%;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.step-header {
    margin-bottom: 25px;
}

.step-header h2 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.step-header p {
    font-size: 15px;
    color: var(--text-light);
}

/* Layouts de formulario */
.form-grid {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.full, .input-group.full {
    grid-column: 1 / -1;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
}

input, select {
    padding: 14px 16px;
    border: 1.5px solid var(--gray-medium);
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: #f8fafc;
}

input:focus, select:focus {
    border-color: var(--teal);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 143, 129, 0.1);
}

input:disabled {
    background-color: var(--gray-medium);
    cursor: not-allowed;
    color: var(--text-light);
}

small {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

/* Botoes de escolha do passo inicial */
.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.btn-option {
    background: #f3c24b;
    border: none;
    border-radius: 9999px;
    padding: 12px 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.btn-option:hover {
    transform: translateY(-3px);
    background: #f1b72a;
    box-shadow: 0 10px 20px -5px rgba(131, 36, 114, 0.25);
}

.btn-option .icon-circle {
    background: #f3c24b;
    border: 2px solid #832472;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #832472;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.btn-option:hover .icon-circle {
    background: #832472;
    color: #f3c24b;
}

.btn-text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.btn-title {
    font-size: 15px;
    font-weight: 700;
    color: #4a0d3b;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
}

.btn-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: #832472;
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
}

.indication-source-container {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.indication-source-container select {
    width: 100%;
}

/* Botoes e acoes */
.actions {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 15px;
}

.btn-primary, .btn-secondary {
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal), #00b894);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(0, 143, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(0, 143, 129, 0.4);
    filter: brightness(1.05);
}

.btn-secondary {
    background: var(--gray-medium);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #cbd5e1;
    transform: translateY(-2px);
}

/* Card da calculadora */
.calc-container {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc-warning {
    background: #fff5f5;
    color: #c53030;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #feb2b2;
    font-weight: 600;
    font-size: 14px;
    animation: slideUp 0.3s ease;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.result-card {
    background: var(--gray-light);
    padding: 24px 16px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--gray-medium);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.result-card h3 {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-card .value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.result-card.highlight {
    background: linear-gradient(135deg, var(--teal), var(--magenta));
    border: none;
    box-shadow: 0 10px 20px -5px rgba(131, 36, 114, 0.3);
}

.result-card.highlight h3 {
    color: rgba(255, 255, 255, 0.85);
}

.result-card.highlight .value {
    color: var(--white);
}

.disclaimer {
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
}

/* Card de sucesso */
.success-card {
    background: var(--white);
    padding: 50px 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.success-card h2 {
    font-size: 28px;
    color: var(--text-dark);
}

.success-card p {
    color: var(--text-light);
    max-width: 420px;
    margin-bottom: 10px;
}

.icon-success {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 10px 20px -5px rgba(46, 204, 113, 0.4);
}

/* Media queries responsivas */
@media (max-width: 1024px) {
    .landing-wrapper {
        flex-direction: column;
    }
    
    .visual-section {
        padding: 50px 30px;
        min-height: auto;
    }
    
    .visual-content {
        max-width: 100%;
        margin: 20px 0;
    }
    
    .visual-content .hero h1 {
        font-size: 32px;
    }
    
    .benefits {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        margin-top: 10px;
    }
    
    .visual-footer {
        display: none;
    }
    
    .form-section {
        padding: 50px 20px;
    }
}

@media (max-width: 768px) {
    .landing-wrapper {
        display: block;
        min-height: 100vh;
    }

    .visual-section {
        display: none;
    }

    .form-section {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 24px 14px 48px 14px;
        width: 100%;
        min-height: 100vh;
    }

    .top-actions {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 0 auto 20px auto;
        width: 100%;
        max-width: 480px;
        order: 1;
    }

    .app-container {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        order: 2;
    }

    .btn-login-top, .btn-portal-top, .btn-hub-top, .btn-sim-top {
        padding: 8px 8px;
        font-size: 11px;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        width: 100%;
    }
    
    .logo-mobile {
        display: block;
        text-align: center;
        margin-bottom: 4px;
    }
    
    .form-grid, .calc-container, .success-card {
        padding: 24px 16px;
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .options {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .btn-option {
        padding: 12px 18px;
    }

    .sim-callout-card {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        padding: 14px 14px;
        gap: 12px;
    }

    .btn-sim-callout {
        width: 100%;
        padding: 11px 16px;
        font-size: 12px;
    }
}

@media (max-width: 440px) {
    .form-section {
        padding: 18px 10px 36px 10px;
    }

    .top-actions {
        gap: 6px;
        margin-bottom: 16px;
    }

    .btn-login-top, .btn-portal-top, .btn-hub-top, .btn-sim-top {
        padding: 7px 5px;
        font-size: 10px;
        letter-spacing: 0.2px;
        gap: 4px;
    }

    .form-grid, .calc-container, .success-card {
        padding: 18px 12px;
    }

    .btn-option {
        padding: 10px 12px;
    }

    .btn-title {
        font-size: 14px;
    }

    .btn-subtitle {
        font-size: 11px;
    }

    .sim-callout-title {
        font-size: 12.5px;
    }

    .sim-callout-desc {
        font-size: 10.5px;
    }
}

/* ==========================================================================
   Avisos de formulário do funil público
   Mesma linguagem visual de .calc-warning, porém alinhados à esquerda e com
   barra lateral, para mensagens do servidor (validação) e erros por campo.
   ========================================================================== */
.form-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
    border-left: 4px solid #c53030;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    margin-bottom: 18px;
    animation: slideUp 0.3s ease;
}

.form-notice--info {
    background: #f0f9ff;
    color: #075985;
    border-color: #bae6fd;
    border-left-color: #0284c7;
}

.form-notice__icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.form-notice__body { flex: 1 1 auto; }

.form-notice__title {
    display: block;
    margin-bottom: 4px;
}

.form-notice ul {
    margin: 0;
    padding-left: 18px;
    font-weight: 500;
}

/* Campo com erro: borda destacada e mensagem logo abaixo. */
.input-group.has-error input,
.input-group.has-error select,
.indication-source-container.has-error select {
    border-color: #c53030;
    background: #fff8f8;
}

.field-error {
    display: block;
    margin-top: 6px;
    color: #c53030;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
}
