/* Carbon Calculator Elementor Widget */

.jutso-cc-widget {
	background-color: #5c46ea;
	border-radius: 40px;
	padding: 64px;
	display: flex;
	align-items: center;
	gap: 48px;
	overflow: hidden;
}

.jutso-cc-widget.no-image {
	justify-content: center;
	text-align: center;
}

.jutso-cc-widget.no-image .jutso-cc-widget-content {
	max-width: 818px;
}

/* Globe Image */
.jutso-cc-widget .jutso-cc-widget-image {
	flex-shrink: 0;
	width: 262px;
}

.jutso-cc-widget .jutso-cc-widget-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* Content */
.jutso-cc-widget .jutso-cc-widget-content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

/* Heading */
.jutso-cc-widget .jutso-cc-widget-heading {
	color: var(--white, #fff);
	margin: 0;
	font-family: var(--displaydisplaylg-font-family, "jut-so HWT Artz", sans-serif);
	font-size: var(--displaydisplaylg-font-size, 56px);
	font-weight: var(--displaydisplaylg-font-weight, 400);
	line-height: var(--displaydisplaylg-line-height, 1);
	letter-spacing: var(--displaydisplaylg-letter-spacing, 0.5px);
	text-transform: var(--displaydisplaylg-text-transform, uppercase);
}

/* Form wrapper */
.jutso-cc-widget .jutso-cc-widget-form-wrapper {
	position: relative;
}

/* Form row */
.jutso-cc-widget .jutso-cc-widget-form-row {
	display: flex;
	gap: 16px;
	background: #081140;
	border-radius: 12px;
	padding: 24px;
	align-items: stretch;
}

/* Input wrapper with icon */
.jutso-cc-widget .jutso-cc-widget-input-wrap {
	flex: 1;
	display: flex;
	align-items: center;
	background: #f5f7fa;
	border: none;
	border-radius: 8px;
	padding: 20px 18px;
	gap: 8px;
	height: 56px;
	box-sizing: border-box;
}

.jutso-cc-widget .jutso-cc-widget-link-icon {
	flex-shrink: 0;
	color: #6a7280;
	width: 20px;
	height: 10px;
}

/* Input */
.jutso-cc-widget .jutso-cc-widget-input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	padding: 0;
	height: 100%;
	color: #081140;
	font-family: var(--inputforminput-font-family, inherit);
	font-size: var(--inputforminput-font-size, 18px);
	line-height: var(--inputforminput-line-height, 1);
	letter-spacing: var(--inputforminput-letter-spacing, 0.5px);
}

.jutso-cc-widget .jutso-cc-widget-input::placeholder {
	color: #6a7280;
}

.jutso-cc-widget .jutso-cc-widget-input.jutso-cc-input-error {
	box-shadow: inset 0 0 0 2px var(--red500, #e74c3c);
	border-radius: 8px;
}

/* Button */
.jutso-cc-widget .jutso-cc-widget-button,
.jutso-cc-widget button.jutso-cc-widget-button {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	min-width: 128px;
	min-height: 48px;
	padding: 12px 16px;
	background-color: #68faab;
	color: #081140;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-family: var(--otherbuttonlabel-font-family, inherit);
	font-size: var(--otherbuttonlabel-font-size, 16px);
	font-weight: var(--otherbuttonlabel-font-weight, 700);
	line-height: var(--otherbuttonlabel-line-height, 1);
	letter-spacing: var(--otherbuttonlabel-letter-spacing, 1.5px);
	text-transform: var(--otherbuttonlabel-text-transform, uppercase);
	transition: background-color 0.2s;
	white-space: nowrap;
}

.jutso-cc-widget .jutso-cc-widget-button:hover,
.jutso-cc-widget button.jutso-cc-widget-button:hover {
	background-color: #4de895;
}

/* Consent text */
.jutso-cc-widget .jutso-cc-widget-consent {
	margin: 0;
	color: var(--whitemuted, rgba(255, 255, 255, 0.6));
	font-family: var(--paragraphpxs-font-family, inherit);
	font-size: var(--paragraphpxs-font-size, 14px);
	line-height: var(--paragraphpxs-line-height, 1.5);
	letter-spacing: var(--paragraphpxs-letter-spacing, normal);
}

/* Validation message */
.jutso-cc-widget .jutso-cc-validation-msg {
	color: #ff6b6b;
	font-size: 14px;
	margin: 8px 0 0;
	display: none;
}

/* Loader inside widget */
.jutso-cc-widget .jutso-cc-loader {
	text-align: center;
	padding: 20px 0;
}

.jutso-cc-widget .jutso-cc-loader p {
	color: var(--whitemuted, rgba(255, 255, 255, 0.6));
	margin: 12px 0 0;
	font-size: 14px;
}

.jutso-cc-widget .jutso-cc-loader-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.jutso-cc-widget .jutso-cc-loader-dots span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #68faab;
	animation: jutso-cc-bounce 1.4s infinite ease-in-out both;
}

.jutso-cc-widget .jutso-cc-loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.jutso-cc-widget .jutso-cc-loader-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes jutso-cc-bounce {
	0%, 80%, 100% { transform: scale(0); }
	40% { transform: scale(1); }
}

/* Error inside widget */
.jutso-cc-widget .jutso-cc-error {
	text-align: center;
	padding: 20px 0;
}

.jutso-cc-widget .jutso-cc-error-message {
	color: var(--white, #fff);
	font-weight: 600;
	margin: 0 0 8px;
}

.jutso-cc-widget .jutso-cc-try-again {
	color: #68faab;
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 767px) {
	.jutso-cc-widget {
		flex-direction: column;
		text-align: center;
	}

	.jutso-cc-widget .jutso-cc-widget-form-row {
		flex-direction: column;
	}

	.jutso-cc-widget .jutso-cc-widget-input-wrap {
		padding: 20px 12px;
	}

	.jutso-cc-widget .jutso-cc-widget-button,
	.jutso-cc-widget button.jutso-cc-widget-button {
		width: 100%;
	}
}
