body.page-calculator-widget {
    & header, & footer {
        display: none !important;
    }

    /* Form overrides */
    .popup-modal {
        height: 400px !important;
        left: 0;
        top: 0;
        transform: unset;
        border-radius: 0;
        box-shadow: none;
		
		& .form-wrapper {
			@media (max-width: 370px) {
				justify-content: flex-start !important;
			}
		}

        & a.logo {
            display: none !important;
        }

        & .gform-confirmation-message {
            font-size: 2rem;
        }

        & form {
            & .gfield_radio {
                display: flex !important;
                flex-direction: row !important;
                flex-wrap: wrap !important;
                gap: 1rem !important;

                &#input_6_42 {
                    & .gchoice {
                        width: calc(50% - 2rem) !important;
                    }
                }

                & .gchoice {
                    width: calc(33.33% - 1rem) !important;

                    & label {
                        font-size: 1.2rem !important;
						
						@media (max-width: 473px) {
							height: 100%;
                            display: flex;
                            align-items: center;
                            justify-content: center;
							padding: 1rem 0 !important;
						}
						
						@media (max-width: 370px) {
							font-size: 1rem !important;
						}
                    }
                }
            }

            textarea#input_4_48 {
                height: 10rem !important;
                min-block-size: unset !important;
            }
        }
		
		@media (max-width: 370px) {
			& form {
/* 				p.gf_progressbar_title {
					font-size: 1.2rem !important;
				} */

				& legend.gfield_label.gform-field-label {
					font-size: 1.2rem !important;
				}

				& .gform_next_button  {
					font-size: 1.2rem !important;
				}
				
				& .gf_progressbar_wrapper {
					display: none !important;
				}

				& .gform-page-footer.gform_page_footer.top_label {
					flex-wrap: nowrap;
				}

				& .gform-page-footer.gform_page_footer.top_label input {
					font-size: 1rem !important;
				}
			}
		}
    }
    
    & #overlay {
        display: none !important;
    }
}

.chart_widget {
    width: 100%;
    background: #F4F4F4;
    border-radius: 1rem;

    & .section_inner {
        width: 100%;
        
        & .calculator_section {
            width: 100%;
            display: flex;
            flex-direction: row;
            align-items: flex-start;
            justify-content: space-between;
            flex-wrap: wrap;
            padding: 3rem 5rem;

            @media (max-width: 767px) {
                padding: 2rem;
            }

            & .left_side {
                width: 48%;
                background: #03353d;
                border-radius: 1rem;
                padding: 2rem;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;

                @media (max-width: 500px) {
                    padding: 1rem;
                }

                & img {
                    width: 12rem;
                    max-width: 100%;

                    @media (max-width: 500px) {
                        width: 9rem;
                    }
                }

                & .monthly_payment {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;

                    & h4 {
                        width: 100%;
                        text-align: center;
                        font-size: 1.6rem;
                        font-weight: 400;
                        color: #fff;

                        @media (max-width: 500px) {
                            font-size: 1.2rem;
                            margin: 1rem 0;
                        }

                        & span {
                            font-size: inherit;
                            font-weight: inherit;
                            color: inherit;

                            @media (max-width: 500px) {
                                display: none;
                            }
                        }
                    }

                    & .figure_outer {
                        display: flex;
                        flex-direction: column;
                        align-items: flex-end;

                        & span.figure {
                            font-size: 6.7rem;
                            font-weight: 700;
                            color: #fff;

							@media (max-width: 991px) {
								font-size: 5.4rem;
							}

							@media (max-width: 767px) {
								font-size: 4rem;
							}

							@media (max-width: 500px) {
								font-size: 3rem;
							}
                        }

                        & span.smallprint {
                            font-size: 1.2rem;
                            font-weight: 400;
                            color: #fff;
                        }
                    }
                }
            }

            & .right_side {
                width: 48%;
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                flex-wrap: wrap;

                & .interest_rate {
                    width: 100%;
                    background: #D8D8D8;
                    border-radius: 1rem;
                    padding: 1rem;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    margin-bottom: 1rem;

                    & h4 {
                        width: 100%;
                        text-align: center;
                        font-size: 1.2rem;
                        font-weight: 400;
                        margin: 0 0 1rem;
                        color: #033D46;
                    }

                    & >span {
                        width: 100%;
                        text-align: center;
                        font-size: 4rem;
                        font-weight: 700;
                        color: #033D46;

						@media (max-width: 991px) {
							font-size: 3.4rem;
						}

						@media (max-width: 767px) {
							font-size: 2.8rem;
						}

                        @media (max-width: 500px) {
                            font-size: 2rem;
                        }
                    }
                }
                
                & .total_interest,
                & .total_amount_payable {
                    width: 48%;

                    & h4 {
                        font-size: 1.1rem;
                        font-weight: 400;
                        color: #033D46;

                        @media (min-width: 501px) {
                            & br {
                                display: none !important;
                            }
                        }

                        @media (max-width: 500px) {
                            margin: 0 0 1rem;
                        }

                        & span {
                            font-size: inherit;
                            font-weight: inherit;
                            color: inherit;

                            @media (max-width: 500px) {
                                display: none;
                            }
                        }
                    }

                    & >span {
                        font-size: 3rem;
                        font-weight: 700;
                        color: #033D46;

                        @media (max-width: 500px) {
                            font-size: 1.6rem;
                        }
                    }
                }
            }

            & .buttons_outer {
                width: 100%;
                margin-top: 3rem;

                @media (max-width: 767px) {
                    margin-top: 2rem;
                }

                & a.button {
                    font-size: 1.6rem;
                    font-weight: 700;
                    width: 100%;
                    max-width: 100%;
                    border-radius: 1rem;
                }
            }

            & p.smallprint {
                font-size: 1.2rem;
                margin: 2rem 0 0;
            }

            & p.disclaimer {
                font-size: 1rem;
                margin: 1rem 0 0;

                & a {
                    font-size: 1rem;
                }
            }
        }

    }
}

/* Animation for the spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}