/* General */
.financial-calculator-row {
	clear: both;
	width: 100%;
}
.financial-calculator-col {
	float: left;
}

.financial-calculator-form .error {
	color: #ff0000;
	margin-top: 5px;
}

.financial-calculator-result .result_emphasize,
.financial-calculator-result .result_emphasize label
{
	color: #ff0000;
	font-size: 22px;
}

/* Wizard */
.financial-calculator-wizard .financial-calculator-row .financial-calculator-col {
	width: 100%;
}
.financial-calculator-wizard .gform_button.gform_button_back {
	color: #d9272d !important;
}
.financial-calculator-wizard .gform_button {
	background-color: #fff !important;
	border: 1px solid #d9272d !important;
	color: #000 !important;
	display: block !important;
	margin: 15px auto 0 auto !important;
	width: 50% !important;
}
.financial-calculator-wizard .financial-calculator-dropdown {
	display: none;
	padding: 15px;
}

@media (max-width: 768px) {
	.financial-calculator-wizard .gform_button {
		width: 100% !important;
	}
}

/* Education */
.financial-calculator-education .financial-calculator-row .financial-calculator-col
{
	width: 30%;
}
.financial-calculator-education .financial-calculator-row .financial-calculator-col:nth-of-type(1)
{
	padding-right: 10px;
}
.financial-calculator-education .financial-calculator-row .financial-calculator-col:nth-of-type(2)
{
	padding: 0 5px;
}
.financial-calculator-education .financial-calculator-row .financial-calculator-col:nth-of-type(3)
{
	padding-left: 10px;
}

/* Fitness */
.financial-calculator-fitness table tr td:nth-of-type(2) div input {
	margin-right: 2px;
}
.financial-calculator-fitness table tr td:nth-of-type(2) div input:not(:first-of-type) {
	margin-left: 15px;
}

/* Loan */
.financial-calculator-loan .financial-calculator-row .financial-calculator-col:nth-of-type(1)
{
	width: 50%;
}
.financial-calculator-loan .financial-calculator-row .financial-calculator-col:nth-of-type(2) {
	padding: 0 0 0 20px;
	width: 50%;
}

/* Loan comparison */
.financial-calculator-loan-comparison .financial-calculator-row .financial-calculator-col
{
	min-height: 50px;
	width: 30%;
}
.financial-calculator-loan-comparison .financial-calculator-row .financial-calculator-col:nth-of-type(1)
{
	padding-right: 10px;
}
.financial-calculator-loan-comparison .financial-calculator-row .financial-calculator-col:nth-of-type(2)
{
	padding: 0 5px;
}
.financial-calculator-loan-comparison .financial-calculator-row .financial-calculator-col:nth-of-type(3)
{
	padding-left: 10px;
}

/* Loan prepayment */
.financial-calculator-loan-prepayment .financial-calculator-row .financial-calculator-col:nth-of-type(1)
{
	width: 50%;
}
.financial-calculator-loan-prepayment .financial-calculator-row .financial-calculator-col:nth-of-type(2) {
	padding: 0 0 0 20px;
	width: 50%;
}

/* Loan prepayment comparison */
.financial-calculator-loan-prepayment-comparison .financial-calculator-row .financial-calculator-col
{
	min-height: 50px;
	width: 30%;
}
.financial-calculator-loan-prepayment-comparison .financial-calculator-row .financial-calculator-col:nth-of-type(1)
{
	padding-right: 10px;
}
.financial-calculator-loan-prepayment-comparison .financial-calculator-row .financial-calculator-col:nth-of-type(2)
{
	padding: 0 5px;
}
.financial-calculator-loan-prepayment-comparison .financial-calculator-row .financial-calculator-col:nth-of-type(3)
{
	padding-left: 10px;
}

/* Loan qualify */
.financial-calculator-loan-qualify .financial-calculator-row .financial-calculator-col:nth-of-type(1) {
	width: 60%;
}
.financial-calculator-loan-qualify .financial-calculator-row .financial-calculator-col:nth-of-type(2) {
	padding: 60px 0 0 20px;
	width: 40%;
}

