/**
 * AF Vacancy Search styles
 */

.afvs-search-widget,
.afvs-results,
.afvs-results-empty {
	width: 100%;
}

.afvs-heading {
	margin: 0 0 12px;
	color: #29abe2;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
}

.afvs-search-form-wrap {
	margin-bottom: 28px;
}

.afvs-search-form input[type="text"] {
	display: block;
	width: 100%;
	margin: 0 0 10px;
	padding: 10px 12px;
	border: 1px solid #ccd0d4;
	background: #fff;
	box-sizing: border-box;
	font-size: 16px;
}

.afvs-search-form input[type="text"]:focus {
	outline: none;
	box-shadow: 0 0 5px 0 rgba(41, 171, 226, 1);
	border-color: #29abe2;
}

.afvs-btn {
	display: inline-block;
	border: 0;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
	box-sizing: border-box;
}

.afvs-btn-search {
	width: 100%;
	padding: 12px 16px;
	background: #29abe2;
	color: #fff !important;
	font-size: 16px;
	text-transform: none;
}

.afvs-btn-search:hover,
.afvs-btn-search:focus {
	background: #1f96c9;
	color: #fff !important;
}

.afvs-latest-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.afvs-latest-item {
	list-style: none;
	margin: 0 0 30px;
	padding: 0 0 10px;
}

.afvs-vacancy-title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.afvs-vacancy-title a {
	color: #222;
	text-decoration: none;
}

.afvs-vacancy-title a:hover {
	color: #29abe2;
}

.afvs-excerpt {
	margin-bottom: 12px;
	color: #444;
}

.afvs-excerpt p {
	margin: 0 0 10px;
}

.afvs-latest-item .afvs-btn-apply,
.afvs-latest-item .sf-button,
.afvs-latest-item .apply-button2 {
	float: right;
	clear: both;
}

.afvs-latest-item::after {
	content: "";
	display: table;
	clear: both;
}

.afvs-btn-apply {
	padding: 10px 18px;
	background: #222;
	color: #fff !important;
	font-size: 13px;
	text-transform: uppercase;
}

.afvs-btn-apply:hover,
.afvs-btn-apply:focus {
	background: #000;
	color: #fff !important;
}

/* Results page – nearest by postcode */
.afvs-result-item {
	display: flex;
	align-items: stretch;
	gap: 20px;
	padding: 0 0 20px;
	margin: 0 0 20px;
	border-bottom: 2px solid #29abe2;
}

.afvs-distance {
	flex: 0 0 120px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	padding: 24px 10px;
	background: #29abe2;
	color: #fff;
	text-align: center;
	box-sizing: border-box;
}

.afvs-distance-label {
	display: block;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
}

.afvs-distance-value {
	display: block;
	margin-top: 4px;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.1;
}

.afvs-result-body {
	flex: 1;
	min-width: 0;
	padding: 10px 0;
}

.afvs-result-title {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
}

.afvs-result-title a {
	color: #29abe2 !important;
	text-decoration: none;
}

.afvs-result-title a:hover {
	text-decoration: underline;
}

.afvs-result-body .afvs-btn-apply,
.afvs-result-body .sf-button,
.afvs-result-body .apply-button2 {
	margin-top: 8px;
}

.afvs-pagination {
	margin-top: 30px;
	text-align: center;
	color: #29abe2;
	font-weight: 700;
}

.afvs-pagination .current {
	color: #000;
}

.afvs-pagination a {
	color: #29abe2;
	font-weight: 700;
}

.afvs-pagination a:hover {
	color: #000;
}

.afvs-empty-message {
	margin: 0 0 20px;
	line-height: 1.4;
	font-size: 22px;
	font-weight: 600;
}

.afvs-results-empty .afvs-search-form {
	max-width: 420px;
}

@media (max-width: 767px) {
	.afvs-result-item {
		flex-direction: column;
		gap: 12px;
	}

	.afvs-distance {
		flex-basis: auto;
		width: 100%;
		min-height: 90px;
	}

	.afvs-heading {
		font-size: 24px;
	}

	.afvs-result-title,
	.afvs-vacancy-title {
		font-size: 20px;
	}
}
