/* Header mega menu — JS class instead of CSS :hover (desktop) */
@media only screen and (min-width: 768px) {
	.header__menu > li.menu-item-has-children:hover ul {
		opacity: 0;
		pointer-events: none;
	}

	.header__menu > li.menu-item-has-children:hover > a {
		color: var(--color-darkText);
	}

	.header__menu > li.menu-item-has-children:hover > a::before {
		opacity: 0;
		pointer-events: none;
	}

	.header__menu > li.menu-item-has-children.is-mega-open ul {
		opacity: 1;
		pointer-events: all;
	}

	.header__menu > li.menu-item-has-children.is-mega-open > a {
		color: #fff;
	}

	.header__menu > li.menu-item-has-children.is-mega-open > a::before {
		opacity: 1;
		pointer-events: all;
	}
}

/* Skip link (WCAG 2.4.1) */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	margin: 0;
	overflow: visible;
	width: auto;
}

.skip-link {
	background-color: #fff;
	color: #235ad1;
	font-weight: 600;
	left: 0.5rem;
	padding: 0.75rem 1rem;
	position: absolute;
	text-decoration: underline;
	top: -100%;
	z-index: 100000;
}

.skip-link:focus {
	top: 0.5rem;
}

.footer {
    padding-bottom: 2.5rem;
}

/* Footer newsletter CTA */
.footer__newsletter {
	text-align: center;
	margin-bottom: 2.5rem;
}

.footer__newsletter-title {
	color: #fff;
	font-family: var(--font-Nokio);
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1.25rem;
}

@media only screen and (min-width: 768px) {
	.footer__newsletter-title {
		font-size: 1.5rem;
	}
}

.footer__newsletter .wpcf7 {
	max-width: 32.5rem;
	margin: 0 auto;
}

/* .footer__newsletter .wpcf7-form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

@media only screen and (min-width: 768px) {
	.footer__newsletter .wpcf7-form {
		flex-direction: row;
		gap: 0.625rem;
	}
} */

.footer__newsletter .wpcf7-form-control-wrap,
.footer__newsletter input[type="email"],
.footer__newsletter input[type="text"] {
	width: 100%;
}

.footer__newsletter input[type="email"],
.footer__newsletter input[type="text"] {
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 0.25rem;
	color: #fff;
	padding: 0.6875rem 1rem;
	font-size: 0.9375rem;
	outline: none;
	transition: border-color 0.3s ease;
}

.footer__newsletter input[type="email"]::placeholder,
.footer__newsletter input[type="text"]::placeholder {
	color: rgba(255, 255, 255, 0.6);
}

.footer__newsletter input[type="email"]:focus,
.footer__newsletter input[type="text"]:focus {
	border-color: #f5dc6a;
}

.footer__newsletter input[type="submit"],
.footer__newsletter .wpcf7-submit {
	flex-shrink: 0;
	background: var(--color-red);
	color: #fff;
	border: none;
	border-radius: 0.25rem;
	padding: 0.6875rem 1.5rem;
	font-family: var(--font-Nokio);
	font-weight: 600;
	font-size: 0.9375rem;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.3s ease, color 0.3s ease;
}

.footer__newsletter input[type="submit"]:hover,
.footer__newsletter .wpcf7-submit:hover {
	background: #f5dc6a;
	color: #7b2f3d;
}

/* Autocomplete / autofill styling */
.footer__newsletter input[type="email"]:-webkit-autofill,
.footer__newsletter input[type="email"]:-webkit-autofill:hover,
.footer__newsletter input[type="email"]:-webkit-autofill:focus,
.footer__newsletter input[type="text"]:-webkit-autofill,
.footer__newsletter input[type="text"]:-webkit-autofill:hover,
.footer__newsletter input[type="text"]:-webkit-autofill:focus {
	-webkit-text-fill-color: #fff;
	-webkit-box-shadow: 0 0 0 1000px rgba(123, 47, 61, 0.85) inset;
	box-shadow: 0 0 0 1000px rgba(123, 47, 61, 0.85) inset;
	border-color: rgba(255, 255, 255, 0.4);
	transition: background-color 5000s ease-in-out 0s;
	caret-color: #fff;
}

.footer__newsletter input[type="email"]:-webkit-autofill:focus,
.footer__newsletter input[type="text"]:-webkit-autofill:focus {
	border-color: #f5dc6a;
}

/* Autocomplete dropdown list (Firefox / Edge / Chrome) */
.footer__newsletter input[type="email"],
.footer__newsletter input[type="text"] {
	color-scheme: dark;
}

.footer__newsletter .wpcf7-not-valid-tip {
	color: #f5dc6a;
	font-size: 0.8125rem;
	text-align: left;
    margin-top: 10px;
}

.footer__newsletter .wpcf7-response-output {
	color: #f5dc6a;
	font-size: 0.8125rem;
	border: none !important;
}

.footer__newsletter .wpcf7-form.invalid .wpcf7-response-output {
    display: none;
}

.footer__newsletter .form-inner-wrap .item p,
.footer__newsletter .form-inner-wrap {
    display: flex;
}

.footer__newsletter .form-inner-wrap .item {
    padding: 0 10px;
}

.footer__newsletter .wpcf7-response-output {
    text-align: left;
}

.footer__newsletter .wpcf7-spinner {
    margin: 0 4px;
}

