.longefit-wrapper {
  background: #ffffff;
  border-radius: 10px;
  padding: 40px;
  width:450px;
  max-width: 450px;
  height: 540px;
  margin: 30px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: #000000;
}

.longefit-wrapper h2,
.longefit-wrapper h3 {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  text-transform: none;
}

.longefit-wrapper .calendly-inline-widget {
  min-width: 400px!important;
  max-height: 400px!important;
}

.longefit-location-select {
  width: 100%;
  /* padding: 8px; */
  border-radius: 5px;
  /* border: 1px solid #ccc; */
  margin-bottom: 15px;
}

.longefit-location-div {
  display: none;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.caption-wrapper {
  font-size: 60px;
  line-height: 75px;
  padding-top: 10px;
}

.book-trial-text-wrapper {
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 25px;
}

.longefit-details {
  padding-top: 40px;
  padding-bottom: 20px;
  font-size: 22px;
  line-height: 25px;
}

.longefit-details .once-a-week {
  font-weight: bold;
}

.custom-select-wrapper-cal-switcher {
  position: relative;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 18px;
}

.custom-select-cal-switcher {
  position: relative;
  cursor: pointer;
}

.custom-select-trigger-cal-switcher {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-select-trigger-cal-switcher img {
  width: 14px;
  height: 14px;
}

.custom-options-cal-switcher {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  display: none;
  z-index: 100;
  max-height: 220px;        /* adjust as needed */
  overflow-y: auto;         /* ✅ enable vertical scrolling */
  overflow-x: hidden;       /* prevent horizontal scroll */  
}

.custom-select-cal-switcher.opened .custom-options-cal-switcher {
  display: block;
}

.custom-option-cal-switcher {
  display: block;
  padding: 5px 14px;
  cursor: pointer;
  white-space: nowrap;
}

.custom-option-cal-switcher:hover {
  background: #f2f2f2;
}

.longefit-calendly-wrapper {
  max-width: 400px;     /* desired width */
  width: 100%;
  margin: 0 auto;       /* center */
}

.longefit-calendly-wrapper iframe {
  width: 100% !important;   /* fill wrapper */
  min-width: 0 !important;  /* override default 600px min */
  height: 350px !important;
}

/* =========================
   RESPONSIVE FIXES
========================= */

/* Tablets & below */
@media (max-width: 1024px) {
  .longefit-wrapper {
    max-width: 90%;
    min-width: auto;
    height: auto;
    padding: 30px;
  }

  .caption-wrapper {
    font-size: 48px;
    line-height: 58px;
  }

  .book-trial-text-wrapper {
    font-size: 22px;
  }

  .longefit-details {
    font-size: 20px;
    line-height: 24px;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .longefit-wrapper {
    width: calc(100% - 24px);   /* wider usable area */
    max-width: 520px;          /* prevents narrow look */
    height: 450px;
    padding: 20px;
    margin: 12px auto;
    border-radius: 8px;
  }

  .longefit-wrapper h2 {
    font-size: 26px;
    line-height: 32px;
  }

  .longefit-wrapper h3 {
    font-size: 20px;
    line-height: 26px;
  }

  .caption-wrapper {
    font-size: 36px;
    line-height: 44px;
  }

  .book-trial-text-wrapper {
    font-size: 18px;
    padding: 15px 0;
  }

  .longefit-details {
    font-size: 16px;
    line-height: 22px;
    padding-top: 25px;
  }

  .custom-select-trigger-cal-switcher {
    padding: 10px 12px;
    font-size: 14px;
  }

  .custom-option-cal-switcher {
    padding: 5px 12px;
    font-size: 14px;
  }

  /* Calendly responsive */
  .longefit-calendly-wrapper {
    max-width: 100%;
    width: 100%;
  }

  .longefit-calendly-wrapper iframe {
    width: 100% !important;
    min-width: 0 !important;
    height: 450px !important;
  }

  div#calendly-inline-widget {
    height: 450px !important;
  }
}

/* Small phones */
@media (max-width: 480px) {
    
  .longefit-wrapper {
    width: 300px;
    max-width: 100%;
    padding: 25px 16px 25px 25px;
    height: 450px;
  }

  .longefit-wrapper h2 {
    font-size: 22px;
    line-height: 28px;
  }

  .longefit-wrapper h3 {
    font-size: 18px;
  }

  .caption-wrapper {
    font-size: 40px;
    line-height: 48px;
  }

  .custom-options-cal-switcher {
    max-height: 100px!important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* smooth iOS scrolling */    
  }

  .book-trial-text-wrapper {
    font-size: 26px;
    line-height: 26px;
  }

  .longefit-details {
    font-size: 20px;
  }

  .longefit-calendly-wrapper iframe {
    width: 100% !important;
    min-width: 0 !important;
    height: 300px !important;
  }  

  div#calendly-inline-widget {
    height: 350px !important;
  }
}