/* Site Styles */

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background-color: #ffffff;
}

/* Container centralizado */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.site-header {
    height: 85px;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.site-header .container {
    padding: 0 20px;
}

.header-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.logo img {
    max-height: 60px;
    width: auto;
}

/* Simulador de Migração Fapes */
.header-title h1 {
    margin: 0 auto;
    width: 227px;
    height: 23px;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 22px;
    color: #0F5C37;
    flex: none;
    order: 1;
    flex-grow: 0;
    white-space: nowrap;
}

/* Botão Voltar */
.btn-voltar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 11px 44px;
    gap: 10px;
    width: 136px;
    height: 45px;
    background: #00854F;
    border-radius: 32px;
    color: #fff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    flex: none;
    order: 2;
    flex-grow: 0;
}

.btn-voltar:hover {
    background: #006b3f;
}

/* Main content com espaçamento para header fixo */
main {
    margin-top: 85px;
}

/* Banner */
.banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 91px 92px;
    gap: 10px;
    width: 100%;
    max-width: 1376px;
    height: 457px;
    background-color: #f0f0f0;
    border-radius: 32px;
    margin: 0 auto 30px;
    overflow: hidden;
    position: relative;
}

.banner img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Simulador de migração de Plano */
.banner-title {
    width: 448px;
    height: 189px;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 48px;
    line-height: 63px;
    color: #0F5C37;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .site-header {
        height: auto;
        min-height: 85px;
        padding: 10px 0;
    }

    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
        gap: 10px;
        padding: 10px 0;
        align-items: flex-start;
    }

    .logo {
        order: 1;
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .logo img {
        max-height: 40px;
    }

    .header-button {
        order: 2;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .header-title {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
    }

    .header-title h1 {
        width: auto;
        font-size: 13px;
        line-height: 20px;
        text-align: left;
        margin: 0;
    }

    .btn-voltar {
        width: auto;
        min-width: 90px;
        height: 40px;
        padding: 10px 20px;
        font-size: 12px;
    }

    main {
        margin-top: 130px;
    }

    .banner {
        height: 250px;
        padding: 40px 20px;
    }

    .banner-title {
        width: 100%;
        max-width: 280px;
        height: auto;
        font-size: 28px;
        line-height: 36px;
    }

    .container {
        padding: 15px;
    }

    .content-box-right {
        padding: 15px 15px;
    }

    .calculation-box {
        padding: 29px 16px;
        height: auto !important;
        min-height: auto !important;
    }

    .calc-row {
        gap: 8px;
    }

    .calc-row .label-wrapper {
        max-width: 150px;
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    .calc-row .icon {
        flex-shrink: 0;
    }

    .calc-row .form-label {
        font-size: 12px;
        line-height: 1.4;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 130px;
        flex: 1;
    }

    .calc-row .input-money,
    .calc-row .input-percent {
        width: 118px;
        min-width: 118px;
    }

    .calc-row .input-money#creditoInput {
        width: 160px !important;
        min-width: 160px !important;
    }

    .calc-row .input-percent {
        width: 94px;
        min-width: 94px;
    }

    .result-box {
        height: auto;
        min-height: 100px;
        padding: 20px 15px;
    }

    .result-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px !important;
    }

    .result-text {
        text-align: center !important;
        width: 100% !important;
        flex: none !important;
    }

    .result-value {
        text-align: center;
        font-size: 24px;
    }

    .simulation-result {
        text-align: center;
    }

    .simulation-result .row {
        justify-content: center;
    }

    .simulation-result .col-12,
    .simulation-result .col-md-6 {
        display: flex;
        flex-direction: column;
        align-items: center !important;
        justify-content: center;
    }

    .simulation-text {
        text-align: center !important;
        align-self: center !important;
    }

    .benefit-value-box,
    .benefit-period-box {
        margin: 0 auto;
    }

    .income-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-income {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100%;
    }

    .btn-income-with-icon {
        width: 100% !important;
        flex: 0 0 100% !important;
    }

    .benefit-detail-box {
        padding: 15px 15px !important;
    }

    .benefit-detail-box .row {
        gap: 15px;
    }

    .benefit-input-group {
        gap: 15px !important;
    }
}

