@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700;800&amp;display=swap");

* {
	font-family: "Open Sans", sans-serif;
	margin: 0;
	padding: 0;
}

.calculator {
	margin: 0 auto;
	max-width: 825px;
	padding-bottom: 60px;
	box-shadow: 0px 2px 75px rgba(230, 224, 224, 0.5);
	background-color: rgba(255, 255, 255, 1);
}
.calculator .container {
	margin: 0 auto;
	padding: 0 60px 0 50px;
	display: flex;
	flex-direction: column;
}

.calculator h4 {
	color: rgba(190, 12, 12, 1);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.01px;
}

.calculator h6 {
	color: rgba(46, 49, 48, 1);
	font-size: 16px;
	font-weight: 600;
	text-align: end;
}

.calculator .field {
	display: flex;
	align-items: center;
	justify-content: end;
}

.calculator .field > div {
	position: relative;
	margin-left: 10px;
}

.calculator .field > div span {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: 10px;
	font-size: 20px;
	color: #9ca1a1;
}

.calculator .field > div.percent span {
	right: 10px;
	left: unset;
}
.calculator .field > div input:not(:placeholder-shown) + span {
	color: black;
}

.calculator .field input {
	border-radius: 7px;
	border: 2px solid rgba(181, 181, 181, 1);
	padding: 14px 14px 14px 26px;
	max-width: 140px;
	font-size: 18px;
	outline: none;
}
.calculator .field input:focus-within {
	border: 2px solid #be0c0c;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

input[type="number"] {
	-moz-appearance: textfield;
}

.calculator .fields .tooltip span {
	display: inline-block;
	background-color: #908e8e;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	position: unset;
	color: white;
	transform: unset;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}
.calculator .fields .tooltip p {
	position: absolute;
	background-color: #be0c0c;
	text-align: center;
	color: white;
	top: -20px;
	right: 0;
	transform: translate(50%, -100%);
	width: 250px;
	padding: 12px;
	border-radius: 8px;
	opacity: 0;
	visibility: hidden;
	transition: 0.5s;
	font-size: 14px; 
}

.calculator .fields .tooltip span:hover + p {
	opacity: 1;
	visibility: visible;
}

header {
	background-color: #be0c0c;
	padding: 20px 0;
	border-radius: 16px 16px 0px 0px;
	display: flex;
	align-items: center;
	justify-content: center;
}
header svg {
	height: 50px;
}
header h2 {
	color: rgba(255, 255, 255, 1);
	font-size: 30px;
	font-weight: 500;
	text-align: center;
}

.loan-type {
	margin: 40px 0 40px 40px;
	display: flex;
	align-items: center;
}

.loan-type h4 {
	margin-right: 20px;
}

.loan-type > div {
	display: flex;
	align-items: center;
}
.loan-type > div:first-of-type {
	margin-right: 40px;
}

.loan-type > div h6 {
	margin-right: 10px;
}

.loan-type > div h6:last-of-type {
	margin-left: 40px;
}

.regular-radio {
	display: none;
}

.regular-radio + label {
	-webkit-appearance: none;
	background-color: #fafafa;
	border: 1px solid #cacece;
	box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.05), 0px 2px 2px rgba(0, 0, 0, 0.1), 0px 3px 1px rgba(0, 0, 0, 0.051064);
	padding: 12px;
	border-radius: 50px;
	display: inline-block;
	position: relative;
	cursor: pointer;
}

.regular-radio:checked + label:after {
	content: " ";
	width: 14px;
	height: 14px;
	border-radius: 50px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #be0c0c;
	box-shadow: inset 0px 0px 10px #be0c0c;
	text-shadow: 0px;
	font-size: 32px;
}

.bank-statements .title {
	display: flex;
	align-items: center;
}

