/* ===================================================
   Layout: Slider banner
   File: template-parts/flexible/slider_banner/slider_banner.css
=================================================== */

.slider-banner {
  padding-top: 90px;
  padding-bottom: 40px;
  overflow: hidden;
}

.slider-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.slider-banner-content p {
  margin: 0 !important;
}

.slider-banner .slider-row {
  padding-top: 50px;
  width: 100%;
  overflow: hidden;
}

/* ===================================================
   Marquee Slider
=================================================== */

.slider-banner-marquee {
  width: 100%;
  overflow: hidden;
}

.slider-banner-marquee .swiper-wrapper {
  align-items: center;

  /* Important for continuous marquee */
  transition-timing-function: linear !important;
}

.slider-banner-marquee .swiper-slide {
  width: 292px;
  min-width: 292px;
  height: 320px;

  border-radius: 10px;
  overflow: hidden;

  flex-shrink: 0;
}

/* Image container */

.slider-banner-marquee .img-container {
  position: relative;

  width: 100%;
  height: 320px;

  min-width: 292px;

  border-radius: 10px;
  overflow: hidden;
}

/* Gradient overlay */

.slider-banner-marquee .img-container::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 40%;

  background: linear-gradient(180deg, rgba(40, 40, 40, 0) 0%, #282828 100%);

  pointer-events: none;
  z-index: 1;
}

/* Image */

.slider-banner-marquee .img-container img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 10px;

  transition: transform 0.5s ease;
}

/* Optional hover effect */

.slider-banner-marquee .swiper-slide:hover .img-container img {
  transform: scale(1.05);
}

/* ===================================================
   Responsive
=================================================== */

@media (max-width: 767px) {
  .slider-banner {
    padding-top: 60px;
  }

  .slider-banner-content {
    align-items: flex-start;
  }

  .slider-banner .slider-row {
    padding-top: 35px;
  }

  .slider-banner-marquee .swiper-slide,
  .slider-banner-marquee .img-container {
    width: 292px;
    min-width: 292px;
    height: 320px;
  }
}

/* pop up  */
/* =========================================================
   ENQUIRY POPUP
========================================================= */

.LCV_enquiry_popup {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100%;

  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* =========================================================
   ACTIVE
========================================================= */

.LCV_enquiry_popup.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* =========================================================
   OVERLAY
========================================================= */

.LCV_enquiry_popup_overlay {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.6);
}

/* =========================================================
   POPUP INNER
========================================================= */

.LCV_enquiry_popup_inner {
  position: relative;
  z-index: 2;

  width: min(700px, calc(100% - 40px));

  max-height: calc(100vh - 40px);

  padding: 40px 40px 35px 40px;

  background: #ffffff;

  border-radius: 20px;

  overflow-y: auto;
  overflow-x: hidden;

  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;

  scrollbar-width: thin;
  scrollbar-color: rgba(40, 40, 40, 0.25) transparent;
}

.LCV_enquiry_popup_inner::-webkit-scrollbar {
  width: 6px;
  display: block;
}

.LCV_enquiry_popup_inner::-webkit-scrollbar-track {
  background: transparent;
}

.LCV_enquiry_popup_inner::-webkit-scrollbar-thumb {
  background: rgba(40, 40, 40, 0.25);
  border-radius: 8px;
}

