/* =============================================================================
   BambooHR Jobs — Frontend Styles
   ============================================================================= */

/* ---- CSS Custom Properties (easy theme overrides) ---- */
:root {
  --bamboohr-primary:       #73aa24;
  --bamboohr-primary-dark:  #5b8a1c;
  --bamboohr-primary-light: #eef6e1;
  --bamboohr-text:          #333333;
  --bamboohr-text-light:    #666666;
  --bamboohr-border:        #e0e0e0;
  --bamboohr-bg:            #ffffff;
  --bamboohr-radius:        8px;
  --bamboohr-radius-sm:     4px;
  --bamboohr-shadow:        0 2px 8px rgba(0, 0, 0, 0.08);
  --bamboohr-shadow-hover:  0 4px 16px rgba(0, 0, 0, 0.14);
  --bamboohr-transition:    0.2s ease;
  --bamboohr-font:          inherit;

  /* ---- Admin-configurable style tokens ---- */
  --bamboohr-title-color:          #1a1a1a;
  --bamboohr-title-hover-color:    #73aa24;
  --bamboohr-title-expanded-color: #73aa24;
  --bamboohr-cta-bg:               #73aa24;
  --bamboohr-cta-bg-hover:         #5b8a1c;
  --bamboohr-cta-text:             #ffffff;
  --bamboohr-expand-bg:            #fafcf7;
}

/* =============================================================================
   Utility
   ============================================================================= */
.bamboohr-notice {
  padding: 12px 16px;
  border-radius: var(--bamboohr-radius-sm);
  margin: 16px 0;
  font-size: 14px;
}
.bamboohr-notice--error {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #b91c1c;
}
.bamboohr-notice--warning {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  color: #92400e;
}
.bamboohr-notice--success {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  color: #15803d;
}

/* =============================================================================
   Job Listing Wrap
   ============================================================================= */
.bamboohr-jobs-wrap {
  font-family: var(--bamboohr-font);
  color: var(--bamboohr-text);
}

/* ---- Toolbar (search + filters) ---- */
.bamboohr-jobs-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}

.bamboohr-jobs-search {
  flex: 1 1 240px;
  position: relative;
}

.bamboohr-search-input {
  width: 100%;
  padding: 10px 16px 10px 42px !important;
  border: 1px solid var(--bamboohr-border) !important;
  border-radius: var(--bamboohr-radius) !important;
  font-size: 14px !important;
  outline: none !important;
  transition: border-color var(--bamboohr-transition), box-shadow var(--bamboohr-transition);
  background: var(--bamboohr-bg) !important;
  color: var(--bamboohr-text) !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}
.bamboohr-search-input:focus {
  border-color: var(--bamboohr-primary) !important;
  box-shadow: 0 0 0 3px rgba(115, 170, 36, 0.15) !important;
}

/* Cancel button that browsers add to type="search" */
.bamboohr-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  cursor: pointer;
}

.bamboohr-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  opacity: 0.45;
  display: block;
  flex-shrink: 0;
}

.bamboohr-jobs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bamboohr-filter-select {
  padding: 10px 36px 10px 14px;
  border: 1px solid var(--bamboohr-border);
  border-radius: var(--bamboohr-radius);
  font-size: 14px;
  background: var(--bamboohr-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color var(--bamboohr-transition);
  color: var(--bamboohr-text);
}
.bamboohr-filter-select:focus {
  border-color: var(--bamboohr-primary);
  box-shadow: 0 0 0 3px rgba(115, 170, 36, 0.15);
}

/* ---- Results bar ---- */
.bamboohr-jobs-results-bar {
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--bamboohr-text-light);
}

/* =============================================================================
   Job List (list layout)
   ============================================================================= */
.bamboohr-jobs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =============================================================================
   Job List (grid layout)
   ============================================================================= */
.bamboohr-jobs-list--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* =============================================================================
   Job Card
   ============================================================================= */
.bamboohr-job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bamboohr-bg);
  border: 1px solid var(--bamboohr-border);
  border-radius: var(--bamboohr-radius);
  padding: 20px 24px;
  box-shadow: var(--bamboohr-shadow);
  transition: box-shadow var(--bamboohr-transition), border-color var(--bamboohr-transition);
}
.bamboohr-job-card:hover {
  box-shadow: var(--bamboohr-shadow-hover);
  border-color: var(--bamboohr-primary);
}