/* Monthly budget planner */
.financial-calculator-monthly-budget-planner .financial-calculator-row .financial-calculator-col {
	position: relative;
}
.financial-calculator-monthly-budget-planner .financial-calculator-row .financial-calculator-col:nth-of-type(1) {
	padding-right: 15px;
	width: 60%;
}
.financial-calculator-monthly-budget-planner .financial-calculator-row .financial-calculator-col:nth-of-type(2) {
	padding-top: 48px;
	width: 40%;
}
#financial-calculator-monthly-budget-chart {
	width: 100%;
}
#financial-calculator-monthly-budget-figures tbody tr td:nth-of-type(1) {
	white-space: nowrap;
}
#financial-calculator-monthly-budget-figures tbody tr.totals td:nth-of-type(1) {
	text-align: right;
}
#financial-calculator-monthly-budget-figures tbody tr td:nth-of-type(3) {
	text-align: right;
}
#financial-calculator-monthly-budget-figures label {
	display: inline-block;
	width: 70px;
}
#financial-calculator-monthly-budget-figures i {
	display: inline-block;
	height: 10px;
	width: 10px;
}
#financial-calculator-monthly-budget-figures {
	display: none;
}
#financial-calculator-monthly-budget-figures #pct_housing i {
	/*background-color: #c1cd23;*/
	background-color: #7cb5ec;
}
#financial-calculator-monthly-budget-figures #pct_food i {
	/*background-color: #8fc3ea;*/
	background-color: #434348;
}
#financial-calculator-monthly-budget-figures #pct_health i {
	background-color: #90ed7d;
}
#financial-calculator-monthly-budget-figures #pct_auto i {
	background-color: #f7a35c;
}
#financial-calculator-monthly-budget-figures #pct_education i {
	background-color: #8085e9;
}
#financial-calculator-monthly-budget-figures #pct_loan i {
	background-color: #f15c80;
}
#financial-calculator-monthly-budget-figures #pct_savings i {
	background-color: #e4d354;
}
#financial-calculator-monthly-budget-figures #pct_additional i {
	background-color: #2b908f;
}

@media (max-width: 820px) {
	/* Education */
	.financial-calculator-education .financial-calculator-row .financial-calculator-col {
		float: none;
		width: 100%;
	}
	.financial-calculator-education .financial-calculator-row .financial-calculator-col:nth-of-type(1) {
		padding-right: 0;
	}
	.financial-calculator-education .financial-calculator-row .financial-calculator-col:nth-of-type(2) {
		padding: 0;
	}
	.financial-calculator-education .financial-calculator-row .financial-calculator-col:nth-of-type(3) {
		padding-left: 0;
	}
	
	/* Loan */
	.financial-calculator-loan .financial-calculator-col {
		float: none;
	}
	.financial-calculator-loan .financial-calculator-row .financial-calculator-col:nth-of-type(1) {
		width: 100%;
	}
	.financial-calculator-loan .financial-calculator-row .financial-calculator-col:nth-of-type(2) {
		padding: 0;
		width: 100%;
	}
	
	/* Monthly budget planner */
	.financial-calculator-monthly-budget-planner .financial-calculator-col {
		float: none;
	}
	.financial-calculator-monthly-budget-planner .financial-calculator-row .financial-calculator-col:nth-of-type(1) {
		padding-right: 0;
		width: 100%;
	}
	.financial-calculator-monthly-budget-planner .financial-calculator-row .financial-calculator-col:nth-of-type(2) {
		width: 100%;
	}
}

