/*
 Theme Name:   TenantCloud
 Theme URI:    https://tenantcloud.com
 Description:  TenantCloud child theme of Hello Elementor
 Author:       TenantCloud
 Author URI:   https://tenantcloud.com
 Template:     hello-elementor
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  tenantcloud
*/

:root {
	--tt-green: #41A541
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInLeft {
	from {
		opacity: 0;
		transform: translateX(-5px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

body {
	background-color: #FFFFFF;
}

a {
	color: var(--tt-green);
}

p {
	margin-block-end: 0;
	margin-block-start: 0;
}

dd,
dl,
dt,
li,
ol,
ul {
	background: transparent;
	border: 0;
	font-size: 100%;
	margin-block-end: 0;
	margin-block-start: 0;
	outline: 0;
	vertical-align: baseline;
	list-style-position: inside;
	padding: 0;
}

ol li {
	margin-bottom: 14px;

	&::marker {
		font-weight: bold;
		margin-right: 30px;
		margin-bottom: 14px;
	}
}

.m-0 {
	margin: 0;
}

/* HEADER */
.elementor-location-header .e-n-menu-heading .e-con.e-child .e-con-inner {
	box-shadow: 0 -10px 40px #0000000d, 0 50px 150px #0000000d, 0 100px 300px #0000000a;
	animation: fadeInUp 0.5s ease-in-out;
	border-radius: 15px;
}

a.header-menu-item {
	padding: 10px;
	border-radius: 10px;
	position: relative;
	padding-right: 34px;
	transform: all 0.5s ease-in-out;
	color: #102a43;

	p {
		font-weight: 700;
	}

	.elementor-widget-remixicon {
		background-color: #dbf1db;
		color: #102a43;
		border-radius: 5px;
	}

	&:after {
		position: absolute;
		right: 10px;
		top: 12px;
		content: "\ea6e";
		font-family: 'remixicon' !important;
		font-size: 21px;
		width: 21px;
		height: 21px;
		opacity: 0;
	}

	&:hover {
		background-color: #dbf1db;

		&:after {
			animation: fadeInLeft 0.5s forwards ease-in-out;
		}

		.elementor-widget-remixicon {
			background-color: #102a43;
			color: #dbf1db;
		}
	}
}

.elementor-location-header .e-n-menu-item:has(.e-n-menu-content.e-active) .e-n-menu-title.e-click::after {
	background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEcAAAAPCAYAAAC2u9IeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADlSURBVHgB5ZjRDYIwFEVfN2AERmAEN9ANZAPdwDiBI7CCToAjsEHZQDe43mf50mhKQqEtJznpRxvSvnCBh5GFALDhsKU6FrQcpp60oz29GWOushZYlJpa+KNra8kZvVNGFiX/IvFAFW0xHVavKSnDAxT0gnA0tJTUgHuuPBAeS4+SApg+QmOKFGfUED5CvjSIKWrczAHzRMgX3ctJlgTu1dwiXizdyZwgngj50mCOqCG+CPkSLmqIP0K+WIz4yjZ/CqLNoGZ2L645zImenumdjW3/a9FXceDyWQ2ugfcfABap+5x4AcdcQNr8lJPwAAAAAElFTkSuQmCC);
	content: "";
	height: 15px;
	position: absolute;
	bottom: -20px;
	left: 50%;
	width: 70px;
	border: none;
	z-index: 999999999999;
}

.bg-line-gray-divider {
	background: linear-gradient(180deg, #0000 40%, #f0f4f8 0);
}

/* Buttons */
.btn-outline a.elementor-button {
	background: transparent;
	border-color: #3a933a;
	color: #3a933a;
}

/* SOLUTION CARD */

.solution-card {
	.elementor-flip-box__front {
		background-color: #f8f9fa;

		.elementor-flip-box__image {
			margin: 0;
		}

		.elementor-flip-box__layer__title {
			margin: 32px 40px 12px;
		}

		.elementor-flip-box__layer__description {
			margin: 0 40px 82px;
			margin-bottom: 0;
		}

		.tc-flip-box-choose {
			display: block;
			margin-top: 10px;
			font-size: 16px;
			font-weight: 700;
			color: var(--tt-green);
		}

		.tc-flip-box-choose::after {
			content: "\ea6e";
			font-family: remixicon;
			display: inline-block;
			font-size: 16px;
			font-weight: 700;
			color: var(--tt-green);
		}
	}

	.elementor-flip-box__back {
		background: linear-gradient(301.43deg, #dbf2ed 17.17%, #eff5f6 45.78%, #faede1 98.89%);
	}

	.elementor-flip-box__button {
		padding: 0;
	}

	.elementor-flip-box__button::after {
		content: "";
		font-family: remixicon;
		position: relative;
		top: 2px;
		padding: 0;
		font-weight: 700;
	}

	/* Flip Box .solution-card: all box clickeable (front y back) */
	.elementor-flip-box:has(a.elementor-flip-box__back[href]) {
		cursor: pointer;
	}
}

body.home {
	.swiper-slide {
		transition: opacity 200ms ease-in-out;
	}

	.swiper-slide-prev {
		opacity: 0.5;
	}
}

.circle-navigation .elementor-swiper-button-prev,
.circle-navigation .elementor-swiper-button-next {
	width: 52px;
	height: 52px;
	border-radius: 100%;
	align-items: center;
	justify-content: center;
}

/* BACKGROUNDS */
.bg-header-gradient {
	background: linear-gradient(301.43deg, rgba(219, 242, 237, 0.7) 17.17%, rgba(239, 245, 246, 0.7) 45.78%, rgba(250, 237, 225, 0.7) 98.89%);
}

.bg-quote-gradient {
	background: linear-gradient(to right, #f4f1f9, #ffffff, #e8f6e8);
}

/* GRAVITY FORMS — Stacked label inside border */
/* Scope: add CSS class "tc-styled-form" in Gravity Forms > Settings > CSS Class Name */

.tc-styled-form {
	--gf-ctrl-btn-padding-x: 30px;
	--gf-ctrl-btn-padding-y: 17px;
	--gf-ctrl-btn-bg-color-primary: var(--tt-green);
	--gf-ctrl-btn-radius: 50px;
	--gf-ctrl-btn-font-size: 16px;
	--gf-ctrl-btn-font-weight: 700;
	--gf-form-footer-margin-y-start: 30px;
}

.gform_wrapper.tc-styled-form_wrapper .gform-footer {
	justify-content: center;
}

.gform_wrapper.tc-styled-form_wrapper .gform-footer input[type="submit"].gform_button {
	padding: 17px 30px;

	&:hover {
		background-color: #2b712b !important;
	}
}

/* Border box on every field */
.gform_wrapper.tc-styled-form_wrapper .gfield {
	border: 1.5px solid #C8D8E8 !important;
	border-radius: 12px;
	padding: 9px 17px;
	background: #fff;
	transition: border-color 0.2s ease;
	box-shadow: none !important;
}

.gform_wrapper.tc-styled-form_wrapper .gfield:focus-within {
	border-color: #829AB1 !important;
}

/* Hide "(Required)" text */
.gform_wrapper.tc-styled-form_wrapper .gfield_required_text {
	display: none !important;
}

.gform_wrapper.tc-styled-form_wrapper .gfield_required::before {
	content: "*";
	color: #4E647A;
	margin-left: 2px;
}

/* Labels */
.gform_wrapper.tc-styled-form_wrapper .gfield_label,
.gform_wrapper.tc-styled-form_wrapper .gform-field-label--type-sub {
	display: block !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	color: #4E647A !important;
	margin-bottom: 6px !important;
	line-height: 1 !important;
	letter-spacing: 0.01em;
}

/* All inputs/textarea/select — no type dependency */
.gform_wrapper.tc-styled-form_wrapper .ginput_container input,
.gform_wrapper.tc-styled-form_wrapper .ginput_container textarea,
.gform_wrapper.tc-styled-form_wrapper .ginput_container select {
	border: none !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	color: #102A43 !important;
	width: 100% !important;
	box-shadow: none !important;
	outline: none !important;
	line-height: 1.2 !important;
	height: auto !important;
	border-radius: 0 !important;
}

.gform_wrapper.tc-styled-form_wrapper .ginput_container input::placeholder,
.gform_wrapper.tc-styled-form_wrapper .ginput_container textarea::placeholder {
	color: #102A43 !important;
	opacity: 1;
	font-weight: 600;
}

.gform_wrapper.tc-styled-form_wrapper .ginput_container {
	margin-top: 0 !important;
}

/* Validation message */
.gform_wrapper.tc-styled-form_wrapper .gfield_validation_message {
	font-size: 12px;
	padding: 4px 0 0;
	border: none !important;
	background: transparent !important;
}

/* SUBSCRIBE FORM — Gravity Forms with CSS Class "suscribe-form"
   Layout: white pill (input area) on the left + green pill (submit) on the
   right, sharing a flat seam in the middle. Matches Figma node 171:3867. */
.gform_wrapper.suscribe-form_wrapper {
	max-width: 520px;
}

.gform_wrapper.suscribe-form_wrapper form.suscribe-form {
	display: flex;
	align-items: stretch;
}

.gform_wrapper.suscribe-form_wrapper .gform_body,
.gform_wrapper.suscribe-form_wrapper .gform_fields {
	flex: 1;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	display: flex;
}

.gform_wrapper.suscribe-form_wrapper .gfield {
	flex: 1;
	margin: 0;
	border: 0;
	box-shadow: none;
	background-color: #fff;
	border-radius: 30px 0 0 30px;
	padding: 16px 24px;
	display: flex;
	align-items: center;
}

.gform_wrapper.suscribe-form_wrapper .gfield_label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.gform_wrapper.suscribe-form_wrapper .gfield_required {
	display: none;
}

.gform_wrapper.suscribe-form_wrapper .ginput_container {
	flex: 1;
	display: flex;
}

.gform_wrapper.suscribe-form_wrapper .ginput_container input {
	width: 100%;
	border: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	padding: 0;
	font-family: "Proxima Nova", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: #102a43;

	&.large {
		padding: 0;
	}
}

.gform_confirmation_wrapper.suscribe-form .gform_confirmation_message {
	color: var(--tt-green);
	font-weight: 700;
	font-size: 18px;
	border-radius: 25px;
	padding: 20px;
	border: 1px solid var(--tt-green);
}

.gform_wrapper.suscribe-form_wrapper .ginput_container input::placeholder {
	color: #9d9d9d;
	opacity: 1;
}

.gform_wrapper.gravity-theme.suscribe-form_wrapper .gform_footer {
	margin: 0;
	padding: 0;
	display: flex;
	align-items: stretch;

	input {
		margin-bottom: 0;
	}
}

.gform_wrapper.suscribe-form_wrapper .gform_button {
	background-color: var(--tt-green);
	color: #fff;
	border: 0;
	border-radius: 0 30px 30px 0;
	padding: 17px 24px;
	font-family: "Proxima Nova", sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 21px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.gform_wrapper.suscribe-form_wrapper .gform_button:hover {
	background-color: #338033;
}

.suscribe-form_wrapper.gform_wrapper.gravity-theme .gfield_error [aria-invalid=true] {
	border: none;
}

/* Error state — keep the pill intact, surface the message below it. */

/* Hide the redundant top summary; the inline message below is enough. */

.gform_wrapper.suscribe-form_wrapper.gravity-theme .gfield_validation_message,
.gform_wrapper.gravity-theme .validation_message {
	background: none;
	border: none;
	font-size: 14px;
	margin-block-start: 0;
	margin: 0;
	padding: 0;
	width: 320px;
	font-weight: 700;
	transform: translateX(-20px);
	text-align: center;
	margin-top: 16px;
}

.gform_wrapper.suscribe-form_wrapper .gform_validation_errors {
	display: none;
}

/* Neutralize Gravity Forms' default red border around .gfield_error so
   the white pill keeps its shape. */
.gform_wrapper.suscribe-form_wrapper .gfield.gfield_error {
	border: 0;
	background-color: #fff;
	box-shadow: 0 0 0 2px #c63d2f inset;
}

.gform_wrapper.suscribe-form_wrapper input[aria-invalid="true"] {
	border: 0;
	box-shadow: none;
}

/* Pull the inline message out of the flex row and float it under the pill. */
.gform_wrapper.suscribe-form_wrapper .gfield {
	position: relative;
}

.gform_wrapper.suscribe-form_wrapper .gfield_validation_message {
	position: absolute;
	left: 24px;
	top: calc(100% + 6px);
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #c63d2f;
	font-size: 13px;
	line-height: 1.4;
}

/* SINGLE POST */
.sidebar-contents {
	top: 80px !important;

	.elementor-toc__toggle-button {
		display: none;
	}

	ul li.elementor-toc__list-item {
		--item-text-active-color: #1e2933;

		a {
			display: block;
			padding: 7px 20px 12px;
			font-size: 16px;
			line-height: 21px;
			color: #1e2933;
			text-decoration: none;

			&.elementor-item-active {
				background: #dbf1db;
				border-radius: 10px;
				font-weight: 600;
			}
		}
	}
}

body.admin-bar {
	.sidebar-contents {
		top: 110px !important;
	}
}

.elementor-nav-menu {
	--activeMenuBg: #dbf1db;

	.menu-item {
		font-size: 16px;
		border-radius: 25px;
		transition: background-color 0.3s ease;

		a {
			color: #1e2933;
			font-weight: 700;

			&::after {
				display: none;
			}
		}

		&:hover,
		&.current-menu-item {
			background-color: var(--activeMenuBg);
		}

		body.post-type-archive-case-study & {
			&.menu-case-study {
				background-color: var(--activeMenuBg);
			}
		}
	}
}

/* SEARCH — Elementor search widget styled as a pill */
.search-header {
	.e-search-form {
		display: flex;
		align-items: center;
		background-color: #f4f6f8;
		border-radius: 9999px;
		padding: 0 20px 0 20px;
		min-height: 54px;
		border: 1px solid transparent;
		transition: border-color 0.2s ease;
	}

	.e-search-form:focus-within {
		border-color: #c8d8e8;
	}

	.e-search-input-wrapper {
		flex: 1;
	}

	.e-search-input {
		width: 100%;
		border: 0;
		background: transparent;
		box-shadow: none;
		outline: none;
		padding: 0;
		font-size: 16px;
		color: #102a43;
		height: auto;
		min-height: auto;
		--e-search-icons-min-height: 0;
	}

	.e-search-input::placeholder {
		color: #829ab1;
		opacity: 1;
	}

	.e-search-input.no-icon-label {
		padding-inline-start: 0;
		padding-inline-end: 0;
	}

	.e-search-submit {
		--e-search-submit-padding: 0;
		--e-search-submit-background-color: transparent;
		border: 0;
		padding: 0 0 0 12px;
		color: #102a43;
		cursor: pointer;
		display: flex;
		align-items: center;
	}

	.e-search-submit i {
		font-size: 22px;
	}
}

/* BLOG CONTEXT — show only on /blog/, category archives, and single posts.
   Add the class "tc-show-on-blog" to the Elementor section/container. */
.tc-show-on-resources {
	display: none;
}

body.elementor-editor-active,
body.blog,
body.archive,
body.search-results,
body.page-blog.wp-singular {
	.tc-show-on-resources {
		display: revert;
	}
}

#pricing-table .e-fas-check {
	width: 14px;
	height: 14px;
}

@media(max-width: 767px) {
	#pricing-table .elementor-button-link {
		background-color: var(--tt-green);
		color: white;
		font-size: 14px;
		font-style: normal;
		font-weight: 600;
		line-height: 14px;
		width: auto;
	}
}
.category-carousel {
	.swiper-wrapper>.swiper-slide {
		width: auto !important;
	}
}