/* Grid card stacks vertically */
.bamboohr-jobs-list--grid .bamboohr-job-card {
  flex-direction: column;
  align-items: flex-start;
}
.bamboohr-jobs-list--grid .bamboohr-job-card__actions {
  width: 100%;
  justify-content: flex-start;
}

.bamboohr-job-card__body {
  flex: 1;
  min-width: 0;
}

.bamboohr-job-card__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.3;
}
.bamboohr-job-card__title a {
  color: var(--bamboohr-text);
  text-decoration: none;
  transition: color var(--bamboohr-transition);
}
.bamboohr-job-card__title a:hover {
  color: var(--bamboohr-primary);
}

.bamboohr-job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 13px;
  color: var(--bamboohr-text-light);
}

.bamboohr-job-card__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bamboohr-job-card__meta-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.bamboohr-job-card__actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  align-items: center;
}

/* =============================================================================
   Buttons
   ============================================================================= */
.bamboohr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--bamboohr-radius-sm);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background var(--bamboohr-transition), color var(--bamboohr-transition),
              border-color var(--bamboohr-transition), box-shadow var(--bamboohr-transition);
  white-space: nowrap;
}

.bamboohr-btn--apply {
  background: var(--bamboohr-cta-bg) !important;
  color: var(--bamboohr-cta-text) !important;
  border-color: var(--bamboohr-cta-bg) !important;
}
.bamboohr-btn--apply:hover,
.bamboohr-btn--apply:focus {
  background: var(--bamboohr-cta-bg-hover) !important;
  border-color: var(--bamboohr-cta-bg-hover) !important;
  color: var(--bamboohr-cta-text) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.bamboohr-btn--secondary {
  background: transparent !important;
  color: #555555 !important;
  border-color: #e0e0e0 !important;
}
.bamboohr-btn--secondary:hover,
.bamboohr-btn--secondary:focus {
  border-color: #73aa24 !important;
  color: #73aa24 !important;
  background: transparent !important;
}

.bamboohr-btn--lg {
  padding: 14px 28px;
  font-size: 16px;
}

.bamboohr-btn:disabled,
.bamboohr-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Button spinner */
.bamboohr-btn__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: bamboohr-spin 0.7s linear infinite;
}

@keyframes bamboohr-spin {
  to { transform: rotate(360deg); }
}

/* =============================================================================
   Pagination
   ============================================================================= */
.bamboohr-pagination-wrap {
  margin-top: 24px;
}

.bamboohr-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bamboohr-pagination__pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bamboohr-pagination__btn,
.bamboohr-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border: 1px solid var(--bamboohr-border);
  border-radius: 6px;
  background: #fff;
  color: var(--bamboohr-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.bamboohr-pagination__page {
  min-width: 38px;
  padding: 7px 10px;
}

.bamboohr-pagination__btn:hover:not(:disabled),
.bamboohr-pagination__page:hover:not(.is-active) {
  background: var(--bamboohr-primary-light, #f0f7e6);
  border-color: var(--bamboohr-primary);
  color: var(--bamboohr-primary);
}

.bamboohr-pagination__page.is-active {
  background: var(--bamboohr-primary);
  border-color: var(--bamboohr-primary);
  color: #fff;
  cursor: default;
  font-weight: 600;
}

.bamboohr-pagination__btn:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.bamboohr-pagination__ellipsis {
  padding: 0 2px;
  color: var(--bamboohr-text-light);
  font-size: 14px;
  line-height: 1;
  user-select: none;
}

/* =============================================================================
   No results
   ============================================================================= */
.bamboohr-no-results {
  text-align: center;
  color: var(--bamboohr-text-light);
  padding: 48px 24px;
  font-size: 16px;
  background: var(--bamboohr-bg);
  border: 1px solid var(--bamboohr-border);
  border-radius: var(--bamboohr-radius);
}

/* =============================================================================
   Single Job Detail
   ============================================================================= */
.bamboohr-job-single {
  max-width: 780px;
  font-family: var(--bamboohr-font);
  color: var(--bamboohr-text);
}

.bamboohr-job-single__header {
  margin-bottom: 36px;
}

.bamboohr-job-single__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.25;
}

.bamboohr-job-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 14px;
  color: var(--bamboohr-text-light);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bamboohr-border);
}

