/* Replacements for Divi-only modules (contact form, slider, social follow, toggle, button, blurb).
   Values measured from the Divi site with working/visual-regression/probe-component-style-tree.js. */

/* ---------- Contact form: [beo_contact_form type="booking|schedule|email" variant="white"] ---------- */
.beo-form { font-size: 14px; line-height: 23.8px; }
.beo-form__title { font-family: var(--wp--preset--font-family--playfair-display-sc); font-size: 20px; font-weight: 500; line-height: 30px; color: #fff; padding-bottom: 16px; }
.beo-form__message p { padding-bottom: 14px; }
/* Divi grid: the form is 103% wide (margin-left -3%), each field has 3% left padding, rows 3% apart. */
.beo-form__fields { margin-left: -3%; }
.beo-form__fields::after { content: ""; display: table; clear: both; }
.beo-form__field { position: relative; float: left; width: 100%; padding-left: 3%; margin: 0 0 3%; }
.beo-form__field--half { width: 50%; }
.beo-form input, .beo-form select, .beo-form textarea {
	display: block; width: 100%; margin: 0; padding: 16px; border: 0; border-radius: 0; box-shadow: none;
	font: 400 14px/28px var(--wp--preset--font-family--open-sans); color: #999; background: #f2f4f3; -webkit-appearance: none; appearance: none;
}
.beo-form select { padding-right: 20px; cursor: pointer; }
.beo-form textarea { height: 150px; min-height: 150px; resize: vertical; }
/* Divi's select arrow: a 6px triangle on the field */
.beo-form__field:has(select)::after {
	content: ""; position: absolute; top: 50%; right: 10px; margin-top: -3px; width: 0; height: 0;
	border: 6px solid transparent; border-top-color: #666; pointer-events: none;
}
.beo-form__bottom { display: flex; float: right; margin-top: -1.5%; text-align: right; }
.beo-form__captcha { white-space: nowrap; }
.beo-form__captcha label { font-weight: 500; color: #666; }
.beo-form .beo-form__captcha input { display: inline-block; width: 50px; vertical-align: baseline; }
.beo-form__submit {
	position: relative; margin-left: 18px; padding: 3.9px 13px; border: 0; border-radius: 0; background: transparent; cursor: pointer;
	font: 600 13px/22.1px var(--wp--preset--font-family--open-sans); color: #8d8181; transition: padding .2s;
}
/* hover: Divi slides the arrow-circle icon in on the left */
.beo-form__submit::before {
	content: ""; position: absolute; top: 50%; left: 9px; width: 13px; height: 13px; margin-top: -6.5px; opacity: 0; background: currentColor; transition: opacity .2s;
	-webkit-mask: url(icons/arrow-right-circle.svg) center / contain no-repeat; mask: url(icons/arrow-right-circle.svg) center / contain no-repeat;
}
.beo-form__submit:hover { padding: 3.9px 9.1px 3.9px 26px; }
.beo-form__submit:hover::before { opacity: 1; }
/* background submit (assets/contact-form.js): Divi faded the form to .2 while sending */
.beo-form { transition: opacity .2s; }
.beo-form.is-sending { opacity: .2; }
.beo-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* "Email Me" (dark footer) */
.beo-form--email ::placeholder { color: rgba(255, 255, 255, .8); opacity: 1; }
.beo-form--email input, .beo-form--email textarea { font-size: 16px; line-height: 24px; color: rgba(255, 255, 255, .8); background: rgba(141, 129, 129, .15); }
.beo-form--email .beo-form__fields { margin-left: -3%; }
.beo-form--email .beo-form__message p { color: #fff; }
/* booking form inside a coloured box (HOME): white fields */
.beo-form--white input, .beo-form--white select, .beo-form--white textarea { background: #fff; }

@media (max-width: 767px) {
	.beo-form__field--half { width: 100%; }
}

/* ---------- Slideshow: core Gallery with block style "Slideshow" (assets/slideshow.js) ---------- */
.wp-block-gallery.is-style-beo-slideshow {
	position: relative; display: block; height: 460px; margin: 0; overflow: hidden; background: #fff;
}
.wp-block-gallery.is-style-beo-slideshow > .wp-block-image {
	position: absolute; inset: 0; width: 100% !important; height: 100%; margin: 0; opacity: 0; transition: opacity .5s ease-in-out;
}
/* no JS: first slide only; with JS (.beo-js) the active one */
.wp-block-gallery.is-style-beo-slideshow:not(.beo-js) > .wp-block-image:first-child,
.wp-block-gallery.is-style-beo-slideshow > .wp-block-image.is-active { opacity: 1; z-index: 1; }
.wp-block-gallery.is-style-beo-slideshow > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.wp-block-gallery.is-style-beo-slideshow .beo-pos-top img { object-position: top center; }
/* :not(#beo): core's is-cropped gallery rule forces cover with an id-level selector */
.wp-block-gallery.has-nested-images.is-style-beo-slideshow figure.wp-block-image.beo-fit-contain:not(#beo) img { object-fit: contain; }
/* Divi gradient overlay: transparent to white from the middle down */
.wp-block-gallery.is-style-beo-slideshow.beo-fade-bottom > .wp-block-image::after {
	content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, #fff 100%);
}
.beo-slideshow__dots { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 2; display: flex; justify-content: center; gap: 10px; line-height: 23.8px; height: 23.8px; }
.beo-slideshow__dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 7px; background: rgba(0, 0, 0, .3); opacity: .5; cursor: pointer; }
.beo-slideshow__dot.is-active { background: #333; opacity: 1; }
.beo-slideshow__arrow {
	position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; padding: 0; border: 0; background: none; cursor: pointer;
	color: #666; opacity: 0; transition: all .3s ease-in-out;
}
.beo-slideshow__arrow::before {
	content: ""; position: absolute; inset: 0; background: currentColor;
	-webkit-mask: var(--beo-icon) center / contain no-repeat; mask: var(--beo-icon) center / contain no-repeat;
}
.beo-slideshow__arrow--prev { left: -22px; --beo-icon: url(icons/arrow-prev.svg); }
.beo-slideshow__arrow--next { right: -22px; --beo-icon: url(icons/arrow-next.svg); }
.is-style-beo-slideshow:hover .beo-slideshow__arrow { opacity: 1; }
.is-style-beo-slideshow:hover .beo-slideshow__arrow--prev { left: 22px; }
.is-style-beo-slideshow:hover .beo-slideshow__arrow--next { right: 22px; }

/* ---------- Social icons: core Social Icons, style "Squares" (Divi social follow) ---------- */
.wp-block-social-links.is-style-beo-squares { gap: 0 8px; margin: 1px 0 0; padding: 0; }
.wp-block-social-links.is-style-beo-squares .wp-social-link {
	width: 48px; height: 48px; margin: 0 0 8px; border-radius: 0; background-color: rgba(141, 129, 129, .15); color: #fff; transform: none;
}
.wp-block-social-links.is-style-beo-squares .wp-social-link a { position: relative; display: block; width: 48px; height: 48px; padding: 0; }
.wp-block-social-links.is-style-beo-squares .wp-social-link svg { display: none; }
.wp-block-social-links.is-style-beo-squares .wp-social-link a::before {
	content: ""; position: absolute; top: 16px; left: 16px; width: 16px; height: 16px; background: currentColor;
	-webkit-mask: var(--beo-icon) center / contain no-repeat; mask: var(--beo-icon) center / contain no-repeat;
}
.wp-block-social-links.is-style-beo-squares .wp-social-link-facebook a::before { --beo-icon: url(icons/facebook.svg); }
.wp-block-social-links.is-style-beo-squares .wp-social-link-instagram a::before { --beo-icon: url(icons/instagram.svg); }

/* ---------- Toggle: core Details, style "Toggle" ---------- */
.wp-block-details.is-style-beo-toggle {
	margin: 0 0 20px; padding: 20px; background: #fff; box-shadow: 0 10px 90px -6px rgba(0, 0, 0, .2); font-size: 14px; line-height: 23.8px;
}
.wp-block-details.is-style-beo-toggle > summary {
	position: relative; display: block; padding-right: 50px; list-style: none; cursor: pointer;
	font-size: 16px; font-weight: 500; line-height: 16px; color: #666;
}
.wp-block-details.is-style-beo-toggle > summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-beo-toggle > summary::after {
	content: ""; position: absolute; right: 0; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: #ccc;
	-webkit-mask: url(icons/toggle-plus.svg) center / contain no-repeat; mask: url(icons/toggle-plus.svg) center / contain no-repeat;
}
.wp-block-details.is-style-beo-toggle[open] > summary { color: #333; }
.wp-block-details.is-style-beo-toggle[open] > summary::after { -webkit-mask-image: url(icons/toggle-minus.svg); mask-image: url(icons/toggle-minus.svg); }
.wp-block-details.is-style-beo-toggle[open] > summary + * { margin-top: 20px; }
.wp-block-details.is-style-beo-toggle > :not(summary) { margin-block-end: 0; padding-bottom: 14px; }
.wp-block-details.is-style-beo-toggle > :last-child:not(summary) { padding-bottom: 0; }

/* ---------- Button: core Button, style "Underline" (Divi custom button + arrow on hover) ---------- */
/* no margin: the inline-block link on the 23.8px line box already sits 1px down, like Divi's */
.wp-block-button.is-style-beo-underline .wp-block-button__link {
	position: relative; display: inline-block; padding: 0 20px 6px 0; border: 0; border-radius: 0; background: transparent;
	font-size: 13px; font-weight: 600; line-height: 22.1px; color: #8d8181; box-shadow: 0 2px 0 0 #8d8181;
}
.wp-block-button.is-style-beo-underline .wp-block-button__link::after {
	content: ""; position: absolute; top: 4.55px; right: 4px; width: 13px; height: 13px; background: rgba(0, 0, 0, .12); opacity: 0; transition: opacity .2s;
	-webkit-mask: url(icons/arrow-right-circle.svg) center / contain no-repeat; mask: url(icons/arrow-right-circle.svg) center / contain no-repeat;
}
.wp-block-button.is-style-beo-underline .wp-block-button__link:hover::after { opacity: 1; }
/* 16px variant (Divi header buttons: 16px, padding-bottom 10px) */
.wp-block-button.is-style-beo-underline.beo-button-lg .wp-block-button__link { padding-bottom: 10px; font-size: 16px; line-height: 27.2px; }
.wp-block-button.is-style-beo-underline.beo-button-lg .wp-block-button__link::after { top: 5.6px; width: 16px; height: 16px; }

/* ---------- Blurb with circled icon (pattern "Blurb with icon") ---------- */
.beo-blurb { text-align: center; }
.beo-blurb__icon {
	position: relative; display: block; width: 80px; height: 80px; margin: 0 auto 30px; border-radius: 100%; background: #e3e5e4;
}
.beo-blurb__icon::before {
	content: ""; position: absolute; inset: 25px; background: #757776;
	-webkit-mask: var(--beo-icon) center / contain no-repeat; mask: var(--beo-icon) center / contain no-repeat;
}
.beo-blurb__icon--phone { --beo-icon: url(icons/blurb-phone.svg); }
.beo-blurb__icon--envelope { --beo-icon: url(icons/blurb-envelope.svg); }
.beo-blurb__icon--map-pin { --beo-icon: url(icons/blurb-map-pin.svg); }
.beo-blurb .beo-blurb__title { font-family: var(--wp--preset--font-family--playfair-display-sc); font-size: 18px; line-height: 27px; color: #333; }
.beo-blurb .beo-blurb__text { font-weight: 600; line-height: 25.2px; color: #8d8181; }