@media (max-width: 640px) {
	/* Education */
	.financial-calculator-education td {
		display: block;
		width: 100%;
		white-space: normal !important;
	}
	
	/* Life insurance */
	.financial-calculator-life-insurance thead,
	.financial-calculator-life-insurance .thead
	{
		display: none !important;
	}
	.financial-calculator-life-insurance tr {
		display: block !important;
		width: 100%;
	}
	.financial-calculator-life-insurance th,
	.financial-calculator-life-insurance td
	{
		display: block;
		width: 100%;
		white-space: normal !important;
	}
	.financial-calculator-life-insurance td input {
		display: block;
	}
	
	.financial-calculator-life-insurance .gform_body .tbody1 td:nth-child(1) {
		font-weight: bold;
	}
	.financial-calculator-life-insurance .gform_body .tbody1 td:nth-child(2):before {
		content: 'Assuming Spouse 1 Dies First';
	}
	.financial-calculator-life-insurance .gform_body .tbody1 td:nth-child(3):before {
		content: 'Assuming Spouse 2 Dies First';
	}
	
	.financial-calculator-life-insurance .gform_body .tbody2 td:nth-child(1) {
		margin-top: 15px;
	}
	.financial-calculator-life-insurance .gform_body .tbody2 td:nth-child(1):before {
		content: "Child's Name";
	}
	.financial-calculator-life-insurance .gform_body .tbody2 td:nth-child(2) {
		display: none;
	}
	.financial-calculator-life-insurance .gform_body .tbody2 td:nth-child(3):before {
		content: 'Years Until College';
	}
	
	.financial-calculator-life-insurance .financial-calculator-result .tbody1 td:nth-child(1) {
		font-weight: bold;
	}
	.financial-calculator-life-insurance .financial-calculator-result .tbody1 td:nth-child(2):before {
		content: 'If Spouse 1 Dies First:';
		display: block;
	}
	.financial-calculator-life-insurance .financial-calculator-result .tbody1 td:nth-child(3):before {
		content: 'If Spouse 2 Dies First:';
		display: block;
	}
	
	.financial-calculator-life-insurance .financial-calculator-result .tbody2 td:nth-child(1) {
		font-weight: bold;
	}
	.financial-calculator-life-insurance .financial-calculator-result .tbody2 td:nth-child(2):before {
		content: 'Spouse 1:';
		display: block;
	}
	.financial-calculator-life-insurance .financial-calculator-result .tbody2 td:nth-child(3):before {
		content: 'Spouse 2:';
		display: block;
	}
	
	.financial-calculator-life-insurance .financial-calculator-result .tbody3 td:nth-child(1) {
		font-weight: bold;
	}
	.financial-calculator-life-insurance .financial-calculator-result .tbody3 td:nth-child(2):before {
		content: 'Spouse 1:';
		display: block;
	}
	.financial-calculator-life-insurance .financial-calculator-result .tbody3 td:nth-child(3):before {
		content: 'Spouse 2:';
		display: block;
	}
	
	/* Loan */
	.financial-calculator-loan tr {
		display: block !important;
		width: 100%;
	}
	.financial-calculator-loan td {
		display: block;
		width: 100%;
		white-space: normal !important;
	}
	
	/* Monthly budget planner */
	.financial-calculator-monthly-budget-planner tr {
		display: block !important;
		width: 100%;
	}
	.financial-calculator-monthly-budget-planner .financial-calculator-row .financial-calculator-col:nth-of-type(1) td {
		display: block !important;
		width: 100%;
		white-space: normal !important;
	}
	.financial-calculator-monthly-budget-planner .financial-calculator-row .financial-calculator-col:nth-of-type(2) table {
		margin: 48px 0 !important;
		width: 100% !important;
	}
	.financial-calculator-monthly-budget-planner .financial-calculator-row .financial-calculator-col:nth-of-type(2) tbody {
		display: table-row-group !important;
	}
	.financial-calculator-monthly-budget-planner .financial-calculator-row .financial-calculator-col:nth-of-type(2) tr {
		display: table-row !important;
	}
	.financial-calculator-monthly-budget-planner .financial-calculator-row .financial-calculator-col:nth-of-type(2) td {
		display: table-cell !important;
		font-size: 12px;
		padding: 10px 5px !important;
	}
	.financial-calculator-monthly-budget-planner .financial-calculator-row .financial-calculator-col:nth-of-type(2) td:nth-of-type(1) {
		white-space: nowrap !important;
	}
	.financial-calculator-monthly-budget-planner .financial-calculator-row .financial-calculator-col:nth-of-type(2) td:nth-of-type(2) {
		white-space: normal !important;
	}
	.financial-calculator-monthly-budget-planner .financial-calculator-row .financial-calculator-col:nth-of-type(2) td:nth-of-type(3) {
		white-space: nowrap !important;
	}
	#financial-calculator-monthly-budget-figures label {
		display: inline;
		font-size: 12px;
		width: auto;
	}
	
	/* Retirement */
	.financial-calculator-retirement thead {
		display: none !important;
	}
	.financial-calculator-retirement tr {
		display: block !important;
		width: 100%;
	}
	.financial-calculator-retirement td {
		display: block;
		width: 100%;
		white-space: normal !important;
	}
	.financial-calculator-retirement .financial-calculator-result table:nth-child(1) td:nth-child(1):before {
		content: 'Year:';
		display: block;
		font-weight: bold;
	}
	.financial-calculator-retirement .financial-calculator-result table:nth-child(1) td:nth-child(2):before {
		content: 'Age:';
		display: block;
		font-weight: bold;
	}
	.financial-calculator-retirement .financial-calculator-result table:nth-child(1) td:nth-child(3):before {
		content: 'Deposit:';
		display: block;
		font-weight: bold;
	}
	.financial-calculator-retirement .financial-calculator-result table:nth-child(1) td:nth-child(4):before {
		content: 'Cumulative Deposit:';
		display: block;
		font-weight: bold;
	}
	.financial-calculator-retirement .financial-calculator-result table:nth-child(1) td:nth-child(5):before {
		content: 'Interest:';
		display: block;
		font-weight: bold;
	}
	.financial-calculator-retirement .financial-calculator-result table:nth-child(1) td:nth-child(6):before {
		content: 'Cumulative Interest:';
		display: block;
		font-weight: bold;
	}
	.financial-calculator-retirement .financial-calculator-result table:nth-child(1) td:nth-child(7):before {
		content: 'Balance:';
		display: block;
		font-weight: bold;
	}
	
	/* Savings */
	.financial-calculator-savings tr {
		display: block !important;
		width: 100%;
	}
	.financial-calculator-savings td {
		display: block;
		width: 100%;
		white-space: normal !important;
	}
}
