/* =============================================================================
   BOSL SIP Calculator — Stylesheet
   Futuregram Studio Limited
   ============================================================================= */

:root {
	--bosl-navy:      #243069;
	--bosl-indigo:    #37499D;
	--bosl-blue:      #5A6DC5;
	--bosl-blue-light:#3DB54B;
	--bosl-teal:      #435A5E;
	--bosl-green:     #3DB54B;
	--bosl-white:     #ffffff;
	--bosl-bg:        #f5f7fc;
	--bosl-border:    #dde2f0;
	--bosl-text:      #1a2240;
	--bosl-muted:     #6b7a99;
	--bosl-font:      Helvetica, Arial, sans-serif;
	--bosl-radius:    10px;
	--bosl-shadow:    0 4px 24px rgba(36, 48, 105, 0.10);
}

/* Wrap */
.bosl-sip-wrap {
	font-family: var(--bosl-font);
	background: var(--bosl-white);
	border: none;
	border-radius: 0;
	box-shadow: none;
	padding: 36px 40px 32px;
	margin: 0 auto;
	box-sizing: border-box;
	color: var(--bosl-text);
}

/* Intro */
.bosl-sip-intro {
	font-size: 15px;
	color: var(--bosl-teal);
	margin-bottom: 28px;
	line-height: 1.5;
}

/* Inputs grid */
.bosl-sip-inputs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto auto;
	gap: 24px 48px;
	margin-bottom: 32px;
}

.bosl-sip-field--years {
	grid-column: 1;
}

/* Field */
.bosl-sip-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bosl-sip-label {
	font-size: 15px;
	font-weight: 600;
	color: var(--bosl-navy);
	letter-spacing: 0.01em;
}

/* Input row */
.bosl-sip-input-row {
	display: flex;
	align-items: center;
	gap: 0;
	border: 1.5px solid var(--bosl-border);
	border-radius: 6px;
	overflow: hidden;
	background: var(--bosl-white);
	width: fit-content;
}

.bosl-sip-input-row--right {
	flex-direction: row;
}

.bosl-sip-currency,
.bosl-sip-pct,
.bosl-sip-unit {
	font-size: 15px;
	font-weight: 700;
	color: var(--bosl-white);
	background: var(--bosl-indigo);
	padding: 8px 10px;
	line-height: 1;
	white-space: nowrap;
}

.bosl-sip-pct,
.bosl-sip-unit {
	background: var(--bosl-teal);
}

.bosl-sip-number {
	border: none;
	outline: none;
	font-family: var(--bosl-font);
	font-size: 15px;
	font-weight: 700;
	color: var(--bosl-navy);
	padding: 7px 10px;
	width: 110px;
	text-align: right;
	background: transparent;
	-moz-appearance: textfield;
}

.bosl-sip-number--pct,
.bosl-sip-number--yr {
	width: 70px;
}

.bosl-sip-number::-webkit-outer-spin-button,
.bosl-sip-number::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Slider */
.bosl-sip-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 4px;
	border-radius: 2px;
	background: var(--bosl-border);
	outline: none;
	margin-top: 4px;
	cursor: pointer;
}

.bosl-sip-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--bosl-blue);
	border: 2.5px solid var(--bosl-white);
	box-shadow: 0 0 0 1.5px var(--bosl-blue);
	cursor: pointer;
	transition: transform 0.15s ease;
}

.bosl-sip-slider::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--bosl-blue);
	border: 2.5px solid var(--bosl-white);
	box-shadow: 0 0 0 1.5px var(--bosl-blue);
	cursor: pointer;
}

.bosl-sip-slider::-webkit-slider-thumb:hover {
	transform: scale(1.15);
}

.bosl-sip-range-labels {
	display: flex;
	justify-content: space-between;
	font-size: 15px;
	color: var(--bosl-muted);
	margin-top: 2px;
}

/* Mode tabs */
.bosl-sip-tabs {
	display: flex;
	gap: 0;
	margin-bottom: 28px;
	border-bottom: 2px solid var(--bosl-border);
}