/* Footer */
.site-footer {
    padding: 0px 0;
    background-color: #fff;
}

.footer-text {
    max-width: 1144px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 155%;
    text-align: center;
    color: #000000;
}

.footer-attention {
    font-weight: 700;
    color: #E77C35;
}

/* Content Boxes */
.content-box-left {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    padding: 41px 27px;
    gap: 10px;
    width: 100%;
    min-height: 625px;
    background: #F7F6F6;
    border-radius: 32px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.content-box-right {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 23px 27px;
    gap: 10px;
    width: 100%;
    min-height: 625px;
    background: #FFFFFF;
    border: 1px solid #00854F;
    border-radius: 32px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

/* Calculation Box */
.calculation-box {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    gap: 10px;
    margin: 0 auto;
    width: 100%;
    max-width: 864px;
    height: 222px;
    border: 1px solid #215EA6;
    border-radius: 32px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

/* Result Box */
.result-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 31px 29px;
    gap: 10px;
    width: 100%;
    max-width: 846px;
    height: 80px;
    background-image: linear-gradient(0deg, rgba(33, 94, 166, 0.85), rgba(33, 94, 166, 0.85)), url('../images/bg-resultado.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 23px;
    flex: none;
    order: 2;
    flex-grow: 0;
}

.result-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.result-text {
    margin: 0;
    width: auto;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 12px;
    line-height: 118.05%;
    color: #FFFFFF;
    flex: 1;
    text-align: left;
}

.result-value {
    margin: 0;
    width: auto;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 118.05%;
    text-align: right;
    color: #FFFFFF;
    flex: none;
    white-space: nowrap;
}

/* Extra Fields */
.extra-field {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

.icon-help {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-left: 8px;
}

/* Simulation Result */
.simulation-result {
    width: 100%;
    margin-top: 10px;
}

.simulation-result .row {
    align-items: center;
}

.simulation-result .col-12 {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    flex-direction: column;
}

.simulation-text {
    margin: 0;
    width: auto;
    max-width: 202px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 118.05%;
    color: #404040;
    flex: none;
    order: 0;
    flex-grow: 0;
    text-align: right;
    align-self: flex-end;
}

.benefit-boxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: none;
    align-items: flex-start;
}

.benefit-value-box {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 7px 14px;
    gap: 10px;
    width: 147px;
    min-width: 147px;
    height: 37px;
    background: #1B8754;
    border-radius: 10px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.benefit-value {
    width: auto;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 15px;
    line-height: 118.05%;
    color: #FFFFFF;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.benefit-period-box {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 6px 14px;
    gap: 10px;
    width: 147px;
    min-width: 147px;
    height: 21px;
    background: #D9D9D9;
    border-radius: 110px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.benefit-period {
    width: auto;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 11px;
    line-height: 118.05%;
    color: #000000;
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* Income Options */
.income-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.income-options-title {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 12px;
    line-height: 155%;
    text-align: center;
    color: #E77C35;
    margin: 0;
    width: 100%;
    max-width: 864px;
    height: 19px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.income-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
}

.btn-income {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 14px 10px;
    gap: 10px;
    flex: 0 0 calc(30% - 4px);
    min-height: 43px;
    background: #1B8754;
    border: 1px solid #1B8754;
    border-radius: 32px;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 12px;
    line-height: 118.05%;
    text-align: center;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-income:hover {
    background: #0F5C37;
    border-color: #0F5C37;
}

.btn-income-with-icon {
    flex: 0 0 calc(40% - 4px);
}

.btn-icon {
    width: 16px;
    height: 16px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* Benefit Detail Boxes */
.benefit-detail-box {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 20px 24px;
    gap: 0;
    width: 100%;
    min-height: 100px;
    background: #FFFFFF;
    border: 1px solid #00854F;
    border-radius: 32px;
    margin-top: 20px;
    animation: slideDown 0.3s ease-out;
}

.benefit-detail-box .row {
    width: 100%;
    margin: 0;
    align-items: center;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.benefit-detail-title {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 15px;
    line-height: 118.05%;
    color: #00854F;
    margin-bottom: 16px;
    text-align: left;
}

.benefit-input-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.benefit-label-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.benefit-label-row .form-label-icon {
    flex: 1;
    text-align: left;
}

.input-prazo {
    box-sizing: border-box;
    padding: 10px 16px;
    width: 40%;
    min-width: 100px;
    max-width: 150px;
    height: 40px;
    background: #FFFFFF;
    border: 1px solid #00854F;
    border-radius: 32px;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    color: #000000;
    text-align: center;
    flex-shrink: 0;
}

.input-prazo:focus {
    outline: none;
    border-color: #1B8754;
}

.benefit-result-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    gap: 20px;
    width: 100%;
    height: 100%;
    min-height: 80px;
    background: #00854F;
    border-radius: 21px;
}

.benefit-result-full {
    width: 100%;
}

.benefit-result-label {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 118.05%;
    color: #FFFFFF;
    text-align: left;
    flex: none;
    order: 0;
}

.benefit-result-value {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 26px;
    line-height: 118.05%;
    display: flex;
    align-items: center;
    color: #FFFFFF;
    text-align: right;
    flex: none;
    order: 1;
    white-space: nowrap;
}

/* Responsividade para content boxes */
@media (max-width: 991px) {
    .content-box-left,
    .content-box-right {
        height: auto;
        min-height: 400px;
        margin-bottom: 20px;
    }
}

/* Form Styles */
.form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: space-between;
    height: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.form-label-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.form-group:first-child .form-label-icon {
    justify-content: flex-start;
}

.form-group:last-child .form-label-icon {
    justify-content: space-between;
}

.form-label-icon .icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.label-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-label {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 118.05%;
    color: #000000;
    margin: 0;
    flex: none;
    flex-grow: 0;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-item input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #00854F;
}

.radio-item label {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #000;
    margin: 0;
    cursor: pointer;
}

.slider-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00854F;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00854F;
    cursor: pointer;
    border: none;
}

.slider-value {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 15px;
    line-height: 118.05%;
    text-align: right;
    color: #0F5C37;
    flex: none;
    flex-grow: 0;
    margin-left: auto;
}

/* Input Money */
.input-money {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 9px 17px;
    gap: 10px;
    width: 165.75px;
    height: 40px;
    border: 1px solid #1B8754;
    border-radius: 32px;
    flex: none;
    order: 1;
    flex-grow: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    text-align: right;
    outline: none;
    margin-left: auto;
}

.input-money:focus {
    border-color: #00854F;
    box-shadow: 0 0 0 2px rgba(0, 133, 79, 0.1);
}

/* Input Percent */
.input-percent {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 9px 17px;
    gap: 10px;
    width: 103.5px;
    height: 40px;
    border: 1px solid #1B8754;
    border-radius: 32px;
    flex: none;
    order: 1;
    flex-grow: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    text-align: right;
    outline: none;
    margin-left: auto;
}

.input-percent:focus {
    border-color: #00854F;
    box-shadow: 0 0 0 2px rgba(0, 133, 79, 0.1);
}

/* Projection Box */
.projection-box {
    margin: 0 auto;
    width: 100%;
    height: auto;
    background: linear-gradient(135deg, #00854F 0%, #1B8754 100%);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex: none;
    order: 4;
    flex-grow: 0;
}

.projection-text {
    margin: 0 auto;
    width: 100%;
    max-width: 334px;
    height: auto;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 118.05%;
    color: #FFFFFF;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    text-align: center;
}

.projection-value-box {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 6px 4px;
    gap: 10px;
    margin: 0 auto;
    width: 100%;
    max-width: 334px;
    height: 42px;
    background: #FFFFFF;
    border: 1px solid #FFFFFF;
    border-radius: 5px;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

.projection-value {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 15px;
    line-height: 118.05%;
    color: #1B8754;
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* Blazor Error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
