/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* ===============================
   SELECT2 + ELEMENTOR SYNC STYLE
   =============================== */

.select2-container {
  min-width: 100% !important;
  width: 100% !important;
  font-family: inherit !important;
}

.select2-container--default .select2-selection--single {
  height: 40px !important;
  border-radius: 15px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 36px 0 12px !important;
  background-color: var(--e-global-color-4e76f75, #f6f6f6);
  color: var(--e-global-color-2a72c30, #1c1d21);
  border: 1px solid #666;
  box-shadow: 0 0 10px -4px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.select2-selection__rendered {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  font-size: 15px;
  font-family: inherit;
  margin: 0 !important;
  padding: 0 !important;
}

.select2-selection__arrow {
  height: 100% !important;
  top: 0 !important;
  right: 10px !important;
}

.select2-dropdown {
  border: 1px solid #d0d7de;
  border-radius: 8px !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.select2-results__option {
  padding: 10px 13px;
  font-size: 14px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: #2563eb;
}

/* Hide Checkbox */
.hide-status-field {
  display: none !important;
}

/* ===============================
   JETENGINE DYNAMIC TABLE
   =============================== */

body .my-custom-table .jet-dynamic-table {
  border-collapse: separate !important;
  border-spacing: 0 12px !important;
  background: transparent !important;
  border: none !important;
  width: 100% !important;
}

body .my-custom-table .jet-dynamic-table__header .jet-dynamic-table__col {
  background-color: #f8fafc !important;
  color: #475569 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  letter-spacing: 0.5px !important;
  padding: 15px !important;
  border: none !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

body .my-custom-table .jet-dynamic-table__body .jet-dynamic-table__row {
  background-color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

body .my-custom-table .jet-dynamic-table__col {
  padding: 15px !important;
  background-color: #ffffff !important;
  border-top: 1px solid #f1f5f9 !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

body .my-custom-table .jet-dynamic-table__col:first-child {
  border-left: 1px solid #f1f5f9 !important;
  border-radius: 12px 0 0 12px !important;
}

body .my-custom-table .jet-dynamic-table__col:last-child {
  border-right: 1px solid #f1f5f9 !important;
  border-radius: 0 12px 12px 0 !important;
}

body .my-custom-table .jet-dynamic-table__col--status .jet-listing-dynamic-field__content {
  display: inline-block !important;
  padding: 4px 12px !important;
  border-radius: 50px !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  background-color: #e0e7ff !important;
  color: #4338ca !important;
}

body .my-custom-table .jet-dynamic-table__col--photo img {
  width: 40px !important;
  height: 40px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  border: 1px solid #e2e8f0 !important;
}

/* Note: CSS does not support :contains(). Add status-specific classes if you need NEW/PENDING colors. */

/* ===============================
   DYNAMIC COLORS
   =============================== */

.cv-bg {
  background-color: var(--cv-bg);
}

.cv-applicant {
  background-color: var(--cv-applicant);
  border-color: var(--cv-applicant);
}

.cv-font,
.cv-font .elementor-heading-title,
.cv-font .jet-listing-dynamic-field__content {
  color: var(--cv-font);
}

/* ===============================
   WISI SELECT GRID
   Use this class: wisi-select-grid
   =============================== */

.wisi-select-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  align-items: end;
}

.wisi-select-grid .wp-block-column {
  width: 100%;
  min-width: 0;
}

.wisi-select-grid .jet-form-builder__field-wrap,
.wisi-select-grid .jet-form-builder-row,
.wisi-select-grid .field-type-select {
  width: 100%;
}

.wisi-select-grid label,
.wisi-select-grid .jet-form-builder__label {
  display: block;
  margin-bottom: 7px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.wisi-select-grid select,
.wisi-select-grid .select2-container,
.wisi-select-grid .select2-container--default {
  width: 100% !important;
}

.wisi-select-grid select,
.wisi-select-grid .select2-container--default .select2-selection--single {
  height: 44px;
  min-height: 44px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.wisi-select-grid select {
  padding: 0 40px 0 13px;
}

.wisi-select-grid .select2-container--default .select2-selection--single .select2-selection__rendered {
  height: 44px;
  padding-left: 13px;
  padding-right: 36px;
  color: #111827;
  line-height: 44px;
}

.wisi-select-grid .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px;
  right: 10px;
}

.wisi-select-grid select:focus,
.wisi-select-grid .select2-container--default.select2-container--focus .select2-selection--single,
.wisi-select-grid .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
  outline: none;
}

@media (max-width: 1024px) {
  .wisi-select-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 640px) {
  .wisi-select-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   JETFORM BASE FIELD FIXES
   These are safe globally because they do not force a 4-column layout.
   =============================== */

.jet-form-builder .wp-block-column,
.jet-form-builder .jet-form-builder-row,
.jet-form-builder .jet-form-builder__field-wrap {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.jet-form-builder input[type="text"],
.jet-form-builder input[type="number"],
.jet-form-builder input[type="tel"],
.jet-form-builder input[type="email"],
.jet-form-builder input[type="date"],
.jet-form-builder select,
.jet-form-builder textarea,
.jet-form-builder .select2-container {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 40px !important;
  box-sizing: border-box !important;
}

.jet-form-builder label,
.jet-form-builder .jet-form-builder__label {
  display: block !important;
  margin-bottom: 7px !important;
  line-height: 1.3 !important;
}

/* ===============================
   JETFORM COLUMN LAYOUTS

   Important:
   Do not use .jet-form-builder .wp-block-columns globally.
   Add one of these classes to the specific Columns block instead:
   - wisi-1-col-fields
   - wisi-2-col-fields
   - wisi-3-col-fields
   - wisi-4-col-fields
   =============================== */

.jet-form-builder .wp-block-columns.wisi-1-col-fields,
.jet-form-builder .wp-block-columns.wisi-2-col-fields {
  display: grid !important;
  column-gap: 24px !important;
  row-gap: 24px !important;
  align-items: end !important;
}

.jet-form-builder .wp-block-columns.wisi-3-col-fields,
.jet-form-builder .wp-block-columns.wisi-4-col-fields {
  display: grid !important;
  column-gap: 24px !important;
  row-gap: 30px !important;
  align-items: end !important;
}

.jet-form-builder .wp-block-columns.wisi-1-col-fields {
  grid-template-columns: 1fr !important;
}

.jet-form-builder .wp-block-columns.wisi-2-col-fields {
  grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
}

.jet-form-builder .wp-block-columns.wisi-3-col-fields {
  grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
}

.jet-form-builder .wp-block-columns.wisi-4-col-fields {
  grid-template-columns: repeat(4, minmax(230px, 1fr)) !important;
}

.jet-form-builder .wp-block-columns.wisi-1-col-fields .wp-block-column,
.jet-form-builder .wp-block-columns.wisi-2-col-fields .wp-block-column,
.jet-form-builder .wp-block-columns.wisi-3-col-fields .wp-block-column,
.jet-form-builder .wp-block-columns.wisi-4-col-fields .wp-block-column {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex-basis: auto !important;
  align-self: end !important;
  box-sizing: border-box !important;
}

.jet-form-builder .wp-block-columns.wisi-1-col-fields .wp-block-column:empty,
.jet-form-builder .wp-block-columns.wisi-2-col-fields .wp-block-column:empty,
.jet-form-builder .wp-block-columns.wisi-3-col-fields .wp-block-column:empty,
.jet-form-builder .wp-block-columns.wisi-4-col-fields .wp-block-column:empty {
  display: none !important;
}

@media (max-width: 1024px) {
  .jet-form-builder .wp-block-columns.wisi-1-col-fields {
    grid-template-columns: 1fr !important;
  }

  .jet-form-builder .wp-block-columns.wisi-2-col-fields,
  .jet-form-builder .wp-block-columns.wisi-3-col-fields,
  .jet-form-builder .wp-block-columns.wisi-4-col-fields {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .jet-form-builder .wp-block-columns.wisi-1-col-fields,
  .jet-form-builder .wp-block-columns.wisi-2-col-fields,
  .jet-form-builder .wp-block-columns.wisi-3-col-fields,
  .jet-form-builder .wp-block-columns.wisi-4-col-fields {
    grid-template-columns: 1fr !important;
  }
}

/* ===============================
   JETFORM CONDITIONAL BLOCK ALIGNMENT
   =============================== */

.jet-form-builder .jet-form-builder--hidden,
.jet-form-builder [style*="display: none"],
.jet-form-builder .wp-block-jet-forms-conditional-block.jet-form-builder--hidden,
.jet-form-builder .jet-form-builder__conditional-block.jet-form-builder--hidden,
.jet-form-builder [data-jfb-conditional].jet-form-builder--hidden,
.jet-form-builder [class*="conditional-block"].jet-form-builder--hidden,
.jet-form-builder .wp-block-jet-forms-conditional-block[style*="display: none"],
.jet-form-builder .jet-form-builder__conditional-block[style*="display: none"],
.jet-form-builder [data-jfb-conditional][style*="display: none"],
.jet-form-builder [class*="conditional-block"][style*="display: none"] {
  display: none !important;
}

/* ===============================
   APPLICANT RESUME STATUS CHECKBOX GRID
   =============================== */

.jet-form-builder .jet-form-builder__fields-group {
  display: grid !important;
  grid-template-columns: repeat(4, max-content) !important;
  column-gap: 34px !important;
  row-gap: 10px !important;
  justify-content: start !important;
  align-items: start !important;
  width: fit-content !important;
  max-width: 100% !important;
}

.jet-form-builder .jet-form-builder__fields-group label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

.jet-form-builder .jet-form-builder__fields-group input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  flex: 0 0 18px !important;
  accent-color: #4f7df3;
}

@media (max-width: 1024px) {
  .jet-form-builder .jet-form-builder__fields-group {
    grid-template-columns: repeat(2, max-content) !important;
  }
}

@media (max-width: 640px) {
  .jet-form-builder .jet-form-builder__fields-group {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .jet-form-builder .jet-form-builder__fields-group label {
    white-space: normal !important;
  }
}

/* ===============================
   SELECT2 MULTIPLE FIELDS
   Fixes Tattoo Placement / Language spoken tags
   =============================== */

.jet-form-builder .select2-container--default .select2-selection--multiple {
  width: 100% !important;
  min-height: 40px !important;
  height: auto !important;
  padding: 6px 10px !important;
  border: 1px solid #666 !important;
  border-radius: 8px !important;
  background-color: #f6f6f6 !important;
  box-shadow: 0 0 10px -4px rgba(0, 0, 0, 0.5) !important;
  box-sizing: border-box !important;
}

.jet-form-builder .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 4px !important;
  width: 100% !important;
  min-height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}

.jet-form-builder .select2-container--default .select2-selection--multiple .select2-selection__choice {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  margin: 2px !important;
  padding: 3px 7px !important;
  border: 1px solid #c7c7c7 !important;
  border-radius: 4px !important;
  background: #eeeeee !important;
  color: #1c1d21 !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.jet-form-builder .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  margin-right: 4px !important;
  color: #666 !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.jet-form-builder .select2-container--default .select2-search--inline {
  display: inline-flex !important;
  align-items: center !important;
}

.jet-form-builder .select2-container--default .select2-search--inline .select2-search__field {
  min-height: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 24px !important;
}


/* WISI JetForm column layouts - works if class is on Columns block OR inside it */
.jet-form-builder .wp-block-columns.wisi-1-col-fields,
.jet-form-builder .wp-block-columns:has(.wisi-1-col-fields) {
  display: grid !important;
  grid-template-columns: 1fr !important;
  column-gap: 24px !important;
  row-gap: 24px !important;
  align-items: start !important;
}

.jet-form-builder .wp-block-columns.wisi-2-col-fields,
.jet-form-builder .wp-block-columns:has(.wisi-2-col-fields) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 24px !important;
  row-gap: 24px !important;
  align-items: start !important;
}

.jet-form-builder .wp-block-columns.wisi-3-col-fields,
.jet-form-builder .wp-block-columns:has(.wisi-3-col-fields) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  column-gap: 24px !important;
  row-gap: 24px !important;
  align-items: start !important;
}

.jet-form-builder .wp-block-columns.wisi-4-col-fields,
.jet-form-builder .wp-block-columns:has(.wisi-4-col-fields) {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  column-gap: 24px !important;
  row-gap: 24px !important;
  align-items: start !important;
}

.jet-form-builder .wp-block-column,
.jet-form-builder .jet-form-builder-row,
.jet-form-builder .jet-form-builder__field-wrap,
.jet-form-builder .field-type-select,
.jet-form-builder .field-type-text,
.jet-form-builder select,
.jet-form-builder input[type="text"],
.jet-form-builder input[type="number"],
.jet-form-builder input[type="tel"],
.jet-form-builder input[type="email"],
.jet-form-builder input[type="date"],
.jet-form-builder input[type="url"],
.jet-form-builder input[type="password"],
.jet-form-builder input[type="search"],
.jet-form-builder textarea,
.jet-form-builder .select2-container {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 1024px) {
  .jet-form-builder .wp-block-columns.wisi-3-col-fields,
  .jet-form-builder .wp-block-columns.wisi-4-col-fields,
  .jet-form-builder .wp-block-columns:has(.wisi-3-col-fields),
  .jet-form-builder .wp-block-columns:has(.wisi-4-col-fields) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .jet-form-builder .wp-block-columns.wisi-1-col-fields,
  .jet-form-builder .wp-block-columns.wisi-2-col-fields,
  .jet-form-builder .wp-block-columns.wisi-3-col-fields,
  .jet-form-builder .wp-block-columns.wisi-4-col-fields,
  .jet-form-builder .wp-block-columns:has(.wisi-1-col-fields),
  .jet-form-builder .wp-block-columns:has(.wisi-2-col-fields),
  .jet-form-builder .wp-block-columns:has(.wisi-3-col-fields),
  .jet-form-builder .wp-block-columns:has(.wisi-4-col-fields) {
    grid-template-columns: 1fr !important;
  }
}

/* WISI calculated field - keep label above and keep height when empty */
.jet-form-builder .field-type-calculated-field {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.jet-form-builder .field-type-calculated-field label,
.jet-form-builder .field-type-calculated-field .jet-form-builder__label {
  display: block !important;
  width: 100% !important;
  margin-bottom: 14px !important;
}

.jet-form-builder .field-type-calculated-field .jet-form-builder__calculated-field,
.jet-form-builder .field-type-calculated-field .jet-form-builder__calculated-field-val {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 14px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}

/* Keeps the pink pill height even when calculated value is empty */
.jet-form-builder .field-type-calculated-field .jet-form-builder__calculated-field:empty::before,
.jet-form-builder .field-type-calculated-field .jet-form-builder__calculated-field-val:empty::before {
  content: "\00a0";
}

/* ===============================
   WISI STICKY COMPLETION LEVEL
   Best: add wisi-sticky-completion to the Row or Columns block.
   Fallback: also works when the class is placed on a field inside the row.
   =============================== */

.wisi-sticky-completion,
.jet-form-builder .wp-block-columns:has(.wisi-sticky-completion),
.jet-form-builder .jet-form-builder-row:has(.wisi-sticky-completion) {
  position: sticky !important;
  top: 32px !important;
  z-index: 10 !important;
  background: #ffffff !important;
  padding-top: 12px !important;
  padding-bottom: 14px !important;
}

/* ===============================
   WISI CALENDAR SPAN BARS
   The span script draws these bars from the Dynamic Link URL.
   Put wisi-cal-event on the outer listing Container only.
   =============================== */

body.wisi-calendar-page .jet-calendar {
  position: relative !important;
}

body.wisi-calendar-page .jet-calendar .wisi-cal-event,
body.wisi-calendar-page .jet-calendar .wisi-cal-event > .elementor-widget-container,
body.wisi-calendar-page .jet-calendar .wisi-cal-event .jet-listing-dynamic-link,
body.wisi-calendar-page .jet-calendar .wisi-cal-event .jet-listing-dynamic-link__link {
  display: block !important;
  width: 100% !important;
  min-height: 22px !important;
  box-sizing: border-box !important;
}

body.wisi-calendar-page .jet-calendar .wisi-cal-event .jet-listing-dynamic-link__link {
  padding: 4px 8px !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
}

body.wisi-calendar-page .jet-calendar .wisi-span-layer {
  position: absolute !important;
  inset: 0 !important;
  z-index: 50 !important;
  pointer-events: none !important;
}

body.wisi-calendar-page .jet-calendar .wisi-span-bar {
  position: absolute !important;
  display: block !important;
  height: 22px !important;
  line-height: 22px !important;
  padding: 0 8px !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
}

body.wisi-calendar-page .jet-calendar a.wisi-span-bar {
  cursor: pointer !important;
  pointer-events: auto !important;
  text-decoration: none !important;
}

body.wisi-calendar-page .jet-calendar .wisi-span-hidden {
  visibility: hidden !important;
}