.bamboohr-job-single__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bamboohr-job-single__meta-item strong {
  color: var(--bamboohr-text);
  margin-right: 2px;
}

.bamboohr-job-single__apply-cta {
  margin-top: 20px;
}

.bamboohr-job-single__description {
  font-size: 16px;
  line-height: 1.75;
  color: var(--bamboohr-text);
}
.bamboohr-job-single__description h1,
.bamboohr-job-single__description h2,
.bamboohr-job-single__description h3 {
  margin-top: 28px;
  margin-bottom: 12px;
}
.bamboohr-job-single__description ul,
.bamboohr-job-single__description ol {
  padding-left: 24px;
}
.bamboohr-job-single__description li {
  margin-bottom: 6px;
}

.bamboohr-job-single__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--bamboohr-border);
}

/* =============================================================================
   Application Form
   ============================================================================= */
.bamboohr-apply-wrap {
  max-width: 680px;
  font-family: var(--bamboohr-font);
  color: var(--bamboohr-text);
}

.bamboohr-apply-header {
  margin-bottom: 28px;
}

.bamboohr-apply-header__title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
}

.bamboohr-apply-header__meta {
  font-size: 14px;
  color: var(--bamboohr-text-light);
  margin: 0;
}

/* Form message (success/error) */
.bamboohr-form-message {
  padding: 14px 18px;
  border-radius: var(--bamboohr-radius-sm);
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 500;
}
.bamboohr-form-message--success {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  color: #15803d;
}
.bamboohr-form-message--error {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #b91c1c;
}

.bamboohr-form {
  background: var(--bamboohr-bg);
}

.bamboohr-form__row {
  margin-bottom: 0;
}

.bamboohr-form__row--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bamboohr-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.bamboohr-form__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--bamboohr-text);
}

.bamboohr-form__required {
  color: #ef4444;
  margin-left: 2px;
}

.bamboohr-form__input,
.bamboohr-form__textarea {
  padding: 10px 14px;
  border: 1px solid var(--bamboohr-border);
  border-radius: var(--bamboohr-radius-sm);
  font-size: 15px;
  font-family: var(--bamboohr-font);
  color: var(--bamboohr-text);
  background: var(--bamboohr-bg);
  outline: none;
  transition: border-color var(--bamboohr-transition), box-shadow var(--bamboohr-transition);
  width: 100%;
  box-sizing: border-box;
}

.bamboohr-form__input:focus,
.bamboohr-form__textarea:focus {
  border-color: var(--bamboohr-primary);
  box-shadow: 0 0 0 3px rgba(115, 170, 36, 0.15);
}

.bamboohr-form__input.is-invalid,
.bamboohr-form__textarea.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.bamboohr-form__textarea {
  resize: vertical;
  min-height: 130px;
}

.bamboohr-form__error {
  font-size: 12px;
  color: #ef4444;
  display: none;
}
.bamboohr-form__error.is-visible {
  display: block;
}

/* ---- Form section labels ---- */
.bamboohr-form__section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bamboohr-text-light);
  padding: 12px 0 6px;
  margin: 8px 0 4px;
  border-top: 1px solid var(--bamboohr-border);
}
.bamboohr-form__section-label:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* ---- Select / dropdown ---- */
.bamboohr-form__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px !important;
  cursor: pointer;
}
.bamboohr-form__select:focus {
  border-color: var(--bamboohr-primary);
  box-shadow: 0 0 0 3px rgba(115, 170, 36, 0.15);
}

/* ---- reCAPTCHA field ---- */
.bamboohr-form__field--recaptcha {
  margin-top: 8px;
}
.bamboohr-form__field--recaptcha .g-recaptcha {
  transform-origin: left top;
  /* Scale down on narrow columns so it fits */
  transform: scale(0.88);
  margin-bottom: -8px; /* compensate scaled height */
}
@media (min-width: 901px) {
  /* Inside the 1/3 right column the widget is tight — scale a little */
  .bamboohr-expand__col--form .bamboohr-form__field--recaptcha .g-recaptcha {
    transform: scale(0.84);
  }
}

/* ---- File drop zone ---- */
.bamboohr-file-drop {
  position: relative;
  border: 2px dashed var(--bamboohr-border);
  border-radius: var(--bamboohr-radius);
  background: #fafafa;
  transition: border-color var(--bamboohr-transition), background var(--bamboohr-transition);
  cursor: pointer;
}

