/**
 * Bridging Loan Calculator — premium frontend layout
 * Palette: #0BB0BE · #C1D64A · #354D59 · #F7931D (buttons)
 */

.mcf-bc-page,
.mcf-bc-page * {
	box-sizing: border-box;
}

.mcf-bc-page {
	font-family: 'Segoe UI', 'Open Sans', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
	color: #354d59;
	-webkit-font-smoothing: antialiased;
	padding-bottom: 16px;
}

.view-bridgingcalculator .content-box-width.mcf-bc-page {
	margin-top: 0;
	padding-top: 0;
}

/* ── Header ── */
.mcf-bc-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	padding: 10px 14px;
	background: linear-gradient(135deg, #f7fafb 0%, #fff 100%);
	border: 1px solid #dce8eb;
	border-radius: 10px;
	box-shadow: 0 1px 6px rgba(53, 77, 89, 0.05);
	border-left: 3px solid #c1d64a;
}

.mcf-bc-header__main {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.mcf-bc-header__icon {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: linear-gradient(135deg, #0bb0be 0%, #099aa6 100%);
	color: #fff;
	font-size: 0.95rem;
	box-shadow: 0 2px 8px rgba(11, 176, 190, 0.22);
}

.mcf-bc-header__title {
	margin: 0 !important;
	padding: 0 !important;
	font-size: clamp(1rem, 1.6vw, 1.25rem) !important;
	font-weight: 700 !important;
	color: #354d59 !important;
	line-height: 1.25;
	background: none !important;
	background-image: none !important;
	height: auto !important;
}

.mcf-bc-header__subtitle {
	margin: 2px 0 0;
	font-size: 0.75rem;
	color: #6b7f8a;
}

/* ── Calculator shell ── */
.mcf-bc-page .bc-wrap {
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #dce8eb;
	background: #fff;
	box-shadow: 0 2px 10px rgba(53, 77, 89, 0.06);
}

/* ── Left panel ── */
.mcf-bc-page .bc-left {
	flex: 0 0 46%;
	padding: 16px 18px 18px;
	background: #fff;
	border-right: 1px solid #dce8eb;
}

.mcf-bc-page .bc-heading {
	font-size: 1rem;
	font-weight: 700;
	color: #0bb0be;
	line-height: 1.3;
	margin: 0 0 14px;
}

.mcf-bc-page .bc-field {
	margin-bottom: 14px;
}

.mcf-bc-page .bc-field-label {
	font-size: 0.68rem;
	color: #6b7f8a;
	font-weight: 700;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.mcf-bc-page .bc-slider-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mcf-bc-page .bc-range {
	flex: 1;
	-webkit-appearance: none;
	appearance: none;
	height: 5px;
	border-radius: 10px;
	outline: none;
	cursor: pointer;
	background: linear-gradient(to right, #0bb0be 50%, rgba(11, 176, 190, 0.12) 50%);
}

.mcf-bc-page .bc-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: linear-gradient(135deg, #0bb0be, #099aa6);
	box-shadow: 0 0 0 3px rgba(11, 176, 190, 0.16), 0 2px 8px rgba(11, 176, 190, 0.28);
	cursor: pointer;
	border: 2px solid #fff;
}

.mcf-bc-page .bc-range::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: linear-gradient(135deg, #0bb0be, #099aa6);
	box-shadow: 0 0 0 3px rgba(11, 176, 190, 0.16), 0 2px 8px rgba(11, 176, 190, 0.28);
	cursor: pointer;
	border: 2px solid #fff;
}

.mcf-bc-page .bc-range::-moz-range-track {
	height: 5px;
	border-radius: 10px;
	background: transparent;
}

.mcf-bc-page .bc-value-box {
	min-width: 110px;
	height: 36px;
	border: 1px solid #dce8eb;
	border-radius: 8px;
	font-size: 0.78rem;
	font-weight: 700;
	color: #354d59;
	background: #fff;
	padding: 0 10px;
	text-align: center;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.mcf-bc-page .bc-value-box:focus {
	border-color: #0bb0be;
	box-shadow: 0 0 0 2px rgba(11, 176, 190, 0.14);
}

.mcf-bc-page .bc-inputs-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 12px;
	margin-bottom: 14px;
	padding: 12px;
	background: #f7fafb;
	border: 1px solid #dce8eb;
	border-radius: 8px;
}

.mcf-bc-page .bc-num-field label {
	display: block;
	font-size: 0.68rem;
	color: #6b7f8a;
	font-weight: 700;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.mcf-bc-page .bc-num-input {
	width: 100%;
	height: 34px;
	border: 1px solid #dce8eb;
	border-radius: 6px;
	padding: 0 10px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #354d59;
	outline: none;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.mcf-bc-page .bc-num-input:focus {
	border-color: #0bb0be;
	box-shadow: 0 0 0 2px rgba(11, 176, 190, 0.12);
}

.mcf-bc-page .bc-left .bc-section-title {
	font-size: 0.68rem !important;
	font-weight: 700 !important;
	color: #6b7f8a !important;
	padding: 8px 0 6px !important;
	margin: 12px 0 8px !important;
	border-bottom: 1px solid #dce8eb !important;
	background: transparent !important;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* ── Right panel ── */
.mcf-bc-page .bc-right {
	flex: 1;
	background: #f7fafb;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.mcf-bc-page .bc-tabs {
	display: flex;
	justify-content: center;
	gap: 4px;
	padding: 4px;
	max-width: 240px;
	width: 100%;
	margin: 12px auto 8px;
	background: #fff;
	border-radius: 999px;
	border: 1px solid #dce8eb;
}

.mcf-bc-page .bc-tab {
	padding: 7px 22px;
	border-radius: 999px;
	border: none;
	font-size: 0.8125rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
	color: #6b7f8a;
	background: transparent;
	font-family: inherit;
}

.mcf-bc-page .bc-tab.active {
	background: linear-gradient(135deg, #0bb0be 0%, #099aa6 100%);
	color: #fff;
	box-shadow: 0 2px 8px rgba(11, 176, 190, 0.22);
}

.mcf-bc-page .bc-tab:not(.active):hover {
	background: #f7fafb;
	color: #0bb0be;
}

.mcf-bc-page .bc-disclaimer {
	text-align: center;
	font-size: 0.72rem;
	color: #64748b;
	padding: 0 16px 10px;
	line-height: 1.5;
	font-style: italic;
}

.mcf-bc-page .bc-results {
	background: #fff;
	margin: 0 10px;
	border-radius: 8px 8px 0 0;
	overflow: hidden;
	border: 1px solid #dce8eb;
	border-bottom: none;
	flex: 1;
	overflow-y: auto;
	max-height: 520px;
}

.mcf-bc-page .bc-ltv-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	border-bottom: 1px solid #dce8eb;
	background: linear-gradient(135deg, #f7fafb 0%, #fff 100%);
}

.mcf-bc-page .bc-ltv-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: #475569;
}

.mcf-bc-page .bc-ltv-value {
	font-size: 1.25rem;
	font-weight: 800;
	color: #0bb0be;
}

.mcf-bc-page .bc-section-title {
	font-size: 0.68rem;
	font-weight: 700;
	color: #6b7f8a;
	padding: 8px 16px 6px;
	border-bottom: 1px solid #edf2f7;
	background: #f7fafb;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.mcf-bc-page .bc-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 7px 16px;
	border-bottom: 1px solid #edf2f7;
	background: #fff;
}

.mcf-bc-page .bc-row:nth-child(even) {
	background: #f7fafb;
}

.mcf-bc-page .bc-row:hover {
	background: #f7fafb;
}

.mcf-bc-page .bc-row-label {
	font-size: 0.8125rem;
	color: #475569;
	font-weight: 500;
}

.mcf-bc-page .bc-row-value {
	font-size: 0.8125rem;
	font-weight: 700;
	color: #354d59;
	white-space: nowrap;
}

.mcf-bc-page .bc-net-loan-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: linear-gradient(135deg, #0bb0be 0%, #099aa6 100%);
	padding: 14px 18px;
	flex-shrink: 0;
	width: calc(100% - 20px);
	margin: 0 auto 12px;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 4px 14px rgba(11, 176, 190, 0.2);
}

.mcf-bc-page .bc-net-label {
	font-size: 0.8125rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.92);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.mcf-bc-page .bc-net-value {
	font-size: 1.25rem;
	font-weight: 800;
	color: #fff;
}

.mcf-bc-page #bc-ltp-warning {
	padding: 8px 16px;
	background: #fff7ed;
	border-left: 3px solid #f59e0b;
	font-size: 0.75rem;
	color: #92400e;
}

.mcf-bc-page .bc-results::-webkit-scrollbar {
	width: 5px;
}

.mcf-bc-page .bc-results::-webkit-scrollbar-thumb {
	background: rgba(11, 176, 190, 0.28);
	border-radius: 10px;
}

/* Legacy overrides */
.view-bridgingcalculator .mcf-bc-page h1,
.view-bridgingcalculator .mcf-bc-page h2,
.com_mcflend.view-bridgingcalculator .mcf-bc-page h2 {
	background: none !important;
	background-image: none !important;
	height: auto !important;
	padding-left: 0 !important;
}

@media (max-width: 900px) {
	.mcf-bc-page .bc-wrap {
		flex-direction: column;
	}

	.mcf-bc-page .bc-left {
		flex: none;
		border-right: none;
		border-bottom: 1px solid #dce8eb;
	}

	.mcf-bc-page .bc-results {
		max-height: none;
	}
}

@media (max-width: 520px) {
	.mcf-bc-page .bc-inputs-grid {
		grid-template-columns: 1fr;
	}

	.mcf-bc-page .bc-value-box {
		min-width: 90px;
		font-size: 0.72rem;
	}
}