.bank-statements .title select {
	-webkit-appearance: none;
	-moz-appearance: none;
	background: transparent;
	background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAlElEQVR4nO2TQQ4BQRBFPxvS8+ZAVracg7iGi7iGEaFrjmVFCxnJRHrI0GLTb9Obyntdi5Iymcx/MZgGafBq5lCWk1oa95bXsDQ4+6LYrKVhdMa5mYeTwb53xGBxCxiEWKQlDx52H23RFUki74ocnZsnk7ciKw+XRnp/DbaVNPpaHt0k1c+faSLVT+QP3t1FJqPkXAGkbE3XS6xR1gAAAABJRU5ErkJggg==");
	background-repeat: no-repeat;
	background-position-x: 90%;
	background-position-y: 50%;
	margin-left: 20px;
	border-radius: 20px;
	border: 2px solid rgba(190, 12, 12, 1);
	padding: 10px 46px 10px 20px;
	outline: none;
	color: #be0c0c;
	font-weight: 600;
	cursor: pointer;
}

.bank-statements .fields,
.grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	row-gap: 20px;
	column-gap: 25px;
	margin-top: 30px;
	justify-items: flex-end;
}
.bank-statements .fields > div {
	display: flex;
	flex-direction: column;
	align-items: end;
}
.bank-statements .fields > div .field {
	margin-bottom: 20px;
	position: relative;
}

.bank-statements.months-12 .fields > div:nth-child(2),
.bank-statements.months-12 .fields > div:nth-child(4) {
	display: none;
}

/*  */
.net-income h4,
.monthly-debts h4,
.monthly-housing h4,
.available-funds h4,
.financing h4 {
	text-align: center;
	margin: 20px 0;
}

.three-inputs .fields .top {
	display: flex;
	align-items: center;
	justify-content: end;
	margin-bottom: 20px;
}

.three-inputs .fields > .field > div:last-of-type {
	width: 50%;
	display: flex;
}
.three-inputs .fields > .field > div:last-of-type input {
	max-width: 100%;
	width: 100%;
}

.monthly-debts .top-advanced {
	display: none;
}
.monthly-debts .fields {
	display: flex;
}
.monthly-debts.advanced .fields {
	display: block;
}
.monthly-debts.advanced .fields .top {
	display: none;
}
.monthly-debts:not(.advanced) .fields .field h6 {
	max-width: 160px;
}
.monthly-debts.advanced .top-advanced {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	row-gap: 20px;
	margin-bottom: 20px;
}

.monthly-debts .btn {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 30px;
}
.monthly-debts .btn button {
	border-radius: 41px;
	border: 1.5px solid rgba(190, 12, 12, 1);
	background-color: unset;
	color: #be0c0c;
	padding: 10px 30px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: 0.2s;
}
.monthly-debts .btn button:hover {
	background-color: #be0c0c;
	color: white;
}

.monthly-debts input {
	max-width: 140px !important;
}
.monthly-debts .fields > .field > div {
	width: unset !important;
}
.monthly-debts .fields > .field {
	margin-bottom: 20px;
}
.final-cost {
	display: flex;
	align-items: center;
	flex-direction: column;
	background-color: #f2f2f2;
	width: 90%;
	margin: 75px auto;
	padding: 30px 0;
}

.final-cost > div {
	padding-bottom: 28px;
}
.final-cost > div:first-of-type h6 {
	color: rgba(46, 49, 48, 1);
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -0.01px;
	margin-bottom: 21px;
	text-align: center;
}
.final-cost > div:first-of-type span {
	color: rgba(78, 182, 35, 1);
	font-size: 60px;
	font-weight: 700;
	letter-spacing: -0.03px;
	text-align: center;
}
.final-cost div {
	width: 80%;
	text-align: center;
}
.final-cost div:not(:last-of-type) {
	border-bottom: 1px solid rgba(151, 151, 151, 1);
}

.final-cost > div:not(:first-of-type) {
	padding: 20px 0;
}
.final-cost > div:not(:first-of-type) h6 {
	color: rgba(46, 49, 48, 1);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.01px;
	text-align: center;
	margin-bottom: 16px;
}
.final-cost > div:not(:first-of-type) span {
	color: rgba(190, 12, 12, 1);
	font-size: 40px;
	font-weight: 700;
	letter-spacing: -0.01px;
}
.calculator .financing .field {
	position: relative;
}