.wpcf7 form.sent .wpcf7-response-output {
    color: #46b450;
    padding: 10px;
    margin: 0;
}

@media only screen and (max-width: 767px) {
	.footer__newsletter .form-inner-wrap .item p, .footer__newsletter .form-inner-wrap:has(.wpcf7-spinner) {
		position: relative;
	}

	.footer__newsletter .wpcf7-spinner {
		margin: 0;
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		top: calc(100% + 10px);
	}

	.footer__newsletter .form-inner-wrap {
        flex-direction: column;
	}

    .footer__newsletter .form-inner-wrap .item:first-child {
        margin-bottom: 10px;
    }

    .footer__newsletter .wpcf7-not-valid-tip {
        margin-bottom: 10px;
    }

    .footer__newsletter .form-inner-wrap label,
    .footer__newsletter input[type="submit"], 
    .footer__newsletter .wpcf7-submit {
        width: 100%;
    }

}

/* Providers — empty state (GET filters, no results) */
.providers__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.875;
  color: #000;
}

/* Providers modal loader */
.providers__modal-loader {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.providers__modal-loader span {
  display: block;
  width: 48px;
  height: 48px;
  border: 4px solid rgba(252, 66, 55, 0.2);
  border-top-color: #fc4237;
  border-radius: 50%;
  animation: providers-spin 0.7s linear infinite;
}

.providers__modal-img img {
  height: 439px;
}

@keyframes providers-spin {
  to { transform: rotate(360deg); }
}

/* Constant Contact form */
.ctct-form-embed.form_0 .ctct-form-defaults {
    background-color: transparent !important;
    max-width: 700px;
    margin: 0 auto;
}

.ctct-form-embed.form_0 .ctct-form-defaults .ctct-form-header,
.ctct-form-embed.form_0 .ctct-form-defaults .ctct-form-text, .ctct-form-embed.form_0 .ctct-form-custom .ctct-form-label, .ctct-form-embed.form_0 .ctct-form-custom .ctct-form-listname, .ctct-form-embed.form_0 .ctct-form-custom .ctct-form-lists-legend, .ctct-form-embed.form_0 .ctct-form-custom .ctct-form-date-slash, .ctct-form-embed.form_0 .ctct-form-defaults .ctct-gdpr-text, .ctct-form-embed.form_0 .ctct-form-defaults .ctct-gdpr-text .ctct-form-footer-link, .ctct-form-embed.form_0 .ctct-form-defaults .ctct-gdpr-text .ctct-form-footer-privacy-link {
    color: #fff !important;
	font-weight: 400;
}

/* Appointment */
.appointment__main-screen.hide {
	display: none;
}

.appointment__success-screen.show {
	display: block;
}

/* Salesforce form */
.contact-form-box .appointment__form-fields {
    display: flex;
    flex-wrap: wrap;
}

.contact-form-box .appointment__form-field label {
	color: #000;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .00625rem;
    line-height: 1.18;
    padding-left: 1.25rem;
	margin-bottom: 10px;
}

.contact-form-box .appointment__form-field {
    width: 50%;
	margin-bottom: 20px;
}

.contact-form-box .appointment__form-field input,
.contact-form-box .appointment__form-field select {
    width: 90%;
	border: 1px solid #000;
    border-radius: 1.5625rem;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: .0625rem;
    line-height: 2.7;
    padding: 0 1.375rem;
}

@media only screen and (max-width: 767px) {
	.contact-form-box .appointment__form-field {
		width: 100%;
	}

	.contact-form-box .appointment__form-field input,
	.contact-form-box .appointment__form-field select {
		width: 100%;
	}
}

.contact-form-box .appointment__form-field select {
	height: 2.8rem;
}

.contact-form-box .appointment__form-submit {
	text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.contact-form-box .appointment__form-submit input {
    display: inline-flex;
    align-items: center;
    background: var(--color-red);
    border: 1px solid transparent;
    border-radius: 100vw;
    color: #fff;
    font-family: var(--font-Nokio);
    font-size: 1.5rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1.5;
    outline: 0;
    padding: .5rem 1.1875rem;
    text-align: center;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    white-space: normal;
}

.contact-form-box .appointment__form-submit input:hover {
	background: var(--color-darkText);
}

/* Instagram feed */
.social .ti-widget[data-wkey="feed-instagram"] .ti-layout-container .ti-widget-layout {
	justify-content: center;
}

.social .ti-widget[data-wkey="feed-instagram"] .ti-layout-container .ti-widget-layout .ti-layout-item {
	padding: calc(20px / 2);
}

.social .ti-widget[data-wkey="feed-instagram"] .ti-layout-container .ti-widget-layout .ti-layout-item:last-child {
	display: none;
}

.social .ti-widget[data-wkey="feed-instagram"] .ti-nav-arrow {
    display: none;
}

.social.shortcode .social__border {
	background: transparent;
    border: 2px solid #7a303f;
	height: 100% !important;
	padding: 30px 0;
}

@media only screen and (max-width: 603px) {
	.social .ti-widget[data-wkey="feed-instagram"] .ti-layout-container .ti-widget-layout .ti-layout-item:last-child {
		display: inline-block;
		max-width: 70%;
	}
}

.archive .category__name-wrapper.open .category__dropdown {
    max-height: 25.75rem;
}