/**
 * Career & Enquiry Forms (LCV_career) Stylesheet
 * Used for Job Filter Form and Enquiry Form modals and custom CF7 dropdowns.
 *
 * @package honeyhive
 */

/* =========================================================
   FORM GRID
   ========================================================= */

.LCV_career_form_group_container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* =========================================================
   POPUP - PAGE SCROLL LOCK
   ========================================================= */

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

/* =========================================================
   POPUP MODAL
   ========================================================= */

.LCV_career_popup,
.LCV_enquiry_popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.LCV_career_popup.is-active,
.LCV_enquiry_popup.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.LCV_career_popup_overlay,
.LCV_enquiry_popup_overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}

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

.LCV_career_popup_inner,
.LCV_enquiry_popup_inner,
.LCV_job_popup_inner {
  position: relative;
  z-index: 2;
  width: calc(100% - 40px);
  max-width: 900px;
  max-height: calc(100vh - 40px);
  padding: 35px 50px 35px 50px;
  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_career_popup_inner::-webkit-scrollbar,
.LCV_enquiry_popup_inner::-webkit-scrollbar,
.LCV_job_popup_inner::-webkit-scrollbar {
  width: 6px;
  display: block;
}

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

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

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

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

.LCV_career_popup_close,
.LCV_enquiry_popup_close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  color: #282828;
  cursor: pointer;
  z-index: 3;
}

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

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

.LCV_career_popup_content h2,
.LCV_enquiry_popup_content h2 {
  text-align: center;
}

.LCV_career_popup_description,
.LCV_enquiry_popup_description {
  margin: 0 0 30px;
  text-align: center;
}

/* =========================================================
   CAREER APPLICATION & ENQUIRY FORM
   ========================================================= */

.LCV_career_application_form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.LCV_career_application_form .primary-btn {
  width: 100% !important;
  background-color: var(--color-1) !important;
}

/* =========================================================
   FORM GROUP
   ========================================================= */

.LCV_career_form_group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

/* =========================================================
   FORM INPUTS & TEXTAREA
   ========================================================= */

.LCV_career_form_group input,
.LCV_career_form_group textarea {
  width: 100% !important;
  padding: 14px 16px !important;
  border: 1px solid #707070 !important;
  border-radius: 8px !important;
  background: #ffffff;
  color: #282828 !important;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
}

.LCV_career_form_group input:focus,
.LCV_career_form_group textarea:focus {
  border-color: #e96446 !important;
}

.LCV_career_form_group textarea {
  height: 117px;
  resize: none;
}

/* =========================================================
   FILE UPLOAD
   ========================================================= */

.file-container {
  position: relative;
  width: 100%;
}

.file-container .wpcf7-form-control-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.file-container input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload-label {
  display: block;
  border: 1px solid #707070 !important;
  cursor: pointer;
  background: transparent;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.file-upload-label span {
  color: #939393;
}

.file-container svg {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

/* =========================================================
   CF7 SUBMIT BUTTON & OUTPUT
   ========================================================= */

form .LCV_fds_filte_btn_primary {
  width: 100%;
}

.LCV_career_popup_inner .wpcf7 form,
.LCV_enquiry_popup_inner .wpcf7 form,
.LCV_job_popup_inner .wpcf7 form {
  position: relative;
}

.LCV_career_popup_inner .wpcf7 .wpcf7-response-output,
.LCV_enquiry_popup_inner .wpcf7 .wpcf7-response-output,
.LCV_job_popup_inner .wpcf7 .wpcf7-response-output {
  margin: 16px 0 0 0 !important;
  padding: 12px 18px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  text-align: center !important;
  border: 1px solid transparent !important;
  box-sizing: border-box !important;
}

.LCV_career_popup_inner .wpcf7 form.sent .wpcf7-response-output,
.LCV_enquiry_popup_inner .wpcf7 form.sent .wpcf7-response-output,
.LCV_job_popup_inner .wpcf7 form.sent .wpcf7-response-output {
/*   border-color: #28a745 !important; */
  background-color: #eaf7ed !important;
  color: #1e7e34 !important;
  font-weight: 500 !important;
}

.LCV_career_popup_inner .wpcf7 form.invalid .wpcf7-response-output,
.LCV_enquiry_popup_inner .wpcf7 form.invalid .wpcf7-response-output,
.LCV_job_popup_inner .wpcf7 form.invalid .wpcf7-response-output,
.LCV_career_popup_inner .wpcf7 form.failed .wpcf7-response-output,
.LCV_enquiry_popup_inner .wpcf7 form.failed .wpcf7-response-output,
.LCV_job_popup_inner .wpcf7 form.failed .wpcf7-response-output {
  border-color: #dc3545 !important;
  background-color: #fdf2f2 !important;
  color: #dc3545 !important;
}

.LCV_career_form_group input.is-invalid,
.LCV_career_form_group textarea.is-invalid,
.LCV_career_form_group input.wpcf7-not-valid,
.LCV_career_form_group textarea.wpcf7-not-valid {
  border-color: #dc3545 !important;
}

.LCV_career_form_group .custom-field-error {
  color: #dc3545;
  font-size: 13px;
  line-height: 1.3;
  margin-top: 4px;
  display: block;
}

/* =========================================================
   CUSTOM CF7 DROPDOWNS (Looking For & Job Type)
   ========================================================= */

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;
}

.LCV_career_form_group input::placeholder,
.LCV_career_form_group textarea::placeholder,
.LCV_career_form_group .file-upload-label span {
  font-family: var(--font-bricolage);
  font-weight: 500;
  font-size: 14px;
  line-height: 120%;
}
.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);
}

/* =========================================================
   TABLET / SMALL LAPTOP (1279px AND BELOW)
   ========================================================= */

@media (max-width: 1279px) {
  .LCV_career_popup_inner,
  .LCV_enquiry_popup_inner,
  .LCV_job_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_career_popup_inner::-webkit-scrollbar,
  .LCV_enquiry_popup_inner::-webkit-scrollbar,
  .LCV_job_popup_inner::-webkit-scrollbar {
    width: 6px;
    display: block;
  }
}

/* =========================================================
   MOBILE (767px AND BELOW)
   ========================================================= */

@media (max-width: 767px) {
  .LCV_career_form_group_container {
    grid-template-columns: 1fr;
  }

  .LCV_career_popup_inner,
  .LCV_enquiry_popup_inner {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    padding: 30px 20px;
    border-radius: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .LCV_career_popup_inner::-webkit-scrollbar,
  .LCV_enquiry_popup_inner::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .LCV_career_popup_close,
  .LCV_enquiry_popup_close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 26px;
  }

  .LCV_career_popup_content h2,
  .LCV_enquiry_popup_content h2,
  .LCV_career_popup_description,
  .LCV_enquiry_popup_description {
    text-align: left;
  }

  .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;
  }
}

/* =========================================================
   VERY SMALL MOBILE (480px AND BELOW)
   ========================================================= */

@media (max-width: 480px) {
  .LCV_career_popup_inner,
  .LCV_enquiry_popup_inner {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    padding: 25px 16px;
    border-radius: 14px;
  }
}
