/* ==========================================================================
   BASE STYLES
   ========================================================================== */

/* Base typography and form elements */
body,
input,
select,
textarea,
button {
    font-family: var(--fm-Poppins);
}

/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */

/* Input fields styling */
input:not(.custom-input-wrapper input),
select {
    width: 100%;
    display: block;
    padding: 15px 10px;
    accent-color: var(--c-1F915A);
    cursor: pointer;
}

/* Remove number input spinners */
.fields_wrap input::-webkit-inner-spin-button,
.fields_wrap input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}

/* Range input styling */
body input[type="range"] {
    padding: 0;
    margin: 10px 0 5px;
}

/* Custom suffix wrapper input */
div.custom-suffix-wrapper input {
    padding: 0;
}

/* Select dropdown styling */
.option_list select {
    border-bottom: 2px solid #EFEFEF;
    padding-bottom: 5px;
    appearance: none;
    background-position-x: right !important;
    background-position-y: center !important;
    background-size: contain;
}

.option_list select:not([name="select stream"]) {
    background: url(../images/search-icon.svg) no-repeat;
}

select[name="select stream"],
.calculator_step.step_3 select {
    background: url(../images/down-arrow.svg) no-repeat;
}

.step_3 select {
    color: #808080;
}

/* ==========================================================================
   LAYOUT AND CONTAINERS
   ========================================================================== */

/* Main calculator wrapper */
.calculator_wrap {
    padding: 40px;
    background: var(--c-FFFFFF);
    box-shadow: 0px 0px 33px 0px rgba(0, 0, 0, 0.10);
    margin-top: -30%;
    position: relative;
}

/* Container max-width */
.calculator_sec .container,
.content_sec .container {
    max-width: 1300px;
    padding: 0 var(--fs-20);
}

/* Grid layouts */
.calculator_fields:not(/*.step_3 .calculator_fields,*/ .step_3 .calculator_fields),
.revert_container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
}

/* ==========================================================================
   SPACING AND MARGINS
   ========================================================================== */

