/**
 * Header Carousel - Split Form Layout
 * Left column: Title/Copy/CTA | Right column: Hapana Form
 */

/* Split Form Layout Container */
.backstretch-carousel-split-form {
  position: relative;
  min-height: 650px;
}

/**
 * Fullscreen Header Carousel
 * When header_carousel_fullscreen ACF field is enabled
 * Header height: 83px (desktop), 60px (mobile)
 */
body.has-fullscreen-header {
  padding-bottom: 0;
}

/* Hide content wrapper when fullscreen header is active */
body.has-fullscreen-header .wrap,
body.has-fullscreen-header .content,
body.has-fullscreen-header main.main {
  display: none;
}

.backstretch-carousel-fullscreen {
  min-height: calc(100vh - 83px);
  position: relative;
}

.backstretch-carousel-fullscreen.backstretch-carousel-split-form {
  height: 100%;
}

.backstretch-carousel-fullscreen .backstretch,
.backstretch-carousel-fullscreen .header-split-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: auto !important;
  min-height: 103% !important;
}

.backstretch-carousel-fullscreen .backstretch > img {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.backstretch-carousel-fullscreen .row-split-form {
  min-height: calc(100vh - 183px);
  height: auto;
  align-items: flex-start;
  align-content: center;
}

.backstretch-carousel-fullscreen .container {
  height: auto;
  min-height: calc(100vh - 83px);
  display: flex;
  padding-top: 30px;
}

.backstretch-carousel-split-form .header-split-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.backstretch-carousel-split-form .container {
  position: relative;
  z-index: 2;
}

.backstretch-carousel-split-form .row-split-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 550px;
}

/* Left Column - Content */

.backstretch-carousel-split-form .split-content-wrapper {
  color: #ffffff;
}

.backstretch-carousel-split-form .split-sub-heading {
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #02b2ba;
  font-weight: 600;
}

.backstretch-carousel-split-form .split-heading {
  margin: 0 0 20px 0;
  font-size: 42px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
  font-family: 'National 2 Condensed', sans-serif;
  font-style: italic;
  text-transform: uppercase;
}

.backstretch-carousel-split-form .split-heading.heading-teal {
  color: #02b2ba;
}

.backstretch-carousel-split-form .split-heading.heading-orange {
  color: #ff6b35;
}

