/* ==========================================================================
   Project tools - Location advantage + EMI calculator
   One card per row, full width: location advantage first, then the
   calculator. Colours and type are the BCPL set: navy #0f2453,
   gold #d49809, Oswald / Federo / Lato.
   ========================================================================== */

/* The cards line up with the copy and FAQ cards above and below them. */
.bcpl-tools {
	margin: 30px 0 6px;
}

.bcpl-tool {
	margin: 0 0 24px;
	background: #fff;
	border: 1px solid #e3e6ee;
	border-radius: 4px;
	overflow: hidden;
}

.bcpl-tool:last-child {
	margin-bottom: 0;
}

.bcpl-tool-title {
	font-family: 'Oswald', sans-serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.3;
	color: #0f2453;
	margin: 0;
	padding: 20px 24px 16px;
	border-bottom: 1px solid #e1e5ee;
	text-align: left;			/* bootstrap.css centres every h3 */
}

.bcpl-tool-title i {
	color: #d49809;
	margin-right: 9px;
}

/* --- EMI calculator -------------------------------------------------------- */

.emi-head {
	background: #0f2453;
	padding: 24px 12px 8px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
}

.emi-field {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 180px;
	flex: 1 1 180px;
	min-width: 0;
	padding: 0 12px 16px;
}

.emi-field label {
	display: block;
	font-family: 'Federo', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 8px;
}

.emi-field input[type="number"] {
	width: 100%;
	padding: 10px 13px;
	border: 0;
	border-radius: 3px;
	background: #fff;
	font-family: 'Lato', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #0f2453;
	outline: none;
	box-sizing: border-box;
}

.emi-field input[type="number"]:focus {
	box-shadow: 0 0 0 3px rgba(212, 152, 9, .55);
}

.emi-range {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: 4px;
	margin: 13px 0 0;
	border-radius: 4px;
	background: rgba(255, 255, 255, .3);
	outline: none;
	cursor: pointer;
}

.emi-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #d49809;
	border: 3px solid #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
	cursor: pointer;
}

.emi-range::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #d49809;
	border: 3px solid #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
	cursor: pointer;
}

.emi-body {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	padding: 26px 10px 2px;
}

.emi-results {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 320px;
	flex: 1 1 320px;
	min-width: 0;
	padding: 0 14px 24px;
}

.emi-res-row {
	position: relative;
	padding: 12px 0 12px 15px;
	border-bottom: 1px dashed #dfe3ec;
}

.emi-res-row:last-of-type {
	border-bottom: 0;
}

.emi-res-row::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	margin-top: -13px;
	width: 3px;
	height: 26px;
	border-radius: 2px;
	background: #d49809;
	opacity: .3;
}

.emi-res-row:first-child::before {
	opacity: 1;
}

.emi-res-k {
	font-family: 'Federo', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #8a91a0;
	margin-bottom: 5px;
}

.emi-res-v {
	font-family: 'Oswald', sans-serif;
	font-size: 26px;
	font-weight: 400;
	line-height: 1.25;
	color: #0f2453;
}

.emi-btn {
	margin-top: 20px;
	display: inline-block;
	padding: 13px 34px;
	background: #d49809;
	color: #fff;
	border: 0;
	border-radius: 3px;
	font-family: 'Federo', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	-webkit-transition: background .25s ease;
	transition: background .25s ease;
}

.emi-btn i {
	margin-right: 8px;
}

.emi-btn:hover,
.emi-btn:focus {
	background: #0f2453;
	outline: none;
}

.emi-chart-wrap {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 260px;
	flex: 1 1 260px;
	min-width: 0;
	padding: 0 14px 24px;
	text-align: center;
}

.emi-legend {
	display: inline-block;
	text-align: left;
	margin-bottom: 16px;
}

.emi-legend-item {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #444b58;
	line-height: 2;
}

.emi-dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 2px;
	margin-right: 8px;
	vertical-align: -1px;
}

.emi-dot--int {
	background: #b9bfcc;
}

.emi-dot--pri {
	background: #0f2453;
}

.emi-legend-item b {
	margin-left: 3px;
	color: #d49809;
}

