.searchform {
	padding: 40px;
	input {
		outline: none;
		user-select: none;
	}
	input:-webkit-autofill,
	input:-webkit-autofill:hover, 
	input:-webkit-autofill:focus, 
	input:-webkit-autofill:active{
		-webkit-box-shadow: 0 0 0 60px white inset !important;
	}
	.search {
		display: grid;
		grid-gap: 30px;
		grid-auto-flow: column;
		grid-auto-columns: 1fr 1fr 220px;

		.search__input {
			position: relative;
			display: flex;
			align-items: center;
			justify-content: center;
			height: 65px;
			overflow: hidden;
			* {
				transition: none;
			}
			.search__label {
				display: flex;
				align-items: center;
				justify-content: center;
				width: auto;
				height: 100%;
				padding: 0 10px;
				border: 0px solid transparent;
			}
			.search__field {
				height: 100%;
				border: none;
				outline: none;
				// border-radius: 0;
				padding: 0.5rem 100px 0.5rem 1rem;
				background-color: #ffffff;

				&:active, &:focus {
					background-color: #f8f8f8;
				}

				&--term {
					@media screen and (max-width: 1023px) {
						padding: 0.5rem 1rem 0.5rem 1rem;
					}
				}
			}
			.search__select {
				-webkit-appearance: none;
				-moz-appearance: none;
				height: auto;
				text-indent: 0;
				text-overflow: initial;
				padding: 0;
				border: none;
				background-color: transparent;
				color: var(--e-global-color-text);
				// background-image: url('data:image/svg+xml;utf8,<svg fill="black" width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
				// background-repeat: no-repeat;
				// background-position: right center;
			}
			.search__subinput {
				display: flex;
				flex-direction: column;
				justify-content: center;
				position: absolute;
				width: auto;
				height: 100%;
				right: 0;
				bottom: 50%;
				border-radius: 0;
				padding: 0 10px;
				background-color: #ffffff;
				transform: translateY(50%);
				.search__sublabel {
					color: var(--e-global-color-text);
					font-weight: 400;
				}
			}
		}
		.category__input {
			justify-content: flex-start;
		}
		.search__submit {
			height: 65px;
			.submit {
				width: 100%;
				height: 100%;
			}
		}
	}
}
.hits:empty {
	padding: 0;
}
.hits {
	padding: 100px 0 45px 0;
	// color: var(--highlight-color);
	.hits__headline {
		font-size: 34px;
		line-height: 42px;
		font-weight: 700;
		text-align: center;
		margin: 30px 0;
	}
	.hit {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		position: relative;
		margin: 0 0 15px 0;
		padding: 15px 55px 15px 15px;
		border: 1px solid var(--zrm_ws_jl_card_border_color);
		border-radius: 8px;
		color: var(--e-global-color-text);
		overflow: hidden;
		transition: transform 250ms ease, color 350ms ease;
		.hit__head {
			display: flex;
			align-items: center;
			//width: calc(40% - 15px);
			width: 100%;
			.hit__logo {
				flex: 0 0 auto;
				width: 65px;
				height: 65px;
				margin: 0 15px 0 0;
				img {
					width: 100%;
					height: 100%;
					object-fit: contain;
					&[src=""] {
						opacity: 0;
					}
				}
			}
			.hit__title {
				.hit__name {
					font-size: 20px;
					line-height: 20px;
					font-weight: 600;
				}
				.hit__employer {
					font-size: 14px;
					line-height: 20px;
					font-weight: 400;
				}
			}
		}
		.hit__body {
			display: flex;
			//align-items: center;
			align-items: stretch;
			justify-content: space-between;
			//width: calc(60% - 15px);
			width: 100%;
			.hit__wrapper {
				display: flex;
				align-items: flex-start;
				justify-content: center;
				flex-direction: column;
				border-radius: 5px;
				width: 33.3333333333%;
				padding: 10px;
				margin: 0 5px;
				//text-align: center;
				//padding: 0 6px;

				&:not(.hit__createdat) {
					background-color: var(--zrm_ws_jl_card_infos_background_color)
				}
			}
			.hit__wrapper + .hit__wrapper {
				//border-left: 1px solid #C9CAD4;
			}
			.hit__label {
				font-size: 12px;
				line-height: 16px;
				// color: #274754;
			}
			.hit__content {
				font-size: 12px;
				line-height: 16px;
				font-weight: 700;
			}
		}
		.hit__arrow {
			display: flex;
			align-items: center;
			justify-content: center;
			position: absolute;
			right: 0;
			top: 0;
			width: 40px;
			height: 100%;
			// background-color: #274754;
			// background-color: var(--e-global-color-accent);
			background-color: var(--e-global-color-primary);

			svg {
				path {
					stroke: var(--zrm_ws_jl_card_highlight_color);
				}
			}
		}
		&:hover {
			color: var(--e-global-color-secondary);
			transform: translateX(10px);
		}

		&--top-job {
			//border-color: var(--e-global-color-primary);
			border-color: var(--zrm_ws_jl_card_highlight_background_color);
			border-width: 3px;
			padding-top: 25px;
			position: relative;

			&:after {
				content: 'TOP JOB';
				display: block;
				//background-color: var(--e-global-color-primary);
				background-color: var(--zrm_ws_jl_card_highlight_background_color);
				//color: #fff;
				color: var(--zrm_ws_jl_card_highlight_color);
				border-radius: 0 0 5px 5px;
				font-size: 12px;
				font-weight: 700;
				height: fit-content;
				width: max-content;
				padding: 2px 8px;
				position: absolute;
				top: 0;
				left: 90px;

				@media screen and (max-width: 767px) {
					border-radius: 0 0 5px 0;
					left: 0;
				}
			}
		}
	}
	.hits__error {
		color: red;
		text-align: center;
	}
}

.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	&[data-pages-max="0"],&[data-pages-max="1"] {
		display: none;
	}
	.prev_button,.next_button {}
	&[data-pages-max="0"],&[data-pages-max="1"] {
		display: none;
	}
	.pages {
		display: flex;
		list-style: none;
		padding: 0;
		margin: 0 15px;
		.pages__item {
			position: relative;
			margin: 0 10px;
			cursor: pointer;
			&.active {
				font-weight: 700;
				&:after {
					content: '';
					position: absolute;
					right: 0;
					bottom: 0;
					width: 100%;
					height: 2px;
					background: #000000;
				}
			}
		}
	}
}

@media screen and (max-width: 992px) {
	.searchform {
		.search {
			grid-auto-flow: row;
			grid-auto-columns: 1fr;
		}
	}
}

@media screen and (max-width: 800px) {
	.hits {
		.hit {
			flex-wrap: wrap;
			.hit__head,.hit__body {
				width: 100%;
			}
			.hit__head {
				margin: 0 0 15px 0;
			}

			.hit__body {
				flex-wrap: wrap;
				gap: 10px;
				
				.hit__wrapper {
					width: 100%;
				}
			}
		}
	}
}

// ZRM Suggestions
.zrm-suggestions-container {
    margin-top: 20px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;

	&:empty {
		display: none;
	}

    h3 {
        margin-top: 0;
        margin-bottom: 15px;
        font-size: 1.2em;
    }

    .zrm-suggestion-list {
        list-style: none;
        padding: 0;
        margin: 0 0 20px 0;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;

        .zrm-suggestion-item {
            background: #fff;
            padding: 5px 10px;
            border-radius: 4px;
            border: 1px solid #ddd;
            font-size: 0.9em;
        }
    }
}