.calculator .field span.error,
.calculator .mandatory {
	position: absolute;
	bottom: -17px;
	color: #ff1d4e;
	font-size: 12px;
	display: none;
}
.calculator .mandatory{
	bottom: unset;
	top: -17px;
}
.calculator .field.error span.error {
	display: block; 
}
.calculator .mandatory.show-mandatory {
	display: block; 
}
.calculator .field.error {
	margin-bottom: 10px;
}

.net-income .fields .field,
.monthly-debts .fields .field,
.monthly-housing .fields .field{
	position: relative;
}

.calculator .mandatory.show-mandatory.hoa-no-mandatory{
	display: none;
}

#calculator_cta,
.calculator .action_button { 
	background-color: #a3050d !important;
	border-radius: 6px;
	height: 40px !important;
	margin: 0 auto !important;
	color: #FFF;
	line-height: 40px !important;
	width: 200px;
	border:none;
	cursor: pointer;
	font-size: 16px;
}

.calculator .action_button{
	font-weight: 600;
	width: unset;
	height: unset !important;
    padding: 5px 15px;
}

.advise-container-text h3{
	font-size: 20px;
	text-align: center;
    margin-top: 30px;
	margin-bottom: 15px;
}

.advise-container-text p{
	text-align: center;
}

.advise-container-button{
	width: 100%;
	text-align: center;
    margin-top: 20px;
}

.advise-container.hide-container{
	display: none;
}

.fill-all-fields-container.hide-container{
	display: none;
}

.fill-all-fields-container{
	margin-bottom: 20px;
}

.fill-all-fields-container p{
	text-align: center;
}

#arrowexpand { display:inline-block; font-size:50px; transform: rotate(-90deg); color:#FFF; }

#arrowexpand.expanded { transform:scaleY(-1) rotate(-90deg); }


@media (max-width: 765px) {
	.calculator .container {
		padding: 0 24px;
	}
	.grid {
		grid-template-columns: repeat(1, 1fr);
	}
	.bank-statements .fields > div:nth-child(2) {
		order: 3;
	}
	.bank-statements .fields > div:nth-child(4) {
		order: 4;
	}

	.three-inputs .fields .top {
		display: flex;
		align-items: end;
		flex-direction: column;
		margin-bottom: 10px;
	}
	.three-inputs .fields .top > div:first-of-type {
		margin-bottom: 10px;
	}
	.loan-type {
		margin: 40px 0 40px 0;
	}
	.calculator h4 {
		font-size: 18px;
	}
	.loan-type > div h6:last-of-type {
		margin-left: 20px;
	}
	.calculator h6 {
		font-size: 14px;
	}
	.calculator .field input {
		padding: 12px 12px 12px 26px;

		font-size: 16px;
	}
	.monthly-debts .fields {
		flex-direction: column;
	}
	.monthly-debts.advanced .top-advanced {
		grid-template-columns: repeat(1, 1fr);
	}
	.final-cost {
		width: 100%;
		margin: 40px auto;
		padding: 30px 0 30px 0;
	}
	.final-cost > div:first-of-type h6 {
		font-size: 21px;
		margin-bottom: 10px;
	}
	.final-cost > div:first-of-type span {
		font-size: 40px;
	}
	.final-cost > div {
		padding-bottom: 10px;
	}
	.final-cost > div:not(:first-of-type) h6 {
		font-size: 18px;
	}
	.final-cost > div:not(:first-of-type) h6 {
		margin-bottom: 4px;
	}
	.final-cost > div:not(:first-of-type) span {
		font-size: 36px;
	}
	header { gap:10px; padding: 20px 30px 20px 20px; }
	header svg {  height: 30px; width: auto; }
	header h2 { font-size: 20px; margin-right:0px !important; }
}

@media (max-width: 330px) {
	.loan-type > div h6 {
		font-size: 12px;
	}
	.loan-type > div h6:last-of-type {
		margin-left: 10px;
	}
	.calculator .field input {
		max-width: 100px !important;
		padding: 12px 12px 12px 26px !important;
	}
	.three-inputs .fields > .field > div:last-of-type,
	.three-inputs .fields > .field > div:last-of-type {
		width: 100% !important;
	}
}
@media (max-width: 650px) {
.bank-statements .fields
	{
		grid-template-columns: repeat(1, 1fr); 
	}
}