/* HERO WRAPPER */
.wec-hero{
  margin-top: 3px;
 
}

.wec-lpform-field label .wec-required {
  color: #ff0000 !important;
  font-weight: 700;
}
.required-star {
  color: red;
  margin-left: 4px;
  font-weight: 600;
}


/* HEADING BOX */
.wec-hero-box{
   background: linear-gradient(135deg, #8bc34a, #689f38);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 10px 5px;
  max-width: 320px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
      border: 2px solid black
}

/* TITLE */
.wec-hero-title{
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

.wec-phone-wrapper {
  display: flex;
  align-items: center;
  height: 41px;
  border: 1px solid black;
  border-radius: 10px;
  overflow: visible;
}

.wec-phone-code-dropdown {
  position: relative;
  width: 90px;
  background: transparent;
  cursor: pointer;
  height: 100%;
  border-right: 1px solid black;
}

.wec-phone-code-selected {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
   background: transparent;
   border-radius: 50%;
  font-weight: 600;
}

.wec-phone-code-options::-webkit-scrollbar {
  width: 6px;
}

.wec-phone-code-options {
  display: none;
  position: absolute;
  top: 46px;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 5%;
  border: 2px solid #d1d5db;
  max-height: 180px;
  overflow-y: auto;
  z-index: 9999;
}

.wec-phone-code-options div {
  padding: 8px;
}

.wec-phone-code-options div:hover {
  background: #f1f5f9;
}

.wec-phone-wrapper input[type="tel"] {
  border: none;
  height: 100%;
  padding: 10px;
  flex: 1;
  outline: none;
}

.wec-phone-code-selected {
  position: relative;
  padding-right: 22px;
  border:transparent !important;
  height: 38px !important;
  /*margin-left: 10px;*/
  /*width: 60px !important;*/
}

.wec-phone-code-selected::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.2s ease;
}

/* Rotate arrow when open */
.wec-phone-code-dropdown.open .wec-phone-code-selected::after {
  transform: translateY(-50%) rotate(-135deg);
}


/* MOBILE OPTIMIZATION */
@media (max-width: 768px){
  .wec-hero{
    margin-top: -1px !important;
    padding: 40px 0;
  }

  .wec-hero-title{
    font-size: 28px;
  }

  .wec-hero-box{
    padding: 30px 20px;
  }
}

.wec-required {
  color: red !important;
  font-weight: 700;
  margin-left: 2px;
}

.wec-phone-group {
  display: flex;
  gap: 8px;
}

.wec-phone-code {
  width: 110px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid black;
  background: white;
  padding: 6px;
}

.wec-phone-group input {
  flex: 1;
}


.wec-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  background-image:
    url("data:image/svg+xml;utf8,<svg fill='%23666' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.wec-form-card{
  border-radius:16px;
  margin-top: -30px;
}

.wec-input,
.wec-textarea{
  border-radius:10px;
}


.wec-submit-btn {
  background: linear-gradient(135deg, #ff7a00, #ff9800);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  width: 200px;
    height: 60px;
    margin-left: 140px;
    margin-top: 60px;
}


/* Hover */
.wec-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
  background: linear-gradient(135deg, #ff6a00, #ff8c00);
}

/* Active click */
.wec-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}


/* ACTION ROW – RIGHT ALIGNED */
.wec-lpform-action-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;   /* 🔥 forces right */
  width: 100%;
  margin-top: 20px;
}

/* Sending message under button */
.wec-sending-msg {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #0d6efd;
  text-align: right;
}

/* IMPORTANT: remove layout-breaking margins */
.wec-submit-btn {
  margin-left: 0 !important;
  margin-top: 0 !important;
}


.wec-budget-wrap {
  margin-top: 10px;
}

.wec-budget-label {
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

/* Span 2 columns (Name + Email width equivalent) */
.wec-span-2 {
  grid-column: span 2;
}

/* Action row for submit button */
.wec-lpform-action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}



.wec-budget-range {
  width: 100%;
  height: 6px;
  appearance: none;
  background: #ddd;
  border-radius: 5px;
  outline: none;
}

/* Chrome / Edge */
.wec-budget-range::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background: #0d6efd;
  border-radius: 50%;
  cursor: pointer;
}

/* Firefox */
.wec-budget-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #0d6efd;
  border-radius: 50%;
  cursor: pointer;
}
/* Room input group */
.wec-room-group {
  display: flex;
  gap: 10px;
}

.wec-room-number {
  max-width: 90px;
  text-align: center;
}