.backstretch-carousel-split-form .split-copy {
  margin-bottom: 30px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.backstretch-carousel-split-form .split-copy p {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.backstretch-carousel-split-form .list-cta-buttons-split {
  margin: 0;
  padding: 0;
}

.backstretch-carousel-split-form .list-cta-buttons-split li {
  margin-right: 15px;
  margin-bottom: 10px;
}

/* Right Column - Form */
.backstretch-carousel-split-form .col-split-form {
  padding-left: 40px;
}

.backstretch-carousel-split-form .split-form-wrapper {
  background: #ffffff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.backstretch-carousel-split-form .split-form-heading {
  margin: 0 0 20px 0;
  font-size: 24px;
  font-weight: 700;
  color: #333333 !important;
  text-align: center;
}

.backstretch-carousel-split-form .hapana-form-container iframe,
.backstretch-carousel-split-form .custom-form-container iframe {
  width: 100%;
  min-height: 400px;
  border: none;
}

/* Responsive - Tablet */
@media (max-width: 991px) {
  .backstretch-carousel-split-form {
    min-height: auto;
  }

  .backstretch-carousel-split-form .row-split-form {
    min-height: auto;
    padding: 40px 0;
  }

  .backstretch-carousel-split-form .split-heading {
    font-size: 36px;
  }

  .backstretch-carousel-split-form .col-split-content,
  .backstretch-carousel-split-form .col-split-form {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
  /* Full height background for split-form on mobile */
  body.has-split-form-header {
    padding-bottom: 0;
  }

  .backstretch-carousel-split-form {
    height: calc(100vh - 83px);
    padding-bottom: 20%;
  }

  .backstretch-carousel-split-form .backstretch,
  .backstretch-carousel-split-form .backstretch > img {
    height: 100% !important;
    top: 0 !important;
  }

  .backstretch-carousel-split-form .row-split-form {
    display: block;
    padding: 30px 0;
  }

  .backstretch-carousel-split-form .col-split-content {
    margin-bottom: 30px;
    text-align: center;
  }

  .backstretch-carousel-split-form .split-heading {
    font-size: 28px;
  }

  .backstretch-carousel-split-form .split-copy {
    font-size: 16px;
  }

  .backstretch-carousel-split-form .list-cta-buttons-split {
    text-align: center;
  }

  .backstretch-carousel-split-form .list-cta-buttons-split li {
    margin-right: 10px;
    margin-left: 10px;
  }

  .backstretch-carousel-split-form .split-form-wrapper {
    padding: 20px;
  }

  .backstretch-carousel-split-form .col-split-content,
  .backstretch-carousel-split-form .col-split-form {
    width: 100%;
    float: none;
  }

  /* Fullscreen mode on mobile */
  .backstretch-carousel-fullscreen {
    min-height: calc(100vh - 60px);
    padding-bottom: 0;
  }

  .backstretch-carousel-fullscreen .backstretch,
  .backstretch-carousel-fullscreen .header-split-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: auto !important;
    min-height: 103% !important;
  }

  .backstretch-carousel-fullscreen .backstretch > img {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .backstretch-carousel-fullscreen .row-split-form {
    min-height: auto;
    padding: 20px 0;
  }
}

/**
 * =====================================================
 * Header Video - Split Form Layout
 * =====================================================
 */

.section-header-video-split-form {
  position: relative;
  min-height: 650px;
}

.section-header-video-split-form .header-split-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.section-header-video-split-form .container {
  position: relative;
  z-index: 3;
}

.section-header-video-split-form .row-split-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 550px;
}

.section-header-video-split-form #kx-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/**
 * Fullscreen Header Video
 * When header_carousel_fullscreen ACF field is enabled
 */
.section-header-video-fullscreen {
  min-height: calc(100vh - 83px);
  height: 100%;
  position: relative;
  margin-bottom: -22px;
}

.section-header-video-fullscreen .header-split-overlay,
.section-header-video-fullscreen #kx-video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: auto !important;
  min-height: 103% !important;
}

.section-header-video-fullscreen .row-split-form {
  min-height: calc(100vh - 183px);
  height: auto;
  align-items: center;
}

.section-header-video-fullscreen .container {
  height: auto;
  min-height: calc(100vh - 83px);
  display: flex;
  padding-top: 30px;
  padding-bottom: 30px;
}

/* Left Column - Content */
.section-header-video-split-form .col-split-content {
  padding-right: 40px;
}

.section-header-video-split-form .split-content-wrapper {
  color: #ffffff;
}

.section-header-video-split-form .split-sub-heading {
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #02b2ba;
  font-weight: 600;
}

.section-header-video-split-form .split-heading {
  margin: 0 0 20px 0;
  font-size: 42px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
  font-family: 'National 2 Condensed', sans-serif;
  font-style: italic;
  text-transform: uppercase;
}

.section-header-video-split-form .split-heading.heading-teal {
  color: #02b2ba;
}

.section-header-video-split-form .split-heading.heading-orange {
  color: #ff6b35;
}

.section-header-video-split-form .split-copy {
  margin-bottom: 30px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.section-header-video-split-form .split-copy p {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.section-header-video-split-form .list-cta-buttons-split {
  margin: 0;
  padding: 0;
}

.section-header-video-split-form .list-cta-buttons-split li {
  margin-right: 15px;
  margin-bottom: 10px;
}

/* Right Column - Form */
.section-header-video-split-form .col-split-form {
  padding-left: 40px;
}

.section-header-video-split-form .split-form-wrapper {
  background: #ffffff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.section-header-video-split-form .split-form-heading {
  margin: 0 0 20px 0;
  font-size: 24px;
  font-weight: 700;
  color: #333333 !important;
  text-align: center;
}

.section-header-video-split-form .hapana-form-container iframe,
.section-header-video-split-form .custom-form-container iframe {
  width: 100%;
  min-height: 400px;
  border: none;
}

/* Responsive - Tablet */
@media (max-width: 991px) {
  .section-header-video-split-form {
    min-height: auto;
    height: 100%;
  }

  .section-header-video-split-form .row-split-form {
    min-height: auto;
    padding: 40px 0;
  }

  .section-header-video-split-form .split-heading {
    font-size: 36px;
  }

  .section-header-video-split-form .col-split-content,
  .section-header-video-split-form .col-split-form {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
  .section-header-video-split-form .row-split-form {
    display: block;
    padding: 30px 0;
  }

  .section-header-video-split-form .col-split-content {
    margin-bottom: 30px;
    text-align: center;
  }

  .section-header-video-split-form .split-heading {
    font-size: 28px;
  }

  .section-header-video-split-form .split-copy {
    font-size: 16px;
  }

  .section-header-video-split-form .list-cta-buttons-split {
    text-align: center;
  }

  .section-header-video-split-form .list-cta-buttons-split li {
    margin-right: 10px;
    margin-left: 10px;
  }

  .section-header-video-split-form .split-form-wrapper {
    padding: 20px;
  }

  .section-header-video-split-form .col-split-content,
  .section-header-video-split-form .col-split-form {
    width: 100%;
    float: none;
  }

  /* Fullscreen video mode on mobile */
  .section-header-video-fullscreen {
    min-height: calc(100vh - 60px);
    height: 100%;
    /* overflow: visible; */
  }

  .section-header-video-fullscreen .header-split-overlay,
  .section-header-video-fullscreen #kx-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: auto !important;
    min-height: 103% !important;
  }

  .section-header-video-fullscreen .row-split-form {
    min-height: auto;
    padding: 20px 0;
    align-items: center;
  }
}

/**
 * =====================================================
 * Hapana Widget Selector Styles
 * =====================================================
 */

.hapana-widget-selector {
  padding: 10px 0;
}

.hapana-select-group {
  margin-bottom: 20px;
}

.hapana-select-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hapana-select,
.split-form-wrapper .hapana-select,
select.hapana-select {
  display: block;
  width: 100%;
  height: auto;
  padding: 12px 40px 12px 15px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #333333;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hapana-select:hover,
.split-form-wrapper .hapana-select:hover {
  border-color: #02b2ba;
}

.hapana-select:focus,
.split-form-wrapper .hapana-select:focus {
  outline: none;
  border-color: #02b2ba;
  box-shadow: 0 0 0 3px rgba(2, 178, 186, 0.2);
}

.hapana-select:disabled,
.split-form-wrapper .hapana-select:disabled {
  background-color: #f5f5f5;
  color: #999999 !important;
  cursor: not-allowed;
  opacity: 1;
}

.hapana-select option {
  padding: 10px;
  font-size: 16px;
  color: #333333;
  background-color: #ffffff;
}

.hapana-loading {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #666666;
  font-style: italic;
}

.hapana-no-packages {
  margin-top: 15px;
  padding: 15px;
  background-color: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 6px;
}

.hapana-no-packages p {
  margin: 0;
  color: #f57c00;
  font-size: 14px;
  text-align: center;
}

/* Hapana Widget Trigger Button */
.hapana-widget-trigger {
  text-align: center;
  padding: 10px 0;
}

.hapana-cta-btn {
  display: inline-block;
  width: 100%;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hapana-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(2, 178, 186, 0.4);
}

/* Disabled state for Get Started button */
.hapana-cta-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Prevent smooth scroll interference with Hapana modal */
.hapana-widget-trigger {
  scroll-behavior: auto;
}

/* Responsive adjustments for widget selector */
@media (max-width: 767px) {
  .hapana-select,
  .split-form-wrapper .hapana-select,
  select.hapana-select {
    padding: 10px 35px 10px 12px;
    font-size: 14px;
  }

  .hapana-select-group label {
    font-size: 13px;
  }

  .hapana-cta-btn {
    font-size: 16px;
    padding: 12px 20px;
  }
}

/**
 * =====================================================
 * Package Cards Styles
 * =====================================================
 */

.hapana-packages-section {
  margin-top: 20px;
}

.hapana-packages-label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hapana-package-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hapana-package-card {
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hapana-package-card:hover {
  border-color: #02b2ba;
  box-shadow: 0 4px 12px rgba(2, 178, 186, 0.15);
}

.hapana-package-card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.hapana-package-card-name {
  font-size: 15px;
  font-weight: 600;
  color: #333333;
  line-height: 1.3;
  flex: 1;
  padding-right: 12px;
}

.hapana-package-card-price {
  font-size: 18px;
  font-weight: 700;
  color: #02b2ba;
  white-space: nowrap;
}

.hapana-package-card-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hapana-package-card-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 178, 186, 0.3);
}

.hapana-package-card-btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.hapana-package-placeholder {
  padding: 20px;
  text-align: center;
  background: #f8f9fa;
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
}

.hapana-package-placeholder p {
  margin: 0;
  color: #666666;
  font-size: 14px;
}

/* Responsive - Mobile */
@media (max-width: 767px) {
  .hapana-package-card {
    padding: 14px;
  }

  .hapana-package-card-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 10px;
  }

  .hapana-package-card-name {
    font-size: 14px;
    padding-right: 0;
  }

  .hapana-package-card-price {
    font-size: 16px;
  }

  .hapana-package-card-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}