.bamboohr-file-drop:hover,
.bamboohr-file-drop.is-dragover {
  border-color: var(--bamboohr-primary);
  background: var(--bamboohr-primary-light);
}

.bamboohr-form__file {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.bamboohr-file-drop__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  gap: 8px;
}

.bamboohr-file-drop__label svg {
  color: var(--bamboohr-primary);
  opacity: 0.7;
}

.bamboohr-file-drop__text {
  font-size: 14px;
  color: var(--bamboohr-text-light);
}

.bamboohr-file-drop__browse {
  color: var(--bamboohr-primary);
  font-weight: 600;
  text-decoration: underline;
}

.bamboohr-file-drop__hint {
  font-size: 12px;
  color: #999;
}

.bamboohr-file-drop__selected {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--bamboohr-primary);
  padding: 0 20px 12px;
}

/* ---- Form footer ---- */
.bamboohr-form__footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.bamboohr-form__submit {
  align-self: flex-start;
}

.bamboohr-form__privacy {
  font-size: 12px;
  color: #999;
  margin: 0;
}

/* =============================================================================
   Job Item Wrapper (card + expand panel together)
   ============================================================================= */
.bamboohr-jobs-list {
  gap: 0;                  /* gap is now between .bamboohr-job-item elements */
}

.bamboohr-job-item {
  margin-bottom: 12px;
}

/* ---- Active card state when panel is open ---- */
.bamboohr-job-card.is-expanded {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: var(--bamboohr-primary);
  box-shadow: var(--bamboohr-shadow-hover);
  border-color: var(--bamboohr-primary);
}

/* Smooth chevron rotation */
.bamboohr-expand-chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

/* Title as button — explicit colors to override Elementor/theme button resets */
.bamboohr-jobs-wrap .bamboohr-job-card__title-btn,
.bamboohr-job-card__title-btn {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  font: inherit !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--bamboohr-title-color) !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: color 0.2s ease !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
.bamboohr-jobs-wrap .bamboohr-job-card__title-btn:hover {
  color: var(--bamboohr-title-hover-color) !important;
  background: none !important;
}
.bamboohr-jobs-wrap .bamboohr-job-card.is-expanded .bamboohr-job-card__title-btn {
  color: var(--bamboohr-title-expanded-color) !important;
  background: none !important;
}

/* =============================================================================
   Expand Panel
   ============================================================================= */
.bamboohr-job-expand {
  background: var(--bamboohr-expand-bg);
  border: 1px solid var(--bamboohr-primary);
  border-top: none;
  border-radius: 0 0 var(--bamboohr-radius) var(--bamboohr-radius);
  overflow: hidden;
}

/* ---- Loading state ---- */
.bamboohr-expand__loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 40px 32px;
  font-size: 14px;
  color: var(--bamboohr-text-light);
}

.bamboohr-expand__spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--bamboohr-border);
  border-top-color: var(--bamboohr-primary);
  border-radius: 50%;
  animation: bamboohr-spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ---- Inner wrapper ---- */
.bamboohr-expand__inner {
  position: relative;
  padding: 32px 32px 36px;
}

/* ---- Close button ---- */
.bamboohr-expand__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 1px solid var(--bamboohr-border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--bamboohr-text-light);
  transition: background var(--bamboohr-transition), color var(--bamboohr-transition), border-color var(--bamboohr-transition);
  flex-shrink: 0;
  padding: 0;
}
.bamboohr-expand__close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* ---- Two-column grid ---- */
.bamboohr-expand__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
  align-items: start;
}

/* ---- Description column ---- */
.bamboohr-expand__col--desc {
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-weight: 400;
  /* Height is set via JS (.syncDescHeight) to match the form column height.
     This allows the body to scroll when description is taller than the form. */
}

.bamboohr-expand__header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bamboohr-border);
  /* Don't shrink — stays pinned above the scrollable desc-body */
  flex-shrink: 0;
}

.bamboohr-expand__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.3;
  color: var(--bamboohr-text);
  padding-right: 40px; /* clear close button */
}

