/* [cc_apply_now]: see inc/apply-now.php. Matches the Elementor Apply Now button. */

.cc-apply {
	position: relative;
	display: inline-block;
	margin-top: 10px;
	font-family: "DIN Next W01", Helvetica, Arial, sans-serif;
}

.cc-apply .cc-apply__button,
.cc-apply .cc-apply__button:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 12px 50px;
	border: 0;
	border-radius: 25px;
	background: #3bbfad;
	color: #000;
	font: inherit;
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.cc-apply .cc-apply__button:hover,
.cc-apply .cc-apply__button:focus,
.cc-apply .cc-apply__button:active {
	background: #3bbfad;
	color: #000;
	text-decoration: none;
}

.cc-apply .cc-apply__button:hover,
.cc-apply .cc-apply__button:focus-visible {
	background: #3bbfad;
	color: #000;
	text-decoration: underline;
}

.cc-apply a:focus-visible,
.cc-apply__button:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px #000;
}

.cc-apply__caret {
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 7px solid currentColor;
	transition: transform 0.15s;
}

/* Dropdown */

.cc-apply__menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 50;
	box-sizing: border-box;
	min-width: 100%;
	width: max-content;
	max-width: min(340px, calc(100vw - 40px));
	margin: 0;
	padding: 8px 0;
	list-style: none;
	border-radius: 16px;
	background: #3bbfad;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
	text-align: left;
}

/* Keeps the menu open while the pointer crosses the gap above it. */
.cc-apply__menu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 8px;
}

.cc-apply--menu .cc-apply__menu {
	margin-top: 6px;
}

.cc-apply--menu.is-open .cc-apply__menu {
	display: block;
}

.cc-apply--menu.is-open .cc-apply__caret {
	transform: rotate(180deg);
}

/* Hover opens it only with a mouse: touch screens keep "hover" after a tap. */
@media (hover: hover) {
	.cc-apply--menu:hover .cc-apply__menu {
		display: block;
	}
	.cc-apply--menu:hover .cc-apply__caret {
		transform: rotate(180deg);
	}
}

.cc-apply--menu.is-closed .cc-apply__menu {
	display: none;
}

.cc-apply--menu.is-closed .cc-apply__caret {
	transform: none;
}

.cc-apply__menu li {
	margin: 0;
	padding: 0;
}

.cc-apply .cc-apply__menu a,
.cc-apply .cc-apply__menu a:visited {
	display: block;
	padding: 12px 20px;
	color: #000;
	font-size: 18px;
	line-height: 1.25;
	text-decoration: none;
}

.cc-apply .cc-apply__menu a:hover,
.cc-apply .cc-apply__menu a:focus {
	color: #000;
	background: rgba(255, 255, 255, 0.25);
	text-decoration: underline;
}

.cc-apply__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 1024px) {
	.cc-apply .cc-apply__button {
		font-size: 16px;
	}
	.cc-apply .cc-apply__menu a {
		font-size: 16px;
	}
}