.section_heading:not(.steps_progress .section_heading),
.calculator_fields,
.steps_progress,
/* .step_3 .fields_wrap:not(:last-child),  */
.step_3 .fields_wrap:not(:last-child) {
    margin-bottom: 40px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

/* Labels and headings */
.input_fields label,
.fields_heading p,
.repayment_emi p {
    color: var(--c-1F915A);
    font-size: var(--fs-20);
    font-weight: 400;
    line-height: var(--lh-29);
    backdrop-filter: blur(2px);
}

.section_heading h2 {
    color: var(--c-1F915A);
    font-size: var(--fs-35);
    font-weight: 400;
    line-height: var(--lh-29);
}

.total_line p,
.total_formula p {
    font-size: var(--fs-20);
}

.total_formula p {
    color: var(--c-1F915A);
}

.expenses_ammount p {
    font-size: var(--fs-29);
    color: var(--c-1F915A);
    font-weight: 600;
}

/* ==========================================================================
   INPUT FIELD COMPONENTS
   ========================================================================== */

/* Input fields layout */
.input_fields:not(.repayment_emi),
.range_input ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Custom input wrapper */
.custom-input-wrapper:not(.repayment_emi .custom-input-wrapper) {
    display: flex;
    align-items: center;
    text-align: end;
    font-size: var(--fs-20);
    font-weight: 400;
}

.custom-input-wrapper input:not(input[type="radio"]) {
    width: 100%;
    max-width: 80px;
}

.custom-input-wrapper span {
    line-height: var(--lh-21);
}

label[for="tution-fees"]~.custom-input-wrapper {
    border: 1px solid #A6A6A6;
    padding: 8.5px 5px;
}

/* Input field styling */
.input_fields input {
    font-size: var(--fs-20);
    font-weight: 500;
    text-align: end;
}

.input_fields input::placeholder {
    text-align: end;
}

/* Range input labels */
.range_input li {
    color: #808080;
    font-size: var(--fs-16);
    font-weight: 400;
    line-height: var(--lh-29);
}

/* Custom suffix wrapper */
.custom-suffix-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #A6A6A6;
    width: 100%;
    max-width: 100px;
    text-align: end;
    padding: 5px 10px;
    font-size: var(--fs-16);
    font-weight: 400;
    line-height: var(--lh-29);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.emi_calculate_btn {
    text-align: end;
}

.calculate_btn, 
.back_button {
    background-color: var(--c-459867);
    color: var(--c-FFFFFF);
    padding: 10px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-size: var(--fs-16);
    font-weight: 500;
    line-height: normal;
    font-family: var(--fm-Poppins);
    display: inline-block;
    transition: 0.3s;
    text-align: center;
    min-width: 196px;
}
.calculate_btn{
    border: 1px solid transparent;
}
.revert_container .back_button {
    background: transparent;
    border: 1px solid var(--c-459867);
    color: var(--c-459867);
}

/* ==========================================================================
   EXPENSES SECTION
   ========================================================================== */

.expenses_wrap {
    background: #F9F9F9;
    padding: 25px;
    padding-left: 50px;
}

.expenses_wrap ul li {
    display: grid;
    grid-template-columns: 30% calc(70% - 60px);
    column-gap: 60px;
    align-items: center;
}

.revert_container {
    align-items: center;
}

/* ==========================================================================
   STEP 2 STYLES
   ========================================================================== */

/* Progress bar */
.steps_progress {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 60px;
    align-items: center;
}

.progress_inner ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.progress_icons img {
    max-width: 30px;
    margin: auto;
}

.progress_icn_wrap {
    width: max-content;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.progress_inner ul li:not(:last-child) .progress_icn_wrap:after {
    content: "";
    background: url(https://unifiedvisionwealth.com/wp-content/themes/uv-wealth/images/HorizontalBorder.svg);
    position: absolute;
    top: 50%;
    height: 100%;
    width: 200px;
    display: inline-block;
    left: 100%;
    transform: translateY(-50%);
    background-position: center;
    background-repeat: repeat-x;
    background-size: contain;
}

/* Repayment EMI section */
.repayment_emi .custom-input-wrapper ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}

/* .step_2 .emi_calculate_btn {
    text-align: center;
} */

.repayment_emi p {
    margin-bottom: 10px;
}

.repayment_emi label {
    color: var(--c-0C0C0C);
}

.repayment_emi input[type="radio"] {
    appearance: none;
    border: 1px solid var(--c-0C0C0C);
    height: var(--fs-15);
    width: var(--fs-15);
    border-radius: 50%;
}

.repayment_emi input[type="radio"]:checked {
    background: #00a56f;
    border-color: #00a56f;
}

/* ==========================================================================
   STEP 3 & 4 STYLES
   ========================================================================== */

/* Calculator layout for steps 3 and 4 */
/* .step_3 .calculator_inner,  */
.step_3 .calculator_inner {
    display: grid;
    grid-template-columns: calc(50% - 90px) 25% 25%;
    align-items: center;
    gap: 45px;
}

/* Calculator details */
.calculator_details > div:not(:last-child) {
    margin-bottom: var(--fs-20);
}

.amount p, 
.est_returns p {
    margin-left: 10px;
}

.calculator_details p {
    color: #848484;
    font-size: var(--fs-16);
    font-weight: 400;
    line-height: normal;
}

.calculator_details p span {
    color: var(--c-0C0C0C);
    font-size: var(--fs-27);
    font-weight: 600;
    line-height: normal;
    display: block;
}

/* Amount sections with colored borders */
.amount {
    border-left: var(--fs-12) solid #75C29D;
}

.est_returns {
    border-left: var(--fs-12) solid var(--c-1F915A);
}

/* Total amount styling */
.total_amount {
    margin-top: 40px;
}

.total_amount p {
    color: var(--c-1F915A);
    font-size: var(--fs-20);
    font-weight: 400;
    line-height: normal;
}

.total_amount p span {
    color: var(--c-1F915A);
    font-size: var(--fs-29);
    font-weight: 600;
    line-height: normal;
}

/* Revert container for steps 3 and 4 */


.step_3 .revert_container {
    margin-top: 40px;
}

/* ==========================================================================
   CALCULATION BOX (STEP 4)
   ========================================================================== */

.calculation_box {
    background: #F9F9F9;
    padding: var(--fs-20);
}

.calculation_box > ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}


.calculation_box ul ul li {
    display: flex;
    justify-content: space-between;
}

.calculation_box ul ul li:not(:last-child) {
    margin-bottom: 10px;
}

.calculation_box ul ul li:first-child p {
    font-size: var(--fs-20);
    font-weight: 600;
    color: var(--c-1F915A);
}

.calculation_box ul ul li:not(:first-child) p {
    font-size: var(--fs-18);
    font-weight: 400;
    color: var(--c-0C0C0C);
}

/* .progress_inner ul li:not(.active) .progress_icons :where(img, p){
    opacity: 0.4;
} */
.calculator_step {
    display: none;
}

.calculator_step.step_1 {
    display: block;
}

.step_3 canvas{
    height: 100% !important;
    width: 100% !important;
}

.fields_wrap{
    position: relative;
}
.error-message{
    position: absolute;
    /* top: 100%; */
    color: red;
    font-size: 10px;
}

.progress_icons *{
    opacity: 0.4;
}

.step_1[style*="block"] .step_1_icons_1 *{
    opacity: 1;
}

.step_2[style*="block"] .step_2_icons_1 *{
    opacity: 1;
}
.step_2[style*="block"] .step_2_icons_2 *{
    opacity: 1;
}
.step_3[style*="block"] .step_3_icons_2 *{
    opacity: 1;
}
.step_3[style*="block"] .step_3_icons_3 *{
    opacity: 1;
}
.step_3[style*="block"] .step_3_icons_1 *{
    opacity: 1;
}


.content_wrap .section_heading h1 {   
    font-size: 54px;
    letter-spacing: -1.16px;
}

.content_wrap :where(h2:not(:first-child), 
                     h3:not(:first-child), 
                     h5:not(:first-child), 
                     h6:not(:first-child)) {
    margin: 30px 0;
}

.content_wrap h3 {
    font-size: var(--fs-29);
}

.content_wrap h4 {
    font-size: var(--fs-18);
}

.content_wrap :where(h1, h2, h3, h4, h5, h6) {
    color: var(--c-1F915A);
    font-weight: 300; 
}

.content_wrap ul:not(:last-child), 
.content_wrap p:not(:last-child) {
    margin-bottom: 30px;
}

.content_wrap ul li:not(.benifits_list li) {
    margin-bottom: 0;
}

.content_wrap p, 
.content_wrap li {
    color: var(--c-0C0C0C);
    font-weight: 300;
    backdrop-filter: blur(2px);
    line-height: 29px;
    font-size: var(--fs-16);
}
.disclaimer_con p{
    font-size:12px;
    font-weight: 300;
    line-height: normal;
}

section.content_sec{
    padding-top: 0;
}

@media screen and (min-width: 767px){
    
.calculation_box > ul > li:not(:last-child) {
    padding-right: 30px;
    border-right: 1px solid rgba(0, 0, 0, 0.40);
}

.calculation_box > ul > li:not(:first-child) {
    padding-left: 30px;
}
/* .calculator_step.step_3 .revert_container,  */
.calculator_step.step_3 .revert_container {
    display: flex;
    justify-content: center;
}
}
@media screen and (max-width: 767px){

    .content_wrap .section_heading h1 {
        font-size: var(--fs-35);
    }
 div[class].section_heading {
        margin-bottom: 20px !important;
    }

    .calculator_wrap{
        padding: 20px;
        margin-top: -20%;
    }
    .calculator_fields:not( .step_3 .calculator_fields), .revert_container, .steps_progress, .repayment_emi .custom-input-wrapper ul, .step_3 .calculator_inner{
        grid-template-columns: auto;
        gap: 30px;
    }

    .progress_icons p{
        font-size: 14px;
    }

    .progress_inner ul li:not(:last-child) .progress_icn_wrap:after{
        width: 80px;
        background-size: unset;
    }
    .expenses_wrap{
        padding: 15px;
    }
    .total_line p, .total_formula p{
        font-size: 16px;
    }
    .expenses_ammount p{
        font-size: 20px;
    }
    .expenses_wrap ul li{
        grid-template-columns: 25% calc(75% - 20px);
        column-gap: 20px;
        &:not(:last-child){
            margin-bottom: 15px;
        }
    }

    .repayment_emi .custom-input-wrapper ul{
        gap: 15px;
    }

    .step_2 .expenses_wrap ul li{
         grid-template-columns: 30% calc(70% - 20px);
    }

    .emi_calculate_btn{
        text-align: center;
    }

    .calculation_box > ul{
        grid-template-columns: auto;
        gap: 15px;
    }
    .calculation_box ul ul li:not(:last-child){
        margin-bottom: 5px;
    }
}