/*
Theme Name: LTF PWA Theme 01
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A simple, bare-bones PWA-ready WordPress theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ltf-pwa-theme-01
*/
/*

Files needed:

wp-content/mu-plugins/ <-- entire directory
[theme]/dsa_mb.js - all the dsa code
demo pages:
[theme]page-form2-academy-signup.php
[theme]page-form-docsend.php
[theme]page-form3-adam.php
[theme]page-form3-bett.php
[theme]page-form3-shopper.php
[theme]page-form4-newsletter.php
[theme]page-process-stored-data.php
[theme]style.css (this page)

There is a status bar on the right of the page, I update it with the online/offline status & also show a 'retry' button if there are
any failed pushes. The css below is for that. The dsa_mb object will create this div.

All form submissions are via ajax to our own server. This ensures that users are logged in (currently as admin user).
The code in the mu-plugins files catches the submissions using the 'action' get/post parameter, package up the submitted data,
and send it to the relevant server (zapier/hubspot/pipedream etc). It responds with OK or error to the client code (ajax)
handled by dsa_mb code. This will alert the user & if theres an error it will store it locally for the user to push later.

Once a form has called the correct dsa_mb code (via onsubmit=...; return false;) there is nothing else you have to do in the front end.

The only consideration for the front end code is to generate the forms EXACTLY as they are on the test pages in the theme directory (same
dir as dsa_mb.js).

ALL javascript for dsa offline is in the dsa_mb.js file, inside the dsa_mb object. There are little bits of code on the form demo
pages, eg. page-form3-shopper.php which are purely for pre-processing the form, or maybe for some display stuff. I can
move these into the dsa_mb object if needed, but they are not part of the dsa code per-se.

There are things I have done, and there is a demo page showing exactly how the form has to be, and exactly what to do on sumit:

1. login - I catch login & call a server, no front-end stuff for this
2. register - this is the typeform embed if online or page-form2-academy-signup.php if offline. Has anyone thought about user online -> embed typeform -> user goes offline?
3. contact - there are 3 main forms that all submit to the same WP action - adam (calendly if online - again, what if user goes offline after this is displayed?), bett, mystery shopper. There are optional fields for adam & bett & I've also totally hacked this for the new 'mystery shopper' form. See the 3 files page-form3-*.php
4. newsletter - simple form page-form4-newsletter.php
also there is a form that appears at various places on the site to send a document to someone. The demo page for this form is page-form-docsend.php

There is also a front-end page in the theme directory called page-process-stored-data.php which is not anything to do with the forms,
but contains very useful stuff in the event of a problem with the local stored data, and would allow us to extract data & reset it
in the event of any data corruption which might cause the whole offline thing to stop working properly.
We might want to include this as a hidden page - I have no idea if simon wants to do this tho.



 */
/* Fonts */
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-VariableFont_wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Italic-VariableFont_wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
/* Colours */
div#offlineInfo {
  position: fixed;
  width: 25px;
  border: 1px #aaa solid;
  border-radius: 5px;
  right: 0px;
  top: calc(50% - 200px);
  height: 400px;
  padding: 0px;
  -webkit-writing-mode: sideways-lr;
      -ms-writing-mode: sideways-lr;
          writing-mode: sideways-lr;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  font-size: 12pt;
}

div#offlineInfo.online {
  background-color: #4a4;
}

div#offlineInfo.offline {
  background-color: #d44;
}

html {
  overflow-y: scroll;
  overflow-x: hidden;
}

body {
  background-color: #ffffff;
  color: #000000;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 16px;
}

p {
  margin-bottom: 20px;
}

b, strong {
  font-weight: 600;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
}

h1 {
  font-size: 56px;
  line-height: 62px;
  margin-bottom: 40px;
}

h2 {
  font-size: 35px;
  margin-bottom: 30px;
}

h3 {
  font-size: 40px;
  line-height: 42px;
  margin-bottom: 40px;
}

h4 {
  font-size: 22px;
  line-height: 23px;
  margin-bottom: 20px;
  font-weight: 500;
}

@media (max-width: 768px) {
  h2 {
    font-size: 28px; /* Reduced for smaller screens */
    margin-bottom: 20px; /* Adjusted for better spacing */
  }
}
a {
  color: inherit;
  text-decoration: underline;
}