.bosl-sip-tab {
	font-family: var(--bosl-font);
	font-size: 15px;
	font-weight: 600;
	color: var(--bosl-muted);
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	padding: 10px 24px;
	cursor: pointer;
	text-align: left;
	transition: color 0.2s ease, border-color 0.2s ease;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bosl-sip-tab:hover {
	color: var(--bosl-indigo);
}

.bosl-sip-tab--active {
	color: #3DB54B;
	border-bottom-color: #3DB54B;
}

.bosl-sip-tab__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
}

.bosl-sip-tab__sub {
	font-size: 13px;
	font-weight: 400;
	color: var(--bosl-muted);
	line-height: 1.3;
}

.bosl-sip-tab--active .bosl-sip-tab__sub {
	color: var(--bosl-teal);
}

/* Result bar */
.bosl-sip-result-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: 20px 0;
	border-top: 1px solid var(--bosl-border);
	border-bottom: 1px solid var(--bosl-border);
	margin-bottom: 28px;
	flex-wrap: wrap;
}

/* Three-line breakdown */
.bosl-sip-breakdown {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bosl-sip-breakdown-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 15px;
	color: var(--bosl-navy);
}

.bosl-sip-breakdown-label {
	color: var(--bosl-muted);
	font-weight: 400;
}

.bosl-sip-breakdown-val {
	font-size: 15px;
	font-weight: 700;
	color: var(--bosl-navy);
}

.bosl-sip-breakdown-row--highlight .bosl-sip-breakdown-label {
	color: var(--bosl-navy);
	font-weight: 600;
}

.bosl-sip-breakdown-row--highlight .bosl-sip-breakdown-val {
	font-size: 22px;
	font-weight: 800;
	color: var(--bosl-indigo);
}

.bosl-sip-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--bosl-green);
	color: var(--bosl-white) !important;
	font-family: var(--bosl-font);
	font-size: 15px;
	font-weight: normal;
	padding: 12px 24px;
	border-radius: 0;
	border: none;
	text-decoration: none;
	letter-spacing: 0.01em;
	transition: background 0.2s ease;
	white-space: nowrap;
	cursor: pointer;
}

.bosl-sip-cta:hover {
	background: #2ea040;
	color: var(--bosl-white) !important;
	text-decoration: none;
}

/* Chart */
.bosl-sip-chart-wrap {
	position: relative;
	margin-bottom: 24px;
	height: 300px;
}

.bosl-sip-legend {
	display: flex;
	gap: 20px;
	justify-content: center;
	margin-bottom: 12px;
}

.bosl-sip-legend__item {
	font-size: 14px;
	color: var(--bosl-muted);
	display: flex;
	align-items: center;
	gap: 6px;
}

.bosl-sip-legend__item::before {
	content: '';
	display: inline-block;
	width: 28px;
	height: 3px;
	border-radius: 2px;
}

.bosl-sip-legend__item--invested::before {
	background: #3DB54B;
}

.bosl-sip-legend__item--valuation::before {
	background: var(--bosl-indigo);
}

#boslSIPChart {
	width: 100% !important;
	height: 100% !important;
}

.bosl-sip-axis-label {
	text-align: center;
	font-size: 15px;
	color: var(--bosl-muted);
	margin-top: 6px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Disclaimer */
.bosl-sip-disclaimer {
	border-top: 1px solid var(--bosl-border);
	padding-top: 80px;
	font-size: 15px;
	color: var(--bosl-muted);
	line-height: 1.6;
}

.bosl-sip-disclaimer strong {
	color: var(--bosl-teal);
	display: block;
	margin-bottom: 4px;
	font-size: 15px;
}

.bosl-sip-disclaimer p {
	margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
	.bosl-sip-wrap {
		padding: 24px 20px;
	}

	.bosl-sip-inputs {
		grid-template-columns: 1fr;
	}

	.bosl-sip-field--years {
		grid-column: 1;
	}

	.bosl-sip-result-bar {
		flex-direction: column;
		gap: 16px;
	}

	.bosl-sip-breakdown-row--highlight .bosl-sip-breakdown-val {
		font-size: 20px;
	}
}
