/* CSS Style */
.sc-section-optin-hubspot {
	display: flex;
	justify-content: flex-end;
	height: 600px;
	background: url(../../images/optin_background_desktop.jpg)
		var(--sc-colorbg-dark-mode-alt-1);
	background-size: cover;
	background-repeat: no-repeat;
	background-blend-mode: overlay;
	background-position-x: center;
	background-position-y: top;
}

.sc-section-optin-hubspot .vc_row {
	width: 80%;
}

.sc-section-optin-hubspot .wpb_wrapper {
	display: flex;
	align-items: center;
}

.sc-section-optin-hubspot .hubspot-shortcode {
	margin-left: auto;
}

.sc-section-optin-hubspot .sc-optin-heading .wpb_wrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.sc-section-optin-hubspot .sc-optin-heading h3 {
	padding: 8px;
	background-color: var(--sc-color-light-mode);
	color: var(--sc-color-dark-mode-80);
	font-weight: var(--sc-font-weight-regular);
	font-size: 24px;
	letter-spacing: var(--sc-letter-spacing-uppercase);
	text-transform: uppercase;
}

.sc-section-optin-hubspot .sc-optin-heading h2 {
	color: var(--sc-color-dark-mode);
	font-weight: var(--sc-font-weight-extralight);
	font-size: 54px;
}

.sc-section-optin-hubspot form {
	display: flex;
	flex-direction: column;
	width: 400px;
	gap: 16px;
}

.sc-section-optin-hubspot form label {
	position: absolute;
	top: 10px;
	left: 16px;
	color: black;
	font-size: 22px;
	font-size: 18px;
	font-family: var(--sc-font-family-header);
}

.sc-section-optin-hubspot form .hs-form-field {
	position: relative;
}

.sc-section-optin-hubspot fieldset {
	display: flex;
	flex-direction: column;
	width: 100%;
	gap: 16px;
}

.sc-section-optin-hubspot fieldset div.input {
	margin: 0 !important;
}

.sc-section-optin-hubspot .hs-form-field {
	width: 100% !important;
}

.sc-section-optin-hubspot form input {
	width: 100%;
	height: 50px;
	border-radius: 100px;
}

.sc-section-optin-hubspot form input.error {
	border: 2px solid var(--sc-color-error-border);
}

.sc-section-optin-hubspot form .hs-error-msgs {
	width: 80%;
	margin: 4px;
	margin-left: auto;
	border-radius: 4px;
	background: var(--sc-color-error-background);
	list-style-type: none;
}

.sc-section-optin-hubspot form .hs-error-msgs {
	height: 32px;
}

.sc-section-optin-hubspot form .hs-error-msgs li {
	display: flex;
	align-items: center;
	height: 100%;
}

.sc-section-optin-hubspot form .hs-error-msgs label {
	position: relative;
	top: 0;
	font-size: 14px;
}

.sc-section-optin-hubspot form input.hs-input {
	padding-left: 70px;
	background-color: var(--sc-color-dark-mode-80);
	color: var(--sc-color-light-mode);
	font-weight: var(--sc-font-weight-regular);
	font-size: 16px;
	font-family: var(--sc-font-family-body);
	text-align: left;
}

.sc-section-optin-hubspot form input[type="submit"] {

	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	padding-bottom: 4px;
	border: 2px solid var(--sc-secondary-button-color-border);
	background: none;
	color: var(--sc-secondary-button-color-text);
	font-weight: var(--sc-font-weight-regular);
	font-size: 24px;
	line-height: 1;
	font-family: var(--sc-font-family-header);
	text-align: center;
}

.sc-section-optin-hubspot form input[type="submit"]:hover {
	background-color: var(--sc-color-primary);
	color: var(--sc-primary-button-color-text);
}

/* Media Query for Tablets Ipads portrait mode */
@media (max-width: 1024px) {
	.sc-section-optin-hubspot {
		height: 500px;
		margin-top: 100px;
		background: url(../../images/optin_background_tablet.jpg)
			var(--sc-colorbg-dark-mode-alt-1);
		background-repeat: no-repeat;
		background-blend-mode: overlay;
		background-position-x: right;
		background-position-y: top;
	}

	.sc-section-optin-hubspot .hubspot-shortcode {
		margin: auto;
	}

	.sc-section-optin-hubspot .wpb_wrapper {
		flex-direction: column;
		gap: 60px;
	}

	.sc-section-optin-hubspot .sc-optin-heading .wpb_wrapper {
		gap: 4px;
	}

	.sc-section-optin-hubspot .sc-optin-heading h3 {
		width: 100%;
		text-align: center;
	}

	.sc-section-optin-hubspot .sc-optin-heading h2 {
		width: 100%;
		text-align: center;
	}
}

/* Media Query for low resolution  Tablets, Ipads */
@media (max-width: 768px) {
	.sc-section-optin-hubspot .sc-optin-heading h3 {
		width: fit-content;
		margin: auto;
		font-size: 18px;
	}

	.sc-section-optin-hubspot form input.hs-input {
		width: 100% !important;
	}
}

/* Media Query for Mobile Devices */
@media (max-width: 480px) {
	.sc-section-optin-hubspot {
		height: 480px;
		margin-top: 100px;
		background: url(../../images/optin_background_mobile.jpg)
			var(--sc-colorbg-dark-mode-alt-1);
		background-repeat: no-repeat;
		background-blend-mode: overlay;
		background-position-x: left;
		background-position-y: top;
	}

	.sc-section-optin-hubspot .vc_row {
		width: 100%;
	}

	.sc-section-optin-hubspot .hubspot-shortcode {
		width: 100%;
		margin: auto;
	}

	.sc-section-optin-hubspot form {
		width: 100%;
	}

	.sc-section-optin-hubspot .sc-optin-heading h2 {
		font-size: 38px;
	}
}
