@charset "UTF-8";

/* ============================================
   PLANYO OVERRIDES – PURE CSS (FINAL)
   ============================================ */

/* =========================
   WIDGET CONTAINER
   ========================= */

#planyo_search_widget {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 18px;
  background: #f8f8f8;
  border-radius: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

  /* ❗ Cruciaal voor calendar popup */
  overflow: visible;
  position: relative;
}

/* Prevent horizontal scrollbars inside widget */
#planyo_search_widget .planyo {
  overflow-x: hidden;
}

/* =========================
   FORM STRUCTURE
   ========================= */

#planyo_search_widget .form-group {
  margin: 0;
}

#planyo_search_widget .planyo-form-item-group {
  margin-right: 16px;
}

#planyo_search_widget .planyo-form-item-group:last-of-type {
  margin-right: 0;
}

/* =========================
   LABELS
   ========================= */

#planyo_search_widget .planyo-form-item-group > label {
  margin: 0 0 6px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #66615C;
  white-space: nowrap;
}

/* =========================
   INPUTS
   ========================= */

#planyo_search_widget input.form-control {
  border-radius: 25px;
  height: 42px;
  padding: 8px 14px;
  border: 1px solid #E6E6E6;
  box-shadow: none;
  outline: none;
  background: #fff;
}

#planyo_search_widget input.form-control:focus {
  border-color: rgba(69, 122, 114, 0.45);
  box-shadow: 0 0 0 3px rgba(69, 122, 114, 0.18);
}

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

#planyo_search_widget .btn-primary,
#planyo_search_widget #box_submit_button {
  border-radius: 9999px;
  height: 42px;
  padding: 0 2.004em !important;
  white-space: nowrap;
  border: none !important;
}

/* =========================
   CALENDAR ICON CLEANUP
   ========================= */

.input-group-addon,
.input-group-text {
  background: transparent !important;
  border: none !important;
  padding: 0 4px !important;
  box-shadow: none !important;
}

.planyo-cal-icon {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  opacity: 0.7;
}

.planyo-cal-icon:hover {
  opacity: 1;
  cursor: pointer;
}

/* =========================
   CALENDAR POPUP (CRUCIAL)
   ========================= */

.picker_dropdown {
  z-index: 99999 !important;
}

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

@media (max-width: 768px) {

  #planyo_search_widget form {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }

  #planyo_search_widget .planyo-form-item-group {
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #planyo_search_widget input.form-control {
    width: 100% !important;
  }

  #planyo_search_widget #res_form_buttons {
    width: 100% !important;
    margin: 0 !important;
  }

  #planyo_search_widget #box_submit_button {
    width: 100% !important;
    justify-content: center;
  }

  #planyo_search_widget {
    padding: 18px 16px;
    border-radius: 20px;
  }
}