button, .button, .wp-block-button__link {
  border-radius: 0;
  border: 0;
  padding: 10px 20px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: black;
  background-color: #F3B43E;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

button:hover, .button:hover, .wp-block-button__link:hover {
  background-color: black;
  color: white;
}

a.black-btn, button.black-btn, .black-btn a, .black-btn button {
  background-color: black;
  color: white;
}

a.black-btn:hover, button.black-btn:hover, .black-btn a:hover, .black-btn button:hover {
  background-color: #F3B43E;
  color: black;
}

.dsa_logo {
  position: absolute; /* Correct property to position the image */
  height: 49px; /* Set the image height */
  top: 40px; /* Distance from the top of the nearest positioned ancestor */
  left: 40px; /* Distance from the left of the nearest positioned ancestor */
}

.dsa_menu {
  position: absolute; /* Correct property to position the image */
  height: 15px; /* Set the image height */
  top: 47.5px; /* Distance from the top of the nearest positioned ancestor */
  right: 40px; /* Distance from the left of the nearest positioned ancestor */
}

.all-pages-wrapper {
  padding-top: 90px;
}

/* TABS */
.tabs-container {
  padding: 40px;
  padding-bottom: 120px;
}

.back_to_home_link {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center; /* Vertically aligns items */
}

.back_to_home_link a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center; /* Ensures the arrow and text are aligned */
  text-decoration: none; /* Optional: Remove underline from the link */
  color: inherit; /* Optional: Maintain the text color of the parent */
}

.back_to_home_link img {
  margin-right: 8px; /* Adjust spacing between the arrow and text */
  max-height: 12px; /* Optional: Restrict the image height if needed */
  display: inline-block; /* Ensure the image behaves inline with flex */
}

.tabs-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  list-style: none;
  padding: 0 20px;
  margin-bottom: 40px;
}
.tabs-list li:last-of-type {
  border-right: 0 !important;
}

.tab-item {
  font-size: 14px;
  line-height: 16px;
  text-transform: uppercase;
  font-weight: 300;
  padding: 0 20px;
  border-right: 1px solid black;
  cursor: pointer;
}

.tab-item:hover {
  font-weight: 500;
}

/* Responsive layout when menu_responsive class is added */
.tabs-list.menu_responsive {
  display: block; /* Make the container block-level for stacking */
  padding: 0; /* Remove the right padding */
  margin-top: 20px;
}

.tabs-list.menu_responsive .tab-item {
  margin-right: 0; /* Remove horizontal spacing */
  margin-bottom: 15px; /* Add vertical spacing between tabs */
  text-align: center; /* Center-align text if desired */
}

/* Optional: Remove the last margin for cleaner appearance */
.tabs-list.menu_responsive .tab-item:last-child {
  margin-bottom: 0;
}

.tab-item.active {
  font-weight: 500;
}

.tabs-content {
  padding: 0 40px;
}

.tab-content {
  display: none;
  max-width: 1200px;
  margin: auto;
}

.tab-content.active {
  display: block;
}

/* SUB TABS */
.sub-tabs-list {
  border-top-right-radius: 20px;
  position: absolute; /* Make it absolute to position relative to the nearest positioned ancestor */
  left: 0; /* Align it to the left edge of the page */
  width: 225px;
  background-color: #999999;
  padding: 60px 20px 120px 20px;
  background-size: 100% auto; /* Ensures the image width is 100% of the parent, height adjusts proportionally */
  background-repeat: no-repeat; /* Prevents the image from repeating */
  background-position: bottom; /* Positions the image at the bottom of the div */
}

.sub-tab-item {
  padding: 10px;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
}

.sub-tab-item.active {
  font-weight: bold;
}

.sub-tabs-content {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}

.sub-tab-content {
  display: none;
}

.sub-tab-content.active {
  display: block;
}

.main-tab-content {
  position: relative; /* The parent container for vertical centering reference */
}

.float_folder_left,
.float_folder_right {
  position: fixed; /* Position relative to the viewport */
  top: 50%; /* Vertically center in the viewport */
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%); /* Adjust to truly center within parent container */
  z-index: -1;
  background-repeat: no-repeat; /* Prevents the image from repeating */
  background-position: center; /* Positions the image at the bottom of the div */
  background-size: contain;
}

