/* =========================================================
   PLAN AUTOS - CREDIT SIMULATOR
   ========================================================= */

.planautos-simulator {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 30px;
    background: #22223B;
    color: #F2E9E4;
    border-radius: 18px;
    box-sizing: border-box;
    box-shadow: 0 18px 45px rgba(34, 34, 59, 0.18);
}


/* ---------------------------------------------------------
   ENCABEZADO
   --------------------------------------------------------- */

.planautos-simulator-header {
    margin-bottom: 24px;
}

.planautos-simulator-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #C9ADA7;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    line-height: 1.4;
}

.planautos-simulator-header h3 {
    margin: 0;
    color: #F2E9E4 !important;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
}


/* ---------------------------------------------------------
   FORMULARIO
   --------------------------------------------------------- */

.planautos-simulator-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.planautos-field {
    display: flex;
    flex-direction: column;
}

.planautos-field label {
    margin-bottom: 8px;
    color: #F2E9E4;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.planautos-field input,
.planautos-field select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    box-sizing: border-box;

    background: #F2E9E4;
    color: #22223B;

    border: 1px solid rgba(201, 173, 167, 0.5);
    border-radius: 8px;

    font-family: inherit;
    font-size: 15px;
    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.planautos-field input::placeholder {
    color: #777;
}

.planautos-field input:focus,
.planautos-field select:focus {
    border-color: #C9ADA7;
    box-shadow: 0 0 0 3px rgba(201, 173, 167, 0.18);
}

.planautos-field-help {
    margin-top: 6px;
    color: rgba(242, 233, 228, 0.58);
    font-size: 11px;
    line-height: 1.4;
}


/* ---------------------------------------------------------
   BOTÓN
   --------------------------------------------------------- */

.planautos-simulator-button {
    grid-column: 1 / -1;

    width: 100%;
    min-height: 50px;
    margin-top: 4px;
    padding: 13px 20px;

    background: #C9ADA7;
    color: #22223B;

    border: none;
    border-radius: 8px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.planautos-simulator-button:hover {
    background: #F2E9E4;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.planautos-simulator-button:active {
    transform: translateY(0);
}

.planautos-simulator-button:focus-visible {
    outline: 3px solid #F2E9E4;
    outline-offset: 3px;
}


/* ---------------------------------------------------------
   RESULTADO
   --------------------------------------------------------- */

.planautos-simulator-result {
    display: flex;
    flex-direction: column;
    gap: 16px;

    margin-top: 26px;
    padding: 20px;

    background: rgba(242, 233, 228, 0.07);
    border: 1px solid rgba(201, 173, 167, 0.25);
    border-radius: 12px;
}

.planautos-result-item,
.planautos-monthly-payment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.planautos-result-item span,
.planautos-monthly-payment span {
    color: rgba(242, 233, 228, 0.72);
    font-size: 13px;
    line-height: 1.4;
}

.planautos-result-item strong {
    color: #F2E9E4;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.planautos-monthly-payment {
    padding-top: 16px;
    border-top: 1px solid rgba(242, 233, 228, 0.12);
}

.planautos-monthly-payment strong {
    color: #C9ADA7;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}


/* ---------------------------------------------------------
   DISCLAIMER
   --------------------------------------------------------- */

.planautos-simulator-disclaimer {
    margin: 18px 0 0;
    color: rgba(242, 233, 228, 0.5);
    font-size: 11px;
    line-height: 1.55;
}


/* ---------------------------------------------------------
   RESPONSIVE - TABLET
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .planautos-simulator {
        padding: 28px 24px;
        border-radius: 16px;
    }

    .planautos-simulator-header h3 {
        font-size: 25px;
    }

}


/* ---------------------------------------------------------
   RESPONSIVE - MÓVIL
   --------------------------------------------------------- */

@media (max-width: 480px) {

    .planautos-simulator {
        padding: 24px 18px;
        border-radius: 14px;
    }

    .planautos-simulator-form {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .planautos-simulator-header h3 {
        font-size: 23px;
    }

    .planautos-simulator-header p {
        font-size: 14px;
    }

    .planautos-result-item,
    .planautos-monthly-payment {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .planautos-monthly-payment strong {
        font-size: 24px;
    }

}