/**
 * SMP Mortgage Calculator – styles
 * Two-panel layout: light left, dark blue right, gold sliders.
 */

/* -------------------------------------------------------------------------
   Container & two-column layout
   ------------------------------------------------------------------------- */
.smp-calculator-wrap {
	box-sizing: border-box;
	max-width: 100%;
	margin: 1em 0;
	font-family: lato;
}

.smp-calculator-wrap *,
.smp-calculator-wrap *::before,
.smp-calculator-wrap *::after {
	box-sizing: border-box;
}

.smp-calculator-container {
	display: flex;
	flex-wrap: wrap;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* -------------------------------------------------------------------------
   Left panel – light grey background
   ------------------------------------------------------------------------- */
.smp-calculator-left {
	background: #fbfaf9;
	padding: 40px;
	flex: 1 1 65%;
	min-width: 280px;
}

.smp-calculator-left .smp-panel-title {
	margin: 0px 0px 40px 0px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2em;
    color: #4d6780;
    text-transform: uppercase;
    font-family: 'Lato';
}

.smp-calculator-left label {
	display: block;
    margin-bottom: 12px;
    font-size: 14px;
    color: #4d6780;
    font-weight: 500;
    letter-spacing: .025em;
    font-family: 'Lato';
}

.smp-field {
	margin-bottom: 1.6em;
}

.smp-field > input{
    border-radius: 0px;
    background: #faf8f5;
    border-color: #d0ac5880;
    font-family: 'Lato';
    font-weight: 400;
    font-size: 14px;
    padding: 12px 16px;
}
.smp-field > input:focus{
	background: #faf8f5;
    border-color: #d0ac5880;
}



/* Currency input field above slider (Property Value & Deposit) */
.smp-currency-input {
	display: block;
	width: 100%;
	max-width: 100%;
	margin-bottom: 0.6em;
	padding: 0.55em 0.75em;
	font-size: 1rem;
	font-weight: 600;
	color: #333;
	background: #fff;
	border: 1px solid #c4b896;
	border-radius: 4px;
	box-sizing: border-box;
}

.smp-currency-input:focus {
	outline: none;
	border-color: #b8860b;
	box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.2);
}

.smp-slider-row {
	display: flex;
	align-items: center;
	gap: 1em;
	flex-wrap: wrap;
	margin: 20px 0px 0px 0px;
}

.smp-value {
	font-size: 1.1rem;
	font-weight: 600;
	color: #333;
	min-width: 6em;
	text-align: right;
}

/* Number inputs side by side */
.smp-fields-row {
	display: flex;
	gap: 1.5em;
	flex-wrap: wrap;
}

.smp-fields-row .smp-field {
	flex: 1 1 140px;
}

.smp-input {
	width: 100%;
	max-width: 100%;
	padding: 0.5em 0.65em;
	font-size: 1rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	color: #333;
}

.smp-input:focus {
	outline: none;
	border-color: #b8860b;
	box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.2);
}

.smp-input.smp-input-invalid {
	border-color: #c00;
	background-color: #fff5f5;
}

.smp-input.smp-input-invalid:focus {
	border-color: #c00;
	box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.2);
}

.smp-field-hint {
	display: block;
	margin-top: 0.25em;
	font-size: 0.8rem;
	color: #666;
}

.smp-field-error {
	display: block;
	margin-top: 0.35em;
	font-size: 0.8rem;
	color: #c00;
	font-weight: 500;
}

/* Payment type toggle – Repayment | Interest Only */
.smp-field-payment-type {
    margin-top: 0px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.smp-field-payment-type label{
	margin: 0px;
}

.smp-label-inline {
	display: block;
	margin-bottom: 0.5em;
}

.smp-toggle {
	display: inline-flex;
	border: 1px solid #d0ac5880;
	border-radius: 4px;
	overflow: hidden;
	background: #e8e8e8;
}

.smp-toggle-option {
	flex: 1;
	padding: 0.5em 1em;
	font-size: 0.9rem;
	font-weight: 500;
	color: #555;
	background: transparent;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}
.smp-toggle-option:hover,
.smp-toggle-option:focus{
	background: #061D32;
	color: #d0ac58;
	border-radius: 100px;	
}
.smp-toggle-option.smp-toggle-active {
	background: #d0ac58;
	color: #061D32;
	border-radius: 100px;
}

.smp-toggle-option:focus {
	outline: none;
}

.smp-toggle-option:focus-visible {
	box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.5);
}

/* Extended range checkbox */
.smp-field-extended-range {
	margin-bottom: 0.5em;
}

.smp-checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	cursor: pointer;
	font-size: 0.95rem;
	color: #333;
}

.smp-checkbox {
	width: 1.1em;
	height: 1.1em;
	accent-color: #b8860b;
	cursor: pointer;
}

