/* ==========================================================================
   SI Forecast Modal – Frontend Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Widget
   -------------------------------------------------------------------------- */

.sifm-widget {
	background: #fff;
	border: 1.5px solid #d4d4d4;
	border-radius: 0;
	padding: 28px 28px 0;
	font-family: inherit;
	max-width: 680px;
}

.sifm-widget__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 28px;
}

.sifm-widget__badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #f0f0f0;
	border-radius: 4px;
	padding: 5px 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #222;
}

.sifm-widget__dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #caff00;
	flex-shrink: 0;
}

.sifm-widget__subtitle {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #888;
}

/* --------------------------------------------------------------------------
   Slider Groups
   -------------------------------------------------------------------------- */

.sifm-widget__body {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 24px;
}

.sifm-slider-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sifm-slider-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #555;
}

.sifm-slider-value {
	color: #111;
	font-weight: 700;
}

/* Range Slider Reset & Styling */
.sifm-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 5px;
	border-radius: 99px;
	background: #ddd;
	outline: none;
	cursor: pointer;
	position: relative;
}

.sifm-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #caff00;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px #aad600, 0 2px 6px rgba(0,0,0,.18);
	cursor: pointer;
	transition: box-shadow .15s;
}

.sifm-slider::-webkit-slider-thumb:hover,
.sifm-slider:focus::-webkit-slider-thumb {
	box-shadow: 0 0 0 4px rgba(202,255,0,.25), 0 0 0 1px #aad600;
}

.sifm-slider::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #caff00;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px #aad600;
	cursor: pointer;
}

.sifm-slider::-moz-range-track {
	height: 5px;
	background: #ddd;
	border-radius: 99px;
}

/* --------------------------------------------------------------------------
   Results Row
   -------------------------------------------------------------------------- */

.sifm-widget__results {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 0;
	margin: 0 -28px;
	border-top: 1.5px solid #e8e8e8;
}

.sifm-result-today {
	padding: 20px 24px 24px;
}

.sifm-result-today__label,
.sifm-result-forecast__label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #888;
	margin-bottom: 6px;
}

.sifm-result-today__value {
	font-size: 32px;
	font-weight: 800;
	color: #111;
	line-height: 1;
	letter-spacing: -.02em;
}

.sifm-result-today__sub {
	font-size: 13px;
	color: #888;
	margin-top: 4px;
}

.sifm-result-forecast {
	background: #111;
	padding: 20px 24px 24px;
}

.sifm-result-forecast__label {
	color: #aaa;
}

.sifm-result-forecast__value {
	font-size: 32px;
	font-weight: 800;
	color: #caff00;
	line-height: 1;
	letter-spacing: -.02em;
}

.sifm-result-forecast__diff {
	font-size: 13px;
	color: #888;
	margin-top: 4px;
}

/* --------------------------------------------------------------------------
   CTA Button
   -------------------------------------------------------------------------- */

.sifm-cta-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: calc(100% + 56px);
	margin: 0 -28px;
	padding: 18px 28px;
	background: #caff00;
	border: none;
	border-top: 1.5px solid #b5e600;
	border-radius: 0;
	font-size: 15px;
	font-weight: 700;
	color: #111;
	cursor: pointer;
	letter-spacing: .01em;
	transition: background .15s, color .15s;
	font-family: inherit;
}

.sifm-cta-button:hover {
	background: #b5e600;
}

.sifm-cta-arrow {
	font-size: 18px;
	transition: transform .2s;
}

.sifm-cta-button:hover .sifm-cta-arrow {
	transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Modal Overlay
   -------------------------------------------------------------------------- */

.sifm-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, .65);
	align-items: center;
	justify-content: center;
	padding: 20px;
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.sifm-overlay.is-open {
	display: flex;
}

/* --------------------------------------------------------------------------
   Modal Box
   -------------------------------------------------------------------------- */

.sifm-modal {
	background: #fff;
	border-radius: 8px;
	padding: 36px;
	max-width: 500px;
	width: 100%;
	position: relative;
	box-shadow: 0 24px 64px rgba(0,0,0,.28);
	animation: sifm-slide-in .22s cubic-bezier(.34,1.4,.64,1) both;
}

@keyframes sifm-slide-in {
	from { opacity: 0; transform: translateY(24px) scale(.97); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.sifm-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: #f3f4f6;
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #555;
	transition: background .15s, color .15s;
}

.sifm-modal__close:hover {
	background: #e5e7eb;
	color: #111;
}

.sifm-modal__header {
	margin-bottom: 28px;
}

.sifm-modal__title {
	font-size: 22px;
	font-weight: 800;
	color: #111;
	margin: 14px 0 10px;
	line-height: 1.2;
	letter-spacing: -.02em;
}

.sifm-modal__desc {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	margin: 0;
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.sifm-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sifm-form__group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sifm-form__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #555;
}

.sifm-form__input {
	border: 1.5px solid #d1d5db;
	border-radius: 5px;
	padding: 11px 14px;
	font-size: 15px;
	font-family: inherit;
	color: #111;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
	outline: none;
	width: 100%;
	box-sizing: border-box;
}

.sifm-form__input::placeholder {
	color: #b0b5c0;
}

.sifm-form__input:focus {
	border-color: #caff00;
	box-shadow: 0 0 0 3px rgba(202,255,0,.2);
}

.sifm-form__input.has-error {
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

.sifm-form__submit {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #caff00;
	border: none;
	border-radius: 5px;
	padding: 14px 20px;
	font-size: 15px;
	font-weight: 700;
	color: #111;
	cursor: pointer;
	font-family: inherit;
	margin-top: 4px;
	transition: background .15s;
	width: 100%;
}

.sifm-form__submit:hover {
	background: #b5e600;
}

.sifm-form__submit:disabled {
	opacity: .6;
	cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Privacy Notice
   -------------------------------------------------------------------------- */

.sifm-form__privacy {
	font-size: 12px;
	color: #888;
	line-height: 1.55;
	margin: 0;
}

.sifm-form__privacy a {
	color: #555;
	text-decoration: underline;
}

.sifm-form__privacy a:hover {
	color: #111;
}

/* --------------------------------------------------------------------------
   Form Messages
   -------------------------------------------------------------------------- */

.sifm-form__message {
	font-size: 14px;
	border-radius: 5px;
	padding: 0;
	min-height: 0;
	transition: all .2s;
}

.sifm-form__message.is-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	padding: 10px 14px;
}

.sifm-form__message.is-success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #15803d;
	padding: 10px 14px;
}

/* --------------------------------------------------------------------------
   Success State
   -------------------------------------------------------------------------- */

.sifm-modal__success {
	text-align: center;
	padding: 20px 0 10px;
}

.sifm-success__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: #caff00;
	border-radius: 50%;
	font-size: 26px;
	font-weight: 800;
	color: #111;
	margin-bottom: 16px;
}

.sifm-modal__success p {
	font-size: 16px;
	color: #333;
	line-height: 1.6;
	margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 520px) {
	.sifm-widget {
		padding: 20px 18px 0;
	}

	.sifm-widget__results {
		grid-template-columns: 1fr;
		margin: 0 -18px;
	}

	.sifm-cta-button {
		width: calc(100% + 36px);
		margin: 0 -18px;
	}

	.sifm-result-today__value,
	.sifm-result-forecast__value {
		font-size: 26px;
	}

	.sifm-modal {
		padding: 24px 20px;
	}
}