.bamboohr-expand__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bamboohr-expand__meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bamboohr-primary-light);
  color: var(--bamboohr-primary-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.bamboohr-expand__meta-chip svg {
  flex-shrink: 0;
}

.bamboohr-expand__desc-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--bamboohr-text);
  /* Fill the remaining height of the description column (= form column height).
     min-height: 0 is required for flex children to scroll correctly.
     Scrollbar only appears when description content is taller than the form. */
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
}
.bamboohr-expand__desc-body::-webkit-scrollbar { width: 4px; }
.bamboohr-expand__desc-body::-webkit-scrollbar-track { background: transparent; }
.bamboohr-expand__desc-body::-webkit-scrollbar-thumb { background: var(--bamboohr-border); border-radius: 2px; }

.bamboohr-expand__desc-body h1,
.bamboohr-expand__desc-body h2,
.bamboohr-expand__desc-body h3 { margin-top: 24px; margin-bottom: 10px; font-size: 16px; }
.bamboohr-expand__desc-body ul,
.bamboohr-expand__desc-body ol  { padding-left: 22px; margin: 10px 0; }
.bamboohr-expand__desc-body li  { margin-bottom: 5px; }
.bamboohr-expand__desc-body p   { margin: 0 0 12px; }

.bamboohr-expand__no-desc {
  color: var(--bamboohr-text-light);
  font-style: italic;
}

/* ---- Form column ---- */
.bamboohr-expand__col--form {
  background: var(--bamboohr-bg);
  border: 1px solid var(--bamboohr-border);
  border-radius: var(--bamboohr-radius);
  padding: 24px;
  position: sticky;
  top: 20px;
  align-self: start;
}

.bamboohr-expand__form-heading {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bamboohr-border);
  color: var(--bamboohr-text);
}

/* First section label sits right after the heading line — no second border needed */
.bamboohr-expand__form .bamboohr-form__section-label:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* Compact form spacing inside the 1/3 column */
.bamboohr-expand__form .bamboohr-form__field {
  margin-bottom: 14px;
}
.bamboohr-expand__form .bamboohr-form__input,
.bamboohr-expand__form .bamboohr-form__textarea {
  font-size: 14px;
  padding: 8px 12px;
}
.bamboohr-expand__form .bamboohr-form__textarea {
  min-height: 100px;
}
.bamboohr-expand__form .bamboohr-file-drop__label {
  padding: 18px 14px;
}
.bamboohr-expand__form .bamboohr-file-drop__label svg {
  width: 22px;
  height: 22px;
}
.bamboohr-expand__form .bamboohr-form__label {
  font-size: 13px;
}
.bamboohr-expand__form .bamboohr-form__row--two-col {
  grid-template-columns: 1fr;  /* stack in narrow column */
}

/* =============================================================================
   Elementor editor placeholder
   ============================================================================= */
.bamboohr-elementor-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  text-align: center;
  color: #999;
}

/* =============================================================================
   Responsive
   ============================================================================= */
@media (max-width: 900px) {
  /* Stack description + form vertically on tablet */
  .bamboohr-expand__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .bamboohr-expand__col--form {
    position: static;
  }
  /* On mobile, stack cols — description body height is unconstrained */
  .bamboohr-expand__col--desc {
    display: block; /* reset flex so body flows naturally on single-column layout */
  }
  .bamboohr-expand__desc-body {
    overflow-y: visible;
    padding-right: 0;
  }
  /* Re-enable 2-col rows inside form on wider column */
  .bamboohr-expand__form .bamboohr-form__row--two-col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .bamboohr-job-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .bamboohr-job-card__actions {
    flex-direction: row;
    width: 100%;
  }
  .bamboohr-job-card__actions .bamboohr-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
  .bamboohr-form__row--two-col {
    grid-template-columns: 1fr;
  }
  .bamboohr-jobs-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .bamboohr-jobs-search {
    flex: none;
    width: 100%;
  }
  .bamboohr-jobs-filters {
    width: 100%;
  }
  .bamboohr-filter-select {
    flex: 1;
    width: 100%;
  }
  .bamboohr-job-single__title {
    font-size: 22px;
  }
  .bamboohr-expand__inner {
    padding: 20px 16px 28px;
  }
  .bamboohr-expand__title {
    font-size: 18px;
  }
  .bamboohr-expand__form .bamboohr-form__row--two-col {
    grid-template-columns: 1fr;
  }
}