.float_folder_right {
  right: -100px; /* Stick to the left edge of the viewport */
  margin-top: -200px; /* Adjust vertical position within the parent */
  width: 282px;
  height: 328px;
}

.float_folder_left {
  left: -100px; /* Stick to the right edge of the viewport */
  margin-top: 200px; /* Adjust vertical position within the parent */
  width: 328px;
  height: 282px;
}

@media (max-width: 1024px) {
  .float_folder_left, .float_folder_right {
    display: none;
  }
}
/* VIDEOS */
.responsive-video-container {
  position: relative;
  padding-bottom: 56.25%; /* Aspect ratio 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000; /* Optional: background color */
  margin-bottom: 20px;
}

.responsive-video-container iframe,
.responsive-video-container object,
.responsive-video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* HOME PAGE */
.home_tiles {
  padding: 0 40px 0 40px;
}

@media (min-width: 768px) {
  .home_tiles .wp-block-column {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex; /* Enable flexbox for the container */
    -ms-flex-wrap: wrap;
        flex-wrap: wrap; /* Ensure the columns maintain their original behavior */
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between; /* Maintain horizontal layout for columns */
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center; /* Center the entire container vertically */
    min-height: 100vh; /* Ensure the container fills the full viewport height */
    margin: 0 auto; /* Center horizontally if needed */
  }
  .home_tiles .wp-block-column:nth-child(even) img {
    margin-top: 40px;
  }
  .home_tiles .wp-block-column:nth-child(odd) img {
    margin-bottom: 40px;
  }
}
/* Newsletter Sign Up */
.newsletter_sign_up {
  padding: 0 40px 0 40px;
}

.newsletter_sign_up .wp-block-image {
  margin: auto;
  max-width: 768px;
}

@media (min-width: 768px) {
  .newsletter_sign_up .wp-block-column {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex; /* Enable flexbox for the container */
    -ms-flex-wrap: wrap;
        flex-wrap: wrap; /* Ensure the columns maintain their original behavior */
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between; /* Maintain horizontal layout for columns */
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center; /* Center the entire container vertically */
    margin: 0 auto; /* Center horizontally if needed */
  }
}
/* MENU */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  color: black;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.3s ease, visibility 0.3s ease;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-menu {
  width: 50%;
  background-color: white;
  border-left: solid 1px black;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 130px 80px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.popup-menu a {
  display: block;
  width: 100%;
  font-size: 25px;
  line-height: normal;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-decoration: none;
  font-weight: 400;
}

@media (max-width: 768px) {
  .popup-menu a {
    font-size: 36px; /* Reduced font size for smaller screens */
    margin-bottom: 20px; /* Adjusted spacing for tighter layout */
  }
}
.popup-menu a img {
  height: 21px;
}

.popup-close,
.popup-open {
  cursor: pointer;
  font-size: 2rem;
  background: none;
  border: none;
}

.top_popup_menu {
  position: absolute; /* Correct property to position the image */
  top: 47.5px; /* Distance from the top of the nearest positioned ancestor */
  right: 40px; /* Distance from the left of the nearest positioned ancestor */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 40px;
}

.top_popup_menu .top_menu_item {
  width: content-fit;
  font-size: 15px;
}

.top_popup_menu .top_menu_item.bold {
  font-weight: 600;
}

.top_popup_menu .avatar {
  height: 12px;
  margin-right: 10px;
}

.top_popup_menu .top_menu_item a {
  text-decoration: none;
  font-size: 15px;
}

.popup-close {
  height: 15px; /* Set the image height */
}

/* LOGIN PAGES */
.page-id-10 .dsa_logo {
  top: 40px;
  left: calc(75% - 77px);
}

.page-template-template-login-pages .popup-open, .page-template-template-login-pages .popup-overlay {
  display: none;
}
.page-template-template-login-pages #content {
  padding: 0;
}
.page-template-template-login-pages .login-image-container .login-image {
  position: absolute;
  width: 50vw;
  height: 100vh;
  top: 0;
  right: 50%;
}
.page-template-template-login-pages .login-image-container .login-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}
.page-template-template-login-pages .login_right {
  padding-left: 80px;
}