/* Prevent arrows looking ugly on number input */
.wec-room-number::-webkit-inner-spin-button,
.wec-room-number::-webkit-outer-spin-button {
  opacity: 1;
}

.wec-dynamic-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}

.wec-small-input {
  width: 80px;
  text-align: center;
}

.wec-add-btn {
  margin-top: 6px;
  background: #e0f2f1;
  border: 1px solid #26a69a;
  color: #00695c;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.wec-remove-btn {
  background: #ff5252;
  border: none;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}
/* LABELS */
.wec-label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

/* ADULT INPUT */
.wec-adult-input {
  height: 44px;
  font-size: 16px;
}

/* SOFT CONTAINERS */
.wec-box {
  background: #f8fafc;
  border: 1px solid black;
  border-radius: 12px;
  padding: 10px;
}

/* DYNAMIC ROW */
.wec-row-soft {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

/* SMALL NUMBER INPUT */
.wec-small-input {
  width: 70px;
  text-align: center;
  border-radius: 8px;
}

/* ADD BUTTON */
.wec-add-soft {
  width: 100%;
  margin-top: 6px;
  padding: 6px;
  background: #edf2ff;
  border: 1px dashed #4c6ef5;
  color: #364fc7;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}

/* REMOVE BUTTON */
.wec-remove-soft {
  background: #ffe3e3;
  color: #c92a2a;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 18px;
  cursor: pointer;
}

/* SELECT ARROW */
.wec-select {
  appearance: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg fill='%23666' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 36px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .wec-row-soft {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==============================
   LANDING PAGE FORM (ISOLATED)
   ============================== */

/* Background image layer */
/* Background container */
.wec-lpform-bg {
  position: relative;
  margin: 120px 0px -50px;
  background-image: url("/assets/img/travel_bg.jpg");
  background-size: cover;
  background-position: center;
  padding: 30px
}

/* Soft white overlay */
.wec-lpform-bg::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.94);
  z-index: 0;
}


.wec-lpform {
      z-index: 1;
     position: relative;
  overflow: hidden;
    background: transparent;
     margin-top: 30px;
        margin-left: 80px;
margin-right: 80px;
margin-bottom: 100px;
  background: #ffffff;
  padding: 26px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,2);
  padding-bottom: 0px;
}

.wec-lpform-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
 gap: 22px;
  margin-bottom: 12px;
}

.wec-lpform-full {
  grid-template-columns: 1fr;
}

.wec-lpform-field label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  font-size: 17px;
  color: black;
}
.wec-lpform-budget-value {
  display: inline-block;
  margin-top: -20px;
  font-weight: 600;
   font-size: 22px;
  color: #2563eb; /* change if needed */
}


.wec-lpform-field input,
.wec-lpform-field textarea {
  width: 100%;
  height: 42px;
  padding: 8px 10px;
  background-color: white !important;
  border-radius: 10px;
  border: 1px solid black;
}

.wec-lpform-field textarea {
  height: 96px;
  resize: none;
  margin-bottom:-20px;
}

/* Custom Dropdown */
.wec-lpform-dropdown {
  position: relative;
   z-index: 10;
}

.wec-lpform-dd-selected {
  height: 46px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid black;
  background: #fff;
  position: relative;
  cursor: pointer;
}
/* When value is selected */
.wec-lpform-dd-selected.has-value {
  color: #000000; /* black */
}
.wec-lpform-dd-options {
  display: none;
  position: absolute;
  top: 48px;
  width: 100%;
  max-height: 180px;
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  z-index: 99999;
}

.wec-lpform-dd-options div {
  padding: 10px 12px;
  cursor: pointer;
}

.wec-lpform-dd-options div:hover {
  background: #f1f5f9;
}

/* Responsive */
@media (max-width: 768px) {
  .wec-lpform-row {
    grid-template-columns: 1fr;
  }
}
/* Dropdown arrow icon */
.wec-lpform-dd-selected {
  position: relative;
  padding-right: 36px;
}

.wec-lpform-dd-selected::after {
   content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: translateY(-50%) rotate(45deg); /* ▼ */
  transition: transform 0.2s ease;

}

/* Arrow when dropdown is open */
.wec-lpform-dropdown.open .wec-lpform-dd-selected::after {
  transform: translateY(-50%) rotate(-135deg); /* ▲ */
}

/* Increase width of Age & Room Type dropdowns */
.wec-row-soft .wec-lpform-dropdown {
  width: 140px; /* adjust if you want more */
  flex-shrink: 0;
}