.emi-pie {
	position: relative;
	width: 190px;
	height: 190px;
	margin: 0 auto;
	border-radius: 50%;
	background: #b9bfcc;			/* fallback where conic-gradient is unsupported */
	background: conic-gradient(#0f2453 0deg 300deg, #b9bfcc 300deg 360deg);
	box-shadow: 0 8px 22px rgba(15, 36, 83, .16);
	-webkit-transition: background .45s ease;
	transition: background .45s ease;
}

.emi-pie::before {
	content: '';
	position: absolute;
	top: 25%;
	right: 25%;
	bottom: 25%;
	left: 25%;
	border-radius: 50%;
	background: #fff;
	box-shadow: inset 0 2px 10px rgba(15, 36, 83, .1);
}

.emi-pie-center {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	text-align: center;
	padding: 0 8px;
}

.emi-pie-lbl {
	display: block;
	font-family: 'Federo', sans-serif;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #8a91a0;
}

.emi-pie-val {
	display: block;
	margin-top: 3px;
	font-family: 'Oswald', sans-serif;
	font-size: 16px;
	color: #0f2453;
}

.emi-tc {
	font-size: 10.5px;
	letter-spacing: .5px;
	color: #9aa0ad;
	margin: 14px 0 0;
	text-align: center;
}

.emi-note {
	margin: 0;
	padding: 0 24px 24px;
	font-size: 12.5px;
	line-height: 1.8;
	color: #8a91a0;
	text-align: center;
}

/* --- Location advantage ---------------------------------------------------- */

.loc-adv {
	padding: 24px;
}

.loc-acc-item {
	background: #fafbfd;
	border: 1px solid #e1e5ee;
	border-radius: 4px;
	margin-bottom: 10px;
	overflow: hidden;
	-webkit-transition: border-color .3s ease, box-shadow .3s ease;
	transition: border-color .3s ease, box-shadow .3s ease;
}

.loc-acc-item:last-child {
	margin-bottom: 0;
}

.loc-acc-item.is-open {
	border-color: #c7cedd;
	box-shadow: 0 6px 16px rgba(15, 36, 83, .07);
}

.loc-acc-btn {
	width: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	padding: 13px 15px;
	background: transparent;
	border: 0;
	outline: none;
	cursor: pointer;
	text-align: left;
	-webkit-transition: background .25s ease;
	transition: background .25s ease;
}

.loc-acc-btn:hover {
	background: rgba(15, 36, 83, .04);
}

.loc-acc-item.is-open .loc-acc-btn,
.loc-acc-item.is-open .loc-acc-btn:hover {
	background: #0f2453;
}

.loc-acc-ic {
	-ms-flex-negative: 0;
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	line-height: 28px;
	margin-right: 12px;
	text-align: center;
	border-radius: 50%;
	background: rgba(15, 36, 83, .07);
	border: 1px solid #dfe3ec;
	color: #0f2453;
	font-size: 13px;
	-webkit-transition: background .25s ease, border-color .25s ease, color .25s ease;
	transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.loc-acc-item.is-open .loc-acc-ic {
	background: rgba(255, 255, 255, .16);
	border-color: rgba(255, 255, 255, .4);
	color: #d49809;
}

.loc-acc-t {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
	min-width: 0;
	font-family: 'Federo', sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 1.3px;
	text-transform: uppercase;
	color: #0f2453;
	line-height: 1.4;
	-webkit-transition: color .25s ease;
	transition: color .25s ease;
}

.loc-acc-item.is-open .loc-acc-t {
	color: #fff;
}

.loc-acc-arrow {
	-ms-flex-negative: 0;
	flex-shrink: 0;
	margin-left: 10px;
	font-size: 12px;
	color: #d49809;
	-webkit-transition: transform .3s ease;
	transition: transform .3s ease;
}

.loc-acc-item.is-open .loc-acc-arrow {
	-webkit-transform: rotate(180deg);
	-ms-transform: rotate(180deg);
	transform: rotate(180deg);
}

.loc-acc-body {
	max-height: 0;
	overflow: hidden;
	background: #fff;
	-webkit-transition: max-height .4s ease;
	transition: max-height .4s ease;
}

.loc-acc-item.is-open .loc-acc-body {
	max-height: 640px;
}

.loc-list {
	list-style: none;
	margin: 0;
	padding: 8px 15px 12px;
}

.loc-list li {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: baseline;
	-ms-flex-align: baseline;
	align-items: baseline;
	padding: 9px 0;
	border-bottom: 1px dashed #e5e8f0;
}

.loc-list li:last-child {
	border-bottom: 0;
}

.loc-list .ln {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: #444b58;
}

.loc-list .ld {
	-ms-flex-negative: 0;
	flex-shrink: 0;
	margin-left: 12px;
	padding: 3px 10px;
	border-radius: 20px;
	background: rgba(212, 152, 9, .1);
	border: 1px solid rgba(212, 152, 9, .28);
	font-size: 11px;
	font-weight: 700;
	color: #a97806;
	white-space: nowrap;
}

/* --- Small screens --------------------------------------------------------- */

@media (max-width: 575px) {
	.emi-field {
		-ms-flex: 1 1 100%;
		flex: 1 1 100%;
	}
}

@media (max-width: 767px) {
	.bcpl-tools {
		margin: 22px 0 2px;
	}

	.bcpl-tool {
		margin: 0 0 20px;
	}

	.bcpl-tool-title {
		font-size: 19px;
		padding: 16px 18px 13px;
	}

	.emi-head {
		padding: 20px 8px 4px;
	}

	.emi-body {
		padding: 22px 6px 0;
	}

	.emi-results,
	.emi-chart-wrap {
		padding: 0 12px 22px;
	}

	.emi-btn {
		display: block;
		width: 100%;
		padding: 13px 20px;
	}

	.emi-res-v {
		font-size: 23px;
	}

	.emi-note {
		padding: 0 18px 20px;
	}

	.emi-pie {
		width: 160px;
		height: 160px;
	}

	.loc-adv {
		padding: 18px 16px;
	}

	.loc-acc-t {
		font-size: 11.5px;
		letter-spacing: 1px;
	}

	.loc-list .ln {
		font-size: 12.5px;
	}
}