.login_page_wrap {
  margin: auto;
  max-width: 1200px;
  padding: 0 40px 0 40px;
  min-height: 100vh;
  gap: 0;
}

@media (min-width: 768px) {
  .login_page_wrap .wp-block-column {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex; /* Enable flexbox */
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column; /* Stack items vertically */
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center; /* Align items vertically in the center */
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start; /* Align items to the left horizontally */
    gap: 0; /* Remove any spacing between items */
    min-height: 100vh; /* Ensure the container fills the full viewport height */
    margin: 0 auto; /* Center the container horizontally if needed */
  }
}
/* LOGIN FORM */
.custom-login-form {
  width: 100%;
}
.custom-login-form .form-group {
  display: block;
  margin-bottom: 20px;
  width: 100%;
}
.custom-login-form .form-group input {
  width: 100%;
  display: block;
  background-color: transparent;
  border-radius: 0;
  border: solid 1px black;
  padding: 15px 20px;
  line-height: 20px;
  font-size: 16px;
  color: black;
}
.custom-login-form .form-group input::-webkit-input-placeholder {
  color: black;
}
.custom-login-form .form-group input::-moz-placeholder {
  color: black;
}
.custom-login-form .form-group input:-ms-input-placeholder {
  color: black;
}
.custom-login-form .form-group input::-ms-input-placeholder {
  color: black;
}
.custom-login-form .form-group input::placeholder {
  color: black;
}
.custom-login-form .submit-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 20px;
}
.custom-login-form .forgot_password a {
  text-decoration: none;
  font-weight: 500;
}

.back_to_login {
  margin-top: 20px;
  text-align: center;
}

.back_to_login a {
  font-size: 15px;
  text-decoration: none;
}

.login_error {
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #f5c6cb;
  text-align: center;
  background-color: #f8d7da;
  color: #721c24;
  font-size: 20px;
}

.login_message {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  margin-top: 60px;
}

.login_message .icon {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  -webkit-box-flex: 0;
      -ms-flex-positive: 0;
          flex-grow: 0;
}

.login_message .icon img {
  height: 20px;
}

.login_message .text {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  font-size: 17px;
  text-align: left;
}

.login_right {
  padding-left: 20px;
}

/* DIGITAL - INTRODUCTION */
.folder_background_white {
  background-image: url("https://merz-aesthetics.mzstaging.co.uk/dsa/max/wp-content/uploads/2024/12/folder_outline_white.webp");
  background-size: cover; /* Ensures the image covers the entire div */
  background-position: center; /* Centers the background image */
  background-repeat: no-repeat; /* Prevents tiling of the image */
  /* Aspect ratio */
  width: 100%; /* You can adjust this width as needed */
  aspect-ratio: 1920/1338; /* Maintains the 1920:1338 ratio */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; /* Enables flexbox for layout */
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column; /* Stacks items in a column */
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center; /* Vertically centers items */
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start; /* Aligns items to the left */
  padding-left: 20px; /* Optional: Adds some space from the left edge */
  position: relative; /* Optional: For absolute positioning inside */
  overflow: hidden; /* Prevents content overflow */
  color: #000000;
  padding: 80px;
}

.center_button {
  width: 100%;
}