.LCV_enquiry_popup_inner::-webkit-scrollbar-thumb:hover {
  background: var(--color-1, #ea5f37);
}

/* =========================================================
   CLOSE BUTTON
========================================================= */

.LCV_enquiry_popup_close {
  position: absolute;

  top: 15px;
  right: 15px;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;
  background: transparent;

  font-size: 30px;
  line-height: 1;

  cursor: pointer;

  z-index: 3;
}

/* =========================================================
   CONTENT
========================================================= */

.LCV_enquiry_popup_content {
  position: relative;
  z-index: 2;
}

/* =========================================================
   PAGE SCROLL LOCK
========================================================= */

html.LCV_enquiry_popup_open,
body.LCV_enquiry_popup_open {
  overflow: hidden;
}

/* =========================================================
   TABLET / LAPTOP
========================================================= */

@media (max-width: 1279px) {
  .LCV_enquiry_popup_inner {
    max-height: calc(100vh - 40px);

    overflow-y: auto;
    overflow-x: hidden;

    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;

    scrollbar-width: thin;
    scrollbar-color: rgba(40, 40, 40, 0.25) transparent;
  }

  .LCV_enquiry_popup_inner::-webkit-scrollbar {
    width: 6px;
    display: block;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
  .LCV_enquiry_popup_inner {
    width: calc(100% - 24px);

    max-height: calc(100vh - 24px);

    padding: 30px 20px;

    border-radius: 16px;
  }

  .LCV_enquiry_popup_close {
    top: 10px;
    right: 10px;

    width: 36px;
    height: 36px;

    font-size: 26px;
  }
}

.slider-banner .LCV_career_popup_description {
  text-align: left;
}

/* form dropdown  */

/* =========================================================
   CUSTOM CF7 DROPDOWNS
   For .slider-banner and .LCV_enquiry_popup
========================================================= */

.career_form_group {
  position: relative;
}

/* Hide original CF7 selects */
select.career_custom_dropdown.custom-select-hidden,
select.career_form_input.custom-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

.wpcf7-form-control-wrap:has(select.career_custom_dropdown) {
  display: block;
  position: relative;
  width: 100%;
}

.custom-cf7-select {
  position: relative;
  width: 100%;
  font-family: inherit;
  box-sizing: border-box;
}

.custom-cf7-select-trigger {
  width: 100%;
  min-height: 58px;
  padding: 15px 46px 15px 18px;
  border: 1px solid #707070;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: #282828;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, border-radius 0.15s ease;
  user-select: none;
}

.custom-cf7-select.is-open .custom-cf7-select-trigger {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.custom-cf7-select-trigger:focus-visible {
  border-color: #ea5f37;
}

select.wpcf7-not-valid + .custom-cf7-select .custom-cf7-select-trigger,
.custom-cf7-select.is-invalid .custom-cf7-select-trigger {
  border-color: #dc3545 !important;
}

.custom-cf7-select-display {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #282828;
}

.custom-cf7-select-display.custom-cf7-select-placeholder,
.custom-cf7-select-placeholder {
  color: #8c8c8c !important;
}

.custom-cf7-select-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.25s ease;
  width: 16px;
  height: 16px;
}

.custom-cf7-select.is-open .custom-cf7-select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.custom-cf7-select-arrow svg {
  display: block;
  width: 12px;
  height: 8px;
}

.custom-cf7-select-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fbfaf2;
  border: 1px solid #707070;
  border-top: 0;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 1000;
  display: none;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.custom-cf7-select.is-open .custom-cf7-select-menu {
  display: block;
}

.custom-cf7-select-option {
  width: 100%;
  padding: 14px 18px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #b5b5b1;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.35;
  color: #282828;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  outline: none;
  box-sizing: border-box;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.custom-cf7-select-option:last-child {
  border-bottom: 0;
}

.custom-cf7-select-option:hover {
  background-color: #f1efe5;
}

.custom-cf7-select-option.is-selected {
  background-color: #ede9dc;
  color: #ea5f37;
  font-weight: 500;
}

.custom-cf7-select-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}

.custom-cf7-select-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  background-color: #fbe4de;
  color: #ea5f37;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  animation: cf7TagFadeIn 0.2s ease;
}

@keyframes cf7TagFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.custom-cf7-tag-text {
  display: inline-block;
}

.custom-cf7-tag-remove {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: #ea5f37;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.custom-cf7-tag-remove:hover {
  opacity: 1;
  transform: scale(1.2);
}

@media (max-width: 767px) {
  .custom-cf7-select-trigger {
    min-height: 52px;
    padding: 12px 42px 12px 14px;
    font-size: 15px;
  }
  .custom-cf7-select-option {
    padding: 12px 14px;
    font-size: 15px;
  }
  .custom-cf7-select-tag {
    font-size: 13px;
    padding: 5px 10px;
  }
}

