/* Home E4 Shuttle Text and Video */

@media (max-width: 768px) {
  #id-home-right-automation > div > h2 {
    text-align: center;
		margin-top: -40px;
  }
}

#id-home-right-automation > div > h2 {
  color: #e30613; 
}

@media (min-width: 1025px) {
  #id-home-right-automation .thumbnail:not(:has(.video-embed)) {
    padding-top: 100px;
  }
}

/* Mobile and tablet only: remove bottom padding */
@media (max-width: 1024px) {
  #id-home-right-automation {
    padding-bottom: 0 !important;
  }
}

#id-e4-shuttle {
  max-width: 700px; 
  margin: 0 auto;
  display: block;
	margin-bottom: 20px;
	margin-top: -60px;
}

/* Hide Core Values Section on Our Vision Page */
#id-our-core-values {
	display: none;
}

/* Reset padding and margin for submenu */
.main-navigation .sub-menu {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* Adjust list items within submenu */
.main-navigation .sub-menu li {
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

/* Remove pseudo-elements that might add space */
.main-navigation .sub-menu::before,
.main-navigation .sub-menu::after,
.main-navigation .sub-menu li::before,
.main-navigation .sub-menu li::after {
  content: none !important;
  display: none !important;
}

/* Ensure no empty list items are present */
.main-navigation .sub-menu li:empty {
  display: none !important;
}

/* Override the excessive min-height on the submenu content */
#main-menu .listing .item .sub-menu .sub-menu-wrapper .sub-menu-content {
  min-height: 0 !important;
}

/* Hide the Search Function */ 
.header-menu .search{
  display: none !important;
}

/* Remove the sub-menu sidebar */
.sub-menu .sidebar {
	display: none !important;
}

/* .navigation-groups {
	  display: flex !important;
  flex-direction: row !important;
	gap: 10px;
	width: 100% !important; 
	padding-right: 0 !important;
} 

.navigation-groups .group {
	flex: 1 !important;
	min-width: 0 !important;
}
 */
/* .sub-menu-content .navigation-groups {
    width: 100% !important;
    padding-right: 0px !important;
    padding-bottom: 60px;
		display: flex !important;
		flex-direction: row !important;
	  justify-content: space-between !important;
} */

/* .navigation-groups .group {
	flex: 1 !important;
} */

/* === MEDIA LAYOUT: FLEX FOR VIDEO === */

/* Tablet and desktop: side-by-side layout for inline video */
@media (min-width: 768px) {
  .media-elements.has-inline-video {
    display: flex;
    flex-wrap: wrap;
/*     gap: 2rem; */
    align-items: flex-start;
  }

  .media-elements.has-inline-video > .description,
  .media-elements.has-inline-video > .thumbnail {
    flex: 1 1 50%;
    max-width: 50%;
    box-sizing: border-box;
  }
}

/* Mobile: stacked layout */
@media (max-width: 767px) {
  .media-elements > .description,
  .media-elements > .thumbnail {
    width: 100%;
    max-width: 100%;
    display: block;
    margin-bottom: 2rem;
  }
}

/* === VIDEO EMBED STYLES === */

.thumbnail,
.video-embed {
  margin: 0;
  padding: 0;
  display: block;
}

.video-embed {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
}

.video-embed .responsive-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  vertical-align: top;
}

/* Optional: remove padding from inline video block */
.thumbnail.is-inline-video {
  padding-top: 0 !important;
}

.savoye-frame-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* This covers the existing header inside the iframe */
.savoye-header-replacement {
  position: absolute;
  top: 0;                  /* adjust if iframe has top padding */
  left: 0;
  width: 100%;
  height: 60px;            /* height of LinkedIn bar area */
  background-color: #0052A5; /* SAVOYE blue */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Arial", "Helvetica Neue", sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 10;
  pointer-events: none; /* keeps iframe clickable */
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Adjustments for smaller screens */
@media (max-width: 600px) {
  .savoye-header-replacement {
    font-size: 20px;
    height: 50px;
  }
}

/* X-PTS Shuttle Page Built for any environment image move down */

#id-xpts-shuttle img {
	padding-top: 110px;
}

sup {
  font-size: 0.7em; /* Smaller size for the ® */
  vertical-align: super;
}

.trademark {
  font-size: 0.7em;
  vertical-align: super;
  position: relative;
  top: -0.3em; /* Adjust for precise positioning */
}

/* Wrapper for the whole tour section */
.svy-tour-block {
  max-width: 960px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
}

.svy-tour-intro {
  text-align: center;
  margin-bottom: 24px;
}

/* Outer form wrapper */
.svy-tour-form {
  max-width: 720px;
  margin: 0 auto 40px auto;
  padding: 24px 20px;
  text-align: left;
}

/* Container and row layout overrides */
.svy-tour-form .wpforms-container,
.svy-tour-form .wpforms-form {
  max-width: 100% !important;
  margin: 0 auto !important;
}

/* Kill flex and columns that are shrinking fields */
.svy-tour-form .wpforms-field-container {
  display: block !important;
}

/* Make every field full width */
.svy-tour-form .wpforms-field,
.svy-tour-form .wpforms-field.wpforms-field-text,
.svy-tour-form .wpforms-field.wpforms-field-name,
.svy-tour-form .wpforms-field.wpforms-field-email,
.svy-tour-form .wpforms-field.wpforms-field-phone {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  display: block !important;
  margin-right: 0 !important;
}

/* Inputs, selects, textareas */
.svy-tour-form input[type="text"],
.svy-tour-form input[type="email"],
.svy-tour-form input[type="tel"],
.svy-tour-form input[type="number"],
.svy-tour-form input[type="date"],
.svy-tour-form select,
.svy-tour-form textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d4d7dd;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  background-color: #ffffff;
}

/* Labels */
.svy-tour-form .wpforms-field-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: #333333;
}

/* Errors */
.svy-tour-form .wpforms-error {
  font-size: 12px;
  color: #cd2e26;
}

/* Submit button */
.svy-tour-form .wpforms-submit-container {
  text-align: right;
  margin-top: 16px;
}

.svy-tour-form button.wpforms-submit {
  background-color: #cd2e26;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.svy-tour-form button.wpforms-submit:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* Responsive tweak */
@media (max-width: 600px) {
  .svy-tour-form {
    padding: 16px 12px;
  }
  .svy-tour-form .wpforms-submit-container {
    text-align: center;
  }
}

/* Tour Page Form Full-Width */
#id-tour-form .wp-form-type-1-wrapper {
  max-width: 100% !important;
  width: 100% !important;
}