/* EXAMPLE CONTENT MODAL */
.modal {
  display: none; /* Ensure the modal is hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 0 20px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

/* Modal content container */
.modal-content {
  background-color: transparent;
  width: 100%; /* Full width */
  max-width: calc((100vh - 240px) * 16 / 9); /* Ensure 40px margin on each side */
  padding: 60px 0 0 0; /* Inner padding for content */
  -webkit-box-sizing: border-box;
          box-sizing: border-box; /* Include padding in the size */
  border-radius: 0; /* Optional: rounded corners */
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

/* Responsive video container for aspect ratio */
.modal-content .video-wrapper {
  position: relative;
  width: 100%; /* Full width */
  padding-bottom: 56.25%; /* Aspect ratio: 16:9 */
  height: 0;
  overflow: hidden;
  border: 2px solid #999999;
  background-color: #000000;
}

.modal-content .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Close button */
.modal .close {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 47px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
}

/* Make the block wrapper full-width */
.example-content-wrapper {
  position: relative;
  width: calc(100vw - var(--scrollbar-width, 0px));
  margin-left: calc(-50vw + 50%); /* Offset to ignore parent container */
  margin-bottom: -60px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 60px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 120px;
}

/* Optional styling for individual videos */
.example-video {
  -ms-flex-preferred-size: calc(25% - 45px);
      flex-basis: calc(25% - 45px);
}

@media (max-width: 768px) {
  .example-video {
    -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
  }
  .example-content-wrapper {
    padding: 40px;
  }
}
.example-content-heading {
  -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
  margin-bottom: 0px;
}

.example_content_button_wrap {
  -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
  text-align: center;
}

a.example-content-button {
  display: inline-block;
  padding: 7.5px 40px 7.5px 40px;
  font-size: 20px;
  border-radius: 50px;
  text-decoration: none;
  background-color: #ffffff;
  border: 1px solid #999999;
  color: #999999;
}

.example-video img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  margin-bottom: 20px;
}

.video-title {
  font-weight: 600;
}

/* CASE STUDIES */
.case_study_links a {
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 16px;
}

/* COMMUNICATIONS */
p.small_text {
  font-size: 12px;
  margin-bottom: 20px;
}

/* MYSTERY SHOPPER */
li.spaced_number_bullets {
  margin-bottom: 20px;
}

/* FEEDBACK BLOCKS */
.feedback-block {
  position: relative; /* Ensure the parent container is positioned for absolute child elements */
  padding-bottom: 70px; /* Space for the pagination dots */
}

.feedback-block .swiper-container {
  width: 100%; /* Let the container stretch across the viewport */
  margin: 0 auto; /* Center the container */
}

.feedback-block .swiper-slide {
  aspect-ratio: 1920/1338; /* Maintain the 1920:1338 ratio */
  -ms-flex-negative: 0;
      flex-shrink: 0; /* Prevent the slides from shrinking */
  background-size: cover; /* Ensure the image covers the entire div */
  background-position: center; /* Centers the background image */
  background-repeat: no-repeat; /* Prevents tiling of the image */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; /* Align content inside the slide */
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start; /* Vertically center slide content */
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center; /* Horizontally center slide content */
  cursor: -webkit-grab;
  cursor: grab;
}

/* Pagination styling */
.swiper-pagination {
  position: absolute;
  bottom: -40px; /* Move 40px below the container */
  left: 50%; /* Center horizontally */
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%); /* Correct centering offset */
  text-align: center;
}

.swiper-pagination-bullet {
  background: transparent; /* Default: transparent */
  border: 2px solid #999999; /* Black outline for non-selected dots */
  width: 12px;
  height: 12px;
  border-radius: 50%; /* Make dots circular */
  -webkit-transition: background 0.3s ease, border 0.3s ease;
  transition: background 0.3s ease, border 0.3s ease; /* Smooth transition */
  opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
  background: #999999 !important; /* Solid color for selected dot */
  border: none; /* Remove border for active dot */
  opacity: 1 !important;
}

.feedback-block .swiper-slide {
  background-image: url("https://merz-aesthetics.mzstaging.co.uk/dsa/max/wp-content/uploads/2024/12/folder_outline_dark.webp");
  padding: 60px;
  color: #000000;
  font-size: 16px;
}

.feedback-block .swiper-slide img {
  opacity: 0.25;
}

.feedback-block .swiper-slide-active {
  background-image: url("https://merz-aesthetics.mzstaging.co.uk/dsa/max/wp-content/uploads/2024/12/folder_outline_white.webp");
}

.feedback-block .swiper-slide-active img {
  opacity: 1;
}

.top_quote {
  height: 50px;
  margin-bottom: 20px;
}

.bottom_quote {
  height: 15px;
  margin-top: -30px;
  margin-left: auto;
}

/* ADDITIONAL READING COLUMNS */
.dsa_columns_001 {
  background-color: #000000;
  width: calc(100vw - var(--scrollbar-width, 0px));
  margin-left: calc(-50vw + 50%); /* Offset to ignore parent container */
  padding: 140px 120px 120px 120px;
  margin-top: -20px;
}

.dsa_columns_001 .dsa_inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 60px;
  margin-bottom: 120px;
}

.dsa_columns_001 .dsa_column {
  -ms-flex-preferred-size: calc(33.3% - 40px);
      flex-basis: calc(33.3% - 40px);
}