/* Ensure selected box fills dropdown width */
.wec-row-soft .wec-lpform-dd-selected {
  width: 100%;
}

/* Ensure dropdown list matches width */
.wec-row-soft .wec-lpform-dd-options {
  width: 100%;
}

/* Force dropdowns to open downward */
.wec-lpform-dd-options {
  top: calc(100% + 6px);
  bottom: auto;
}

/* Give dropdowns their own stacking space */
.wec-row-soft {
  position: relative;
  z-index: 1;
}

/* Dropdown always above form fields */
.wec-lpform-dropdown {
  position: relative;
}

.wec-lpform-dd-options {
  z-index: 99999;
}

/* =========================
   THANK YOU POPUP + BLUR
   ========================= */

/* FORCE THANK YOU POPUP ABOVE EVERYTHING */
.wec-thankyou-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  z-index: 2147483647; /* MAX SAFE Z-INDEX */
}
/* THANK YOU ICON */
.wec-thankyou-icon {
  display: block;
  margin: 14px auto 18px;
     width: 150px;
    height: 150px;
    margin-bottom: 30px;
}


.wec-thankyou-popup {
  background: #ffffff;
  padding: 42px 32px;
  border-radius: 20px;
  max-width: 420px;
  width: 92%;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  animation: wecFadeScale 0.35s ease;
}

@keyframes wecFadeScale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 768px) {
  .wec-thankyou-icon {
    width: 56px;
    margin: 12px auto 14px;
  }
}


.wec-thankyou-popup h2 {
  font-size: 28px;
  margin-bottom: 12px;
  color: #2e7d32;
}

.wec-thankyou-popup p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

.wec-thankyou-sub {
  margin-top: 14px;
  font-size: 14px;
  color: #666;
}

/* Smooth popup animation */
@keyframes wecPopFade {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===============================
   MOBILE RESPONSIVE OPTIMIZATION
   =============================== */
@media (max-width: 768px) {

  /* Background spacing */
  .wec-lpform-bg {
    margin: 80px 0 -50px;
    padding: 16px;
  }

  /* MAIN FORM CONTAINER */
  .wec-lpform {
    margin-left: 0;
    margin-right: 0;
    margin-top: 20px;
    margin-bottom: 40px;

    padding: 16px;
    border-radius: 14px;
  }

  /* GRID → SINGLE COLUMN */
  .wec-lpform-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }

  /* LABELS */
  .wec-lpform-field label {
    font-size: 15px;
  }

  /* INPUTS */
  .wec-lpform-field input,
  .wec-lpform-field textarea,
  .wec-lpform-dd-selected {
    height: 44px;
    font-size: 14px;
  }

  .wec-lpform-field textarea {
    height: 90px;
  }

  /* PHONE INPUT FIX */
  .wec-phone-wrapper {
    height: 44px;
  }

  .wec-phone-code-dropdown {
    width: 72px;
  }

  .wec-phone-code-selected {
    font-size: 14px;
  }

  /* BUDGET VALUE */
  .wec-lpform-budget-value {
    font-size: 20px;
    margin-top: -10px;
  }

  /* CHILD / ROOM BOX */
  .wec-box {
    padding: 10px;
  }

  /* ADD BUTTONS */
  .wec-add-soft {
    font-size: 14px;
    padding: 6px;
  }

  /* SUBMIT BUTTON */
  .wec-submit-btn {
    width: 100%;
    padding: 10px;
    font-size: 16px;
            margin-left: 0px !important;
        margin-top: -20px !important;
  }

  /* HERO */
  .wec-hero {
    margin-top: 60px;
    padding: 20px 0;
  }

  .wec-hero-box {
    max-width: 100%;
    padding: 16px;
    border-radius: 14px;
  }

  .wec-hero-title {
    font-size: 22px;
  }

  /* THANK YOU POPUP (MOBILE) */
  .wec-thankyou-popup {
    padding: 28px 20px;
  }

  .wec-thankyou-popup h2 {
    font-size: 22px;
  }

  .wec-thankyou-popup p {
    font-size: 14px;
  }
}

/* INPUT-BASED DROPDOWN (TOUR AUTOCOMPLETE) */
.wec-lpform-dd-selected.wec-dd-input {
  cursor: text;
}

.wec-lpform-dd-selected.wec-dd-input.has-value {
  color: #000;
}

/* Ensure dropdown list matches all others */
#tourResults {
  max-height: 180px;
  overflow-y: auto;
}

