/* =========================================
   NO VO SIMULADOR E VITRINE DE CURSOS
   ========================================= */

/* --- Wrapper do Simulador --- */
/* Fix for Options Visibility High Contrast */
.simulator-wrapper select {
    color: #000000 !important;
    background: #FFFFFF !important;
}

.simulator-wrapper {
    background: transparent;
    padding: 2rem 0 4rem;
    /* Mais espaço */
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
    font-family: 'Plus Jakarta Sans', sans-serif;
}


/* Fix for Options Visibility */
.simulator-wrapper select option {
    background: #FFFFFF;
    color: #000000;
    padding: 10px;
    font-size: 1rem;
}

.simulator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.sim-badge {
    background: rgba(0, 168, 89, 0.1);
    /* Green tint */
    color: var(--primary-green);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 168, 89, 0.2);
}

.simulator-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.simulator-header p {
    color: #555;
    /* Neutral gray matching site */
    font-size: 1.1rem;
}

/* Caixa Principal do Simulador */
.simulator-box {
    background: var(--white);
    border-radius: 20px;
    /* Matching site cards */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0;
    /* Let children handle padding */
}

/* Abas Superiores */
.sim-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.sim-tab {
    flex: 1;
    padding: 1.5rem;
    background: #F8F9FA;
    /* var(--bg-light) */
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
}

.sim-tab:hover {
    background: #EDF2F7;
    color: var(--dark-blue);
}

.sim-tab.active {
    background: var(--white);
    color: var(--primary-blue);
    border-bottom: 3px solid var(--primary-blue);
    font-weight: 700;
}

/* Corpo do Simulador */
.sim-body {
    padding: 2.5rem;
}

.sim-row {
    display: flex;
    gap: 30px;
    margin-bottom: 1.5rem;
}

.sim-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sim-group.full {
    flex: 100%;
}

.sim-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-blue);
    font-family: 'Outfit', sans-serif;
}

/* Inputs Customizados */
.custom-select-wrapper,
.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 5px;
    /* Spacing fix */
}

/* Force standard appearance reset then style */
.custom-select-wrapper select,
.input-icon-wrapper input {
    width: 100%;
    height: 56px;
    /* Explicit height */
    padding: 0 20px;
    /* Horizontal padding only */
    padding-right: 45px;
    /* Space for icon */
    border-radius: 12px;
    border: 1px solid #E2E8F0;

    /* VISIBILITY FIXES */
    background-color: #FFFFFF !important;
    color: #1A1A1A !important;
    opacity: 1 !important;

    font-size: 1rem;
    /* Dark Text */
    /* Re-enabling custom appearance for consistent design */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 2;
    /* Click fix */
}

.custom-select-wrapper i,
.input-icon-wrapper i {
    position: absolute;
    right: 20px;
    color: #94A3B8;
    pointer-events: none;
    z-index: 10;
    /* Ensure icon is on top */
}

.custom-select-wrapper select:focus,
.input-icon-wrapper input:focus {
    border-color: var(--primary-green);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(0, 168, 89, 0.1);
}

/* Fix for placeholders if needed */
::placeholder {
    color: #94A3B8;
    opacity: 1;
}

/* Range Slider */
.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#priceValue {
    font-weight: 800;
    color: var(--primary-green);
    /* Green for money/value */
    font-size: 1.1rem;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    margin-top: 10px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--primary-green);
    /* Green thumb */
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 4px 10px rgba(0, 168, 89, 0.3);
    border: 3px solid var(--white);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #E2E8F0;
    border-radius: 5px;
}

/* Checkboxes */
.modality-checks {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748B;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-green);
    border-radius: 4px;
}

/* Botão Buscar - Primary Brand Style */
.btn-simulate {
    width: 100%;
    background: var(--primary-blue);
    color: var(--white);
    font-weight: 700;
    padding: 16px;
    border-radius: 8px;
    /* Slightly improved standard radius */
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 84, 166, 0.2);
    font-family: 'Outfit', sans-serif;
}

.btn-simulate:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 84, 166, 0.3);
}

/* --- Resultado da Melhor Oferta (Inside Simulator) --- */
.sim-results {
    padding: 0 2.5rem 2.5rem;
    /* Same padding as body */
    border-top: 1px solid #F1F5F9;
    background: #fff;
    animation: fadeIn 0.5s ease;
}

.result-divider {
    height: 1px;
    background: #E2E8F0;
    margin-bottom: 2rem;
    display: none;
    /* using padding-top/border-top instead */
}

.result-label {
    color: #64748B;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.result-course-name {
    color: var(--dark-blue);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.result-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.res-tag-blue {
    background: #EFF6FF;
    /* Light blue bg */
    color: var(--primary-blue);
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 84, 166, 0.1);
}

.res-tag-gray {
    background: #F8FAFC;
    color: #64748B;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #E2E8F0;
}

.result-offer-box {
    background: rgba(0, 168, 89, 0.05);
    /* Very light green tint for success feel */
    background: #F0FDF4;
    /* Tailwind emerald-50ish */
    border: 1px solid #DCFCE7;
    /* Light border */
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Adjust box for Blue Palette Request if needed, but keeping discounts green usually works best.
   If strictly blue: use #EFF6FF for bg. User said "paleta de cores azul". */
.result-offer-box {
    background: #F0F9FF;
    /* Light sky blue */
    border: 1px solid #E0F2FE;
    /* Sky 200 */
}

.offer-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.offer-scratched {
    color: #94A3B8;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.offer-badge {
    color: var(--primary-green);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.offer-right {
    text-align: right;
}

.offer-mensalidade-label {
    display: block;
    color: #64748B;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.offer-final-price {
    display: block;
    color: var(--primary-green);
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.result-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748B;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.result-footer i {
    color: var(--primary-green);
}

.btn-result-action {
    display: block;
    text-align: center;
    margin-top: 0;
    background: var(--primary-blue);
    /* Solid Blue */
    border-radius: 8px;
    text-decoration: none;
}

.btn-result-action:hover {
    background: var(--dark-blue);
    color: white;
}


/* --- Responsive Simulator --- */
@media (max-width: 768px) {
    .sim-row {
        flex-direction: column;
        gap: 20px;
    }

    .sim-body,
    .sim-results {
        padding: 1.5rem;
    }

    .result-offer-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .offer-right {
        text-align: left;
    }
}