.dsa_columns_001 img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-box-shadow: 0 0 20px 10px rgba(255, 87, 2, 0.5);
          box-shadow: 0 0 20px 10px rgba(255, 87, 2, 0.5);
  border: 1px solid #ff5702 !important;
  margin-bottom: 20px;
}

.dsa_columns_001 a {
  text-decoration: none;
}

.email_button {
  text-align: center;
}

.email_button a {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex; /* Use inline-flex to make it behave like an inline-block element */
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center; /* Vertically centers items within the flex container */
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center; /* Optional: centers text and image horizontally if needed */
  padding: 7.5px 40px;
  font-size: 20px;
  border-radius: 50px;
  text-decoration: none;
  background-color: #ff5702;
  border: 1px solid #ff5702;
  color: #000000;
  margin-bottom: 120px;
}

.email_button a img {
  height: 18px;
  display: inline-block;
  margin-bottom: 0;
  margin-right: 10px; /* Optional: Adds space between the image and text */
}

/* iframe widget */
.tf-v1-widget iframe {
  height: 800px !important;
}

/* DUMMY FORM */
.custom-form {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
          box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  font-family: Arial, sans-serif;
}

.custom-form .form-group {
  margin-bottom: 15px;
}

.custom-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #fff;
}

.custom-form input[type=text],
.custom-form input[type=email],
.custom-form input[type=password] {
  width: 100%;
  padding: 10px;
  border: 2px solid #ff6700;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-size: 16px;
}

.custom-form input[type=text]:focus,
.custom-form input[type=email]:focus,
.custom-form input[type=password]:focus {
  border-color: #ff4500;
  outline: none;
}

.custom-form input[type=checkbox] {
  margin-right: 10px;
  -webkit-transform: scale(1.2);
          transform: scale(1.2);
}

.custom-form .submit-button {
  width: 100%;
  padding: 10px 15px;
  background: #ff6700;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
}

.custom-form .submit-button:hover {
  background: #ff4500;
}

/* EXPECATION TILES */
.expectation_col {
  color: #000000;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 50px 40px 40px 40px;
  margin-bottom: 40px !important;
  -webkit-box-shadow: 0 0 20px 10px rgba(0, 47, 162, 0.5);
          box-shadow: 0 0 20px 10px rgba(0, 47, 162, 0.5);
}

.expectation_col h2 {
  margin-bottom: 40px;
  padding-bottom: 5px;
  border-bottom: 1px solid #002fa2;
  font-size: 35px;
  font-weight: 500;
}

/* SEND TO EMAIL */
.send_to_email {
  margin-top: 20px;
  font-size: 16px;
  padding: 5px 15px 5px 15px;
}

/* New Styles for Ultherapy DSA Specific */
h5 {
  margin-bottom: 20px;
}

.switchable-content:not(.active), .switchable-image:not(.active) {
  display: none !important;
}

.switchable-content-buttons .active a {
  background-color: #F3B43E;
  color: black;
}
.switchable-content-buttons .active a:hover {
  background-color: black;
  color: white;
}

.switchable-image figcaption {
  text-align: right;
  font-size: 12px;
  margin-top: 20px;
  margin-bottom: 0;
}

.cta-box {
  max-width: 870px;
  margin: auto !important;
  background-color: #F3B43E;
  padding: 60px;
}

.roi-inputs-container .roi-input-container {
  padding: 100px 20px;
  -webkit-box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1607843137);
          box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1607843137);
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.roi-inputs-container .roi-input-container label {
  width: 100%;
  text-align: center;
  font-size: 22px;
  line-height: 23px;
  font-weight: 600;
  margin-bottom: 20px;
}
.roi-inputs-container .roi-input-container input {
  display: block;
  width: calc(100% - 80px);
  margin: auto;
  font-size: 42px;
  line-height: 46px;
  font-weight: 600;
  color: black;
  border: 0;
  background-color: #eeeeee;
  padding: 10px 20px;
}