.smp-payment-type-label {
	font-weight: 600;
	opacity: 0.95;
}

/* -------------------------------------------------------------------------
   Range sliders – gold handle, dark grey track, gold fill to left of handle
   ------------------------------------------------------------------------- */
.smp-slider {
	--smp-slider-pct: 0%;
	-webkit-appearance: none;
	appearance: none;
	flex: 1;
	min-width: 120px;
	height: 8px;
	background: linear-gradient(
		to right,
		#d0ac58 0%,
		#d0ac58 var(--smp-slider-pct),
		#061d32 var(--smp-slider-pct),
		#061d32 100%
	);
	border-radius: 5px;
}

.smp-slider::-webkit-slider-runnable-track {
	height: 8px;
	border-radius: 5px;
	background: transparent;
}

.smp-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #b8860b;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
	border: 2px solid rgba(255, 255, 255, 0.4);
	margin-top: -5px;
}

.smp-slider::-moz-range-track {
	height: 10px;
	border-radius: 5px;
	background: #3d3d3d;
}

.smp-slider::-moz-range-thumb {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #b8860b;
	cursor: pointer;
	border: 2px solid rgba(255, 255, 255, 0.4);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.smp-slider:focus {
	outline: none;
}

.smp-slider:focus::-webkit-slider-thumb {
	box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.5);
}

.smp-slider:focus::-moz-range-thumb {
	box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.5);
}

/* -------------------------------------------------------------------------
   Right panel – dark blue background
   ------------------------------------------------------------------------- */
.smp-calculator-right {
	background: #08233d;
	color: #fff;
	padding: 40px;
	width: 35%;
	min-width: 280px;
	flex: 1 1 35%;
	display: flex;
	flex-direction: column;
}

.smp-calculator-right .smp-panel-title {
	margin: 0 0 1em;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2em;
    color: #faf8f566;
    text-transform: uppercase;
    text-align: center;
    font-family: 'Lato';
}

/* Large monthly payment amount – very large and centered */
.smp-monthly-block {
	text-align: center;
	margin: 0.5em 0 1.5em;
	padding: 0;
}

.smp-monthly-amount {
    display: block;
    font-size: 44px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    color: #fff;
}

.smp-amount-underline {
    display: block;
    width: 50px;
    height: 1px;
    background: rgb(206 171 96);
    margin: 2.6em auto 0;
}

/* Breakdown: Loan, LTV, Total */
.smp-breakdown {
	margin: 0 0 1.5em;
	padding: 0;
	list-style: none;
}

.smp-breakdown-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 0.4em 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.smp-breakdown-row:last-child {
	border-bottom: none;
}

.smp-breakdown dt {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.6);
}

.smp-breakdown dd {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.6);
}

/* CTA button */
.smp-cta-wrap {
	margin-top: auto;
	margin-bottom: 1em;
}

.smp-cta-btn {
	display: block;
    width: 100%;
    padding: 0.9em 1.25em;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #061d32;
    background: #d0ac58;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}
.smp-cta-btn:focus,
.smp-cta-btn:hover {
	background: #d0ac58;
	color: #061d32;
}


/* Disclaimer */
.smp-disclaimer {
	margin: 0;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
	text-align: center;
}


.smp-toggle{
    position: relative;
    display: inline-flex;
    align-items: center;
    background: #faf8f5;
    border-radius: 30px;
    padding: 4px;
    width: 220px;
    font-family: lato, sans-serif;
}

.smp-toggle-option{
	flex: 1;
    border: none;
    background: transparent;
    padding: 6px 0;
    font-size: 12px;
    color: #1a2b49;
    cursor: pointer;
    z-index: 2;
    font-weight: 500;
    font-family: 'Lato';
}

.smp-toggle-slider{
    position:absolute;
    top:3px;
    left:3px;
    width:50%;
    height:calc(100% - 6px);
    background:#fff;
    border-radius:30px;
    box-shadow:0 1px 4px rgba(0,0,0,0.2);
    transition:all .3s ease;
}

.smp-toggle-option.active ~ .smp-toggle-slider{
    left:50%;
}





/* -------------------------------------------------------------------------
   Responsive: stack panels on small screens
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
	.smp-calculator-container {
		flex-direction: column;
	}

	.smp-calculator-left,
	.smp-calculator-right {
		width: 100%;
		min-width: 100%;
		padding: 28px 24px;
	}

	.smp-monthly-amount {
		font-size: 48px;
	}
	.smp-fields-row .smp-field {
		flex: 1 1 1px;
	}
}

@media (max-width: 480px) {
	.smp-calculator-left,
	.smp-calculator-right {
		padding: 20px 16px;
	}

	.smp-monthly-amount {
		font-size: 30px;
	}

	.smp-fields-row {
		flex-direction: column;
		gap: 0;
	}
}