.narrow-col {
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.newsletter_sign_up .container.newsletter {
  max-width: 100%;
  padding: 0;
}
.newsletter_sign_up .container.newsletter form > div {
  gap: 10px;
  margin-bottom: 10px !important;
}
.newsletter_sign_up .container.newsletter form input, .newsletter_sign_up .container.newsletter form select {
  border-radius: 0 !important;
  background-color: transparent !important;
  border-color: black !important;
  color: black !important;
  width: 100% !important;
  margin-bottom: 0 !important;
  padding: 10px 20px !important;
}
.newsletter_sign_up .container.newsletter form legend {
  color: black !important;
}
.newsletter_sign_up .container.newsletter form input[type=submit] {
  background-color: #F3B43E !important;
  width: auto !important;
}
.newsletter_sign_up .container.newsletter form .checkbox-container {
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.newsletter_sign_up .container.newsletter form .checkbox-container input {
  width: auto !important;
}

.next-prev-content-container .next-prev-content {
  height: 0;
  overflow: hidden;
  opacity: 0;
}
.next-prev-content-container .next-prev-content.active {
  height: auto;
  opacity: 1;
  -webkit-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;
}
.next-prev-content-container .next-prev-buttons .wp-block-button {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
  -webkit-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;
}
.next-prev-content-container .next-prev-buttons .wp-block-button.active {
  opacity: 1;
  cursor: pointer;
  pointer-events: all;
}

.roi-inputs-container.disabled, .roi-button.disabled {
  height: 0;
  overflow: hidden;
  opacity: 0;
}

.roi-results {
  height: 0;
  overflow: hidden;
  opacity: 0;
}

.roi-results.active {
  height: auto;
  opacity: 1;
  -webkit-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;
}

.assets-buttons-container .assets-buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 40px;
}
.assets-buttons-container .assets-buttons span {
  pointer-events: none;
  opacity: 0.5;
}
.assets-buttons-container .assets-buttons span.active {
  cursor: pointer;
  pointer-events: all;
  opacity: 1;
}

.assets-container {
  -ms-flex-wrap: wrap !important;
      flex-wrap: wrap !important;
  gap: 40px;
}
.assets-container .asset {
  -ms-flex-preferred-size: calc(25% - 30px) !important;
      flex-basis: calc(25% - 30px) !important;
}
.assets-container .asset .asset-text-container {
  position: relative;
  padding-right: 40px;
}
.assets-container .asset .asset-text-container input {
  position: absolute;
  top: 0;
  right: 0;
}
.assets-container .asset .asset-text-container h6 {
  font-size: 12px;
  font-weight: 600;
  color: #F3B43E;
}

.footer-bar-tabs-list-container {
  position: fixed;
  bottom: 57px;
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 9;
}
.footer-bar-tabs-list-container .tabs-list {
  margin-bottom: 0;
  padding: 22px 20px;
}

.footer-bar-tabs-list-container.single-tab .tabs-list {
  display: none;
}

.page-references {
  position: fixed;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  z-index: 9999;
  bottom: 16px;
  left: 40px;
  height: 24px;
  width: 40px;
  overflow: hidden;
  background-image: url(img/references.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center left;
  cursor: pointer;
}
.page-references > div {
  width: 0;
  height: 0;
  overflow: hidden;
}

.page-references.active {
  top: 0;
  bottom: auto;
  left: 0;
  height: 100vh;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  overflow-y: scroll;
  background-image: none;
  cursor: default;
}
.page-references.active > div {
  border: solid 1px black;
  padding: 80px;
  background-color: white;
  position: relative;
  width: auto;
  height: auto;
}
.page-references.active > div::after {
  content: "";
  cursor: pointer;
  width: 15px;
  height: 15px;
  position: absolute;
  top: 20px;
  right: 20px;
  display: block;
  background-image: url(img/menu-close.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

.footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: white;
  border-top: solid 1px black;
  padding: 16px;
}
.footer-bar .quick-nav-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 40px;
}
.footer-bar h6 {
  margin: 0;
  font-weight: 500;
}
.footer-bar .wp-block-button a {
  padding: 0;
  font-size: 0;
  color: transparent;
  display: block;
  height: 24px;
  width: 30px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: transparent;
}
.footer-bar .wp-block-button a.disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.25;
}
.footer-bar .prev-arrow .wp-block-button a {
  background-image: url(img/left-arrow.svg);
}
.footer-bar .next-arrow .wp-block-button a {
  background-image: url(img/right-arrow.svg);
}