/* =========================================================
   HUMANITEA JOBS — Frontend Styles v2.0
   SaaS style, mobile-first, !important guards vs WP theme
   ========================================================= */

/* ----------------------------------------------------------
   CSS Variables
   ---------------------------------------------------------- */
:root {
  --ht-green:       #7ac143 !important;
  --ht-dark:        #0e2219 !important;
  --ht-blue:        #1e5da8 !important;
  --ht-blue-hov:    #1a4f96 !important;
  --ht-white:       #ffffff !important;
  --ht-bg:          #f6f8fa !important;
  --ht-border:      #e5e7eb !important;
  --ht-text:        #111827 !important;
  --ht-muted:       #6b7280 !important;
  --ht-shadow-sm:   0 1px 3px rgba(0,0,0,.07), 0 8px 32px rgba(0,0,0,.05) !important;
  --ht-shadow-lg:   0 4px 12px rgba(0,0,0,.10), 0 24px 48px rgba(0,0,0,.07) !important;
  --ht-radius:      14px !important;
  --ht-transition:  .18s ease !important;
}

/* ----------------------------------------------------------
   Wrapper Reset
   ---------------------------------------------------------- */
.ht-jobs-container,
.ht-single-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  color: #111827 !important;
  line-height: 1.6 !important;
  box-sizing: border-box !important;
}

.ht-jobs-container *,
.ht-single-wrap *,
.ht-overlay * {
  box-sizing: border-box !important;
}

/* ----------------------------------------------------------
   Filters Bar
   ---------------------------------------------------------- */
.ht-filters {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.06) !important;
}

.ht-search-wrap {
  position: relative !important;
  margin-bottom: 14px !important;
}

#ht-search {
  width: 100% !important;
  padding: 10px 40px 10px 14px !important;
  font-size: 14px !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 10px !important;
  outline: none !important;
  background: #f9fafb !important;
  background-image: none !important;
  color: #374151 !important;
  transition: border-color .15s, box-shadow .15s !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

#ht-search:focus {
  border-color: #7ac143 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(122,193,67,.14) !important;
}

.ht-search-clear {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none !important;
  border: none !important;
  color: #9ca3af !important;
  cursor: pointer !important;
  font-size: 14px !important;
  padding: 0 4px !important;
  display: none !important;
  line-height: 1 !important;
}

.ht-filter-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: center !important;
}

/* native selects hidden — replaced by .ht-custom-select */
.ht-filter-row select {
  display: none !important;
}

/* ----------------------------------------------------------
   Custom searchable select
   ---------------------------------------------------------- */
.ht-custom-select {
  position: relative !important;
  flex: 1 !important;
  min-width: 160px !important;
  font-family: inherit !important;
}

.ht-cs-trigger {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  color: #374151 !important;
  background: #f9fafb !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  outline: none !important;
  text-align: left !important;
  transition: border-color .15s, background .15s !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.ht-cs-trigger:hover {
  border-color: #d1d5db !important;
}

.ht-custom-select.open .ht-cs-trigger,
.ht-cs-trigger:focus {
  border-color: #7ac143 !important;
  background: #fff !important;
}

.ht-cs-arrow {
  flex-shrink: 0 !important;
  width: 16px !important;
  height: 16px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  transition: transform .2s !important;
}

.ht-custom-select.open .ht-cs-arrow {
  transform: rotate(180deg) !important;
}

.ht-cs-dropdown {
  display: none !important;
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: 0 !important;
  background: #fff !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06) !important;
  z-index: 9999 !important;
  overflow: hidden !important;
  animation: htCsDrop .15s ease !important;
}

@keyframes htCsDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ht-custom-select.open .ht-cs-dropdown {
  display: block !important;
}

.ht-cs-search-wrap {
  padding: 10px 10px 8px !important;
  border-bottom: 1px solid #f3f4f6 !important;
  position: relative !important;
}

.ht-cs-search-wrap::before {
  content: '' !important;
  position: absolute !important;
  left: 20px !important;
  top: 50% !important;
  transform: translateY(-55%) !important;
  width: 14px !important;
  height: 14px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-4.35-4.35m0 0A7.5 7.5 0 1116.65 16.65z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  pointer-events: none !important;
}

.ht-cs-search {
  width: 100% !important;
  padding: 7px 10px 7px 30px !important;
  font-size: 13px !important;
  font-family: inherit !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 7px !important;
  outline: none !important;
  background: #f9fafb !important;
  color: #374151 !important;
  transition: border-color .15s !important;
}

.ht-cs-search:focus {
  border-color: #7ac143 !important;
  background: #fff !important;
}

.ht-cs-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 6px 0 !important;
  max-height: 220px !important;
  overflow-y: auto !important;
}

.ht-cs-list li {
  padding: 9px 16px !important;
  font-size: 14px !important;
  color: #374151 !important;
  cursor: pointer !important;
  transition: background .12s !important;
  border-radius: 0 !important;
  list-style: none !important;
}

.ht-cs-list li:hover {
  background: #f3f4f6 !important;
}

.ht-cs-list li.selected {
  background: #f0fce8 !important;
  color: #3d8c1a !important;
  font-weight: 600 !important;
}

.ht-cs-list li.ht-cs-hidden {
  display: none !important;
}

.ht-cs-empty {
  padding: 12px 16px !important;
  font-size: 13px !important;
  color: #9ca3af !important;
  text-align: center !important;
  display: none !important;
}

/* Toggle switch (filter) */
.ht-toggle-filter {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  color: #374151 !important;
  user-select: none !important;
  padding: 6px 0 !important;
  white-space: nowrap !important;
}

.ht-toggle-filter input[type="checkbox"] {
  display: none !important;
}

.ht-toggle-track {
  display: inline-flex !important;
  align-items: center !important;
  width: 40px !important;
  height: 22px !important;
  border-radius: 11px !important;
  background: #d1d5db !important;
  transition: background .2s !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

.ht-toggle-thumb {
  position: absolute !important;
  left: 3px !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.2) !important;
  transition: left .2s !important;
}

.ht-toggle-filter input:checked ~ .ht-toggle-track {
  background: #7ac143 !important;
}

.ht-toggle-filter input:checked ~ .ht-toggle-track .ht-toggle-thumb {
  left: 21px !important;
}

/* ----------------------------------------------------------
   Results bar
   ---------------------------------------------------------- */
.ht-results-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  font-size: 14px !important;
  color: #6b7280 !important;
  margin-bottom: 14px !important;
}

.ht-results-count {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

#ht-count {
  font-weight: 700 !important;
  color: #111827 !important;
}

.ht-reset-btn {
  background: none !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 5px 12px !important;
  font-size: 13px !important;
  color: #6b7280 !important;
  cursor: pointer !important;
  transition: all .15s !important;
}

.ht-reset-btn:hover {
  border-color: #d1d5db !important;
  color: #374151 !important;
}

/* ----------------------------------------------------------
   Job Cards List
   ---------------------------------------------------------- */
.ht-jobs-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.ht-job-card {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
  padding: 20px 22px !important;
  text-decoration: none !important;
  color: inherit !important;
  transition: box-shadow .18s, transform .18s, border-color .18s !important;
}

.ht-job-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.09), 0 1px 3px rgba(0,0,0,.06) !important;
  transform: translateY(-2px) !important;
  border-color: #d1d5db !important;
  text-decoration: none !important;
  color: inherit !important;
}

/* Logo */
.ht-card-logo {
  flex-shrink: 0 !important;
  width: 60px !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ht-card-logo img {
  width: 60px !important;
  height: 60px !important;
  object-fit: contain !important;
  border-radius: 10px !important;
  display: block !important;
}

.ht-card-logo.lg {
  width: 80px !important;
  height: 80px !important;
}

.ht-card-logo.lg img {
  width: 80px !important;
  height: 80px !important;
}

.ht-logo-ph {
  width: 60px !important;
  height: 60px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #0e2219, #1a4230) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #7ac143 !important;
  letter-spacing: -0.5px !important;
  text-transform: uppercase !important;
}

.ht-logo-ph.lg {
  width: 80px !important;
  height: 80px !important;
  font-size: 28px !important;
}

/* Card body */
.ht-card-body {
  flex: 1 !important;
  min-width: 0 !important;
}

.ht-card-title {
  margin: 0 0 4px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.ht-card-company {
  font-size: 14px !important;
  color: #6b7280 !important;
  margin-bottom: 8px !important;
}

.ht-card-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.ht-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  background: #f3f4f6 !important;
  color: #374151 !important;
  padding: 3px 10px !important;
  border-radius: 20px !important;
  line-height: 1.4 !important;
}

.ht-tag-green {
  background: #f0fce8 !important;
  color: #3d8c1a !important;
}

.ht-tag-urgent {
  background: #fff4ed !important;
  color: #c2410c !important;
}

.ht-tag-expired {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

/* Card aside */
.ht-card-aside {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  min-width: 130px !important;
}

.ht-card-salary {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1e5da8 !important;
  text-align: right !important;
}

.ht-card-deadline {
  text-align: right !important;
}

.ht-badge {
  display: inline-block !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  background: #f0fce8 !important;
  color: #3d8c1a !important;
  padding: 2px 9px !important;
  border-radius: 20px !important;
  margin-bottom: 2px !important;
}

.ht-badge-urgent {
  background: #fff4ed !important;
  color: #c2410c !important;
}

.ht-badge-expired {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

.ht-deadline-date {
  font-size: 12px !important;
  color: #9ca3af !important;
}

.ht-card-arrow {
  color: #d1d5db !important;
  display: flex !important;
  transition: color .15s, transform .15s !important;
}

.ht-job-card:hover .ht-card-arrow {
  color: #7ac143 !important;
  transform: translateX(3px) !important;
}

/* Empty state */
.ht-empty {
  text-align: center !important;
  padding: 60px 20px !important;
}

.ht-empty-icon {
  font-size: 48px !important;
  margin-bottom: 14px !important;
}

.ht-empty h3 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 0 6px !important;
}

.ht-empty p {
  color: #6b7280 !important;
  font-size: 15px !important;
  margin: 0 0 20px !important;
}

.ht-btn-outline {
  display: inline-block !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 10px !important;
  padding: 10px 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  background: none !important;
  cursor: pointer !important;
  transition: border-color .15s, color .15s !important;
}

.ht-btn-outline:hover {
  border-color: #7ac143 !important;
  color: #3d8c1a !important;
}

/* ----------------------------------------------------------
   Single Job — Header
   ---------------------------------------------------------- */
/* Back navigation */
.ht-single-back {
  margin-bottom: 20px !important;
}

.ht-back-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
  text-decoration: none !important;
  padding: 8px 14px !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 9px !important;
  background: #fff !important;
  transition: color .15s, border-color .15s !important;
}

.ht-back-btn:hover {
  color: #111827 !important;
  border-color: #d1d5db !important;
  text-decoration: none !important;
}

.ht-single-header {
  display: flex !important;
  align-items: flex-start !important;
  gap: 24px !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  padding: 28px !important;
  margin-bottom: 28px !important;
}

.ht-single-header-info {
  flex: 1 !important;
  min-width: 0 !important;
}

.ht-single-title {
  margin: 0 0 6px !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #111827 !important;
  line-height: 1.25 !important;
}

.ht-single-company {
  font-size: 16px !important;
  color: #6b7280 !important;
  margin-bottom: 12px !important;
}

.ht-single-salary {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #1e5da8 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* ----------------------------------------------------------
   Single Job — Layout (2-col)
   ---------------------------------------------------------- */
.ht-single-layout {
  display: flex !important;
  gap: 28px !important;
  align-items: flex-start !important;
}

.ht-single-main {
  flex: 1 !important;
  min-width: 0 !important;
}

.ht-section-block {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
  padding: 24px !important;
  margin-bottom: 16px !important;
}

.ht-section-heading {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 0 14px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #f3f4f6 !important;
}

.ht-section-block .ht-section-heading + .ht-section-text + .ht-section-heading,
.ht-section-block .ht-section-text + .ht-section-heading {
  margin-top: 28px !important;
}

.ht-section-text {
  font-size: 15px !important;
  color: #374151 !important;
  line-height: 1.75 !important;
  margin: 0 !important;
}

/* ----------------------------------------------------------
   Single Job — Sidebar
   ---------------------------------------------------------- */
.ht-single-sidebar {
  width: 300px !important;
  flex-shrink: 0 !important;
  position: sticky !important;
  top: 24px !important;
}

.ht-sidebar-card {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
  padding: 24px !important;
  margin-bottom: 16px !important;
}

.ht-sidebar-heading {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 0 18px !important;
}

.ht-sidebar-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid #f3f4f6 !important;
}

.ht-sidebar-row:last-of-type {
  border-bottom: none !important;
}

.ht-sidebar-lbl {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #9ca3af !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}

.ht-sidebar-val {
  font-size: 14px !important;
  color: #111827 !important;
  font-weight: 500 !important;
}

.ht-countdown-box {
  background: #f0fce8 !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  text-align: center !important;
  font-size: 14px !important;
  color: #3d8c1a !important;
  margin: 16px 0 !important;
}

.ht-countdown-box.urgent {
  background: #fff4ed !important;
  color: #c2410c !important;
}

.ht-countdown-box.expired {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

.ht-apply-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  background: #1e5da8 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 20px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background .18s, transform .15s !important;
  margin-top: 8px !important;
}

.ht-apply-btn:hover {
  background: #1a4f96 !important;
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
}



/* ----------------------------------------------------------
   CV Upload Modal
   ---------------------------------------------------------- */
.ht-overlay {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0,0,0,.55) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 99999 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
}

.ht-overlay.active {
  display: flex !important;
}

.ht-modal {
  background: #fff !important;
  border-radius: 18px !important;
  width: 100% !important;
  max-width: 620px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  padding: 36px !important;
  position: relative !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.2) !important;
  animation: htSlideUp .22s ease !important;
}

@keyframes htSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.ht-modal-close {
  position: absolute !important;
  top: 16px !important;
  right: 18px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  border: 1px solid #e5e7eb !important;
  background: #f9fafb !important;
  color: #374151 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background .15s !important;
}

.ht-modal-close:hover {
  background: #f3f4f6 !important;
}

.ht-modal-head {
  margin-bottom: 24px !important;
  padding-right: 40px !important;
}

.ht-modal-head h2 {
  font-size: 22px !important;
  font-weight: 800 !important;
  margin: 0 0 4px !important;
  color: #111827 !important;
}

.ht-modal-head p {
  font-size: 14px !important;
  color: #6b7280 !important;
  margin: 0 !important;
}

/* Form layout */
.ht-form-row {
  display: flex !important;
  gap: 16px !important;
  margin-bottom: 16px !important;
}

.ht-form-row-3 {
  display: flex !important;
  gap: 16px !important;
  margin-bottom: 16px !important;
}

.ht-form-row-3 .ht-form-field {
  flex: 1 !important;
  min-width: 0 !important;
  margin-bottom: 0 !important;
}

.ht-form-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  flex: 1 !important;
  margin-bottom: 16px !important;
}

.ht-form-field label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #374151 !important;
}

.ht-form-field .req {
  color: #dc2626 !important;
  margin-left: 2px !important;
}

.ht-form-field input[type="text"],
.ht-form-field input[type="email"],
.ht-form-field input[type="tel"],
.ht-form-field input[type="url"],
.ht-form-field textarea {
  width: 100% !important;
  padding: 11px 14px !important;
  font-size: 14px !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 10px !important;
  background: #f9fafb !important;
  color: #111827 !important;
  outline: none !important;
  transition: border-color .15s, background .15s !important;
  font-family: inherit !important;
  resize: vertical !important;
}

.ht-form-field input:focus,
.ht-form-field textarea:focus {
  border-color: #7ac143 !important;
  background: #fff !important;
}

/* File drop zone */
.ht-file-zone {
  border: 2px dashed #d1d5db !important;
  border-radius: 12px !important;
  background: #f9fafb !important;
  padding: 28px 20px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: border-color .15s, background .15s !important;
}

.ht-file-zone:hover,
.ht-file-zone.drag-over {
  border-color: #7ac143 !important;
  background: #f6ffe9 !important;
}

.ht-file-zone svg {
  color: #9ca3af !important;
  margin-bottom: 8px !important;
}

.ht-file-zone p {
  font-size: 14px !important;
  color: #374151 !important;
  margin: 0 0 4px !important;
}

.ht-file-link {
  color: #1e5da8 !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: underline !important;
}

.ht-file-hint {
  font-size: 12px !important;
  color: #9ca3af !important;
  margin: 0 !important;
}

.ht-file-name {
  margin-top: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #3d8c1a !important;
  word-break: break-all !important;
}

#cv_file {
  display: none !important;
}

.ht-form-actions {
  margin-top: 6px !important;
}

/* Status message */
.ht-form-status {
  margin-top: 14px !important;
  font-size: 14px !important;
  border-radius: 10px !important;
  padding: 0 !important;
  text-align: center !important;
}

.ht-form-status.success {
  background: #f0fce8 !important;
  color: #3d8c1a !important;
  padding: 14px 18px !important;
  font-weight: 600 !important;
}

.ht-form-status.error {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  padding: 14px 18px !important;
  font-weight: 600 !important;
}

/* Loading state */
.ht-apply-btn.loading {
  opacity: .7 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.ht-apply-btn.loading::after {
  content: '' !important;
  display: inline-block !important;
  width: 14px !important;
  height: 14px !important;
  border: 2px solid rgba(255,255,255,.4) !important;
  border-top-color: #fff !important;
  border-radius: 50% !important;
  animation: htSpin .7s linear infinite !important;
  margin-left: 8px !important;
}

@keyframes htSpin {
  to { transform: rotate(360deg); }
}

/* ----------------------------------------------------------
   RESPONSIVE — Tablet
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .ht-filters {
    padding: 16px !important;
  }

  .ht-filter-row {
    flex-direction: column !important;
  }

  .ht-filter-row select {
    min-width: unset !important;
    width: 100% !important;
  }

  .ht-job-card {
    flex-wrap: wrap !important;
    gap: 14px !important;
    padding: 16px !important;
  }

  .ht-card-aside {
    width: 100% !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-width: unset !important;
  }

  .ht-card-arrow {
    display: none !important;
  }

  .ht-single-header {
    flex-wrap: wrap !important;
    padding: 20px !important;
  }

  .ht-single-title {
    font-size: 20px !important;
  }

  .ht-single-salary {
    width: 100% !important;
    font-size: 18px !important;
  }

  .ht-single-layout {
    flex-direction: column !important;
  }

  .ht-single-sidebar {
    width: 100% !important;
    position: static !important;
  }

  .ht-form-row,
  .ht-form-row-3 {
    flex-direction: column !important;
    gap: 0 !important;
  }

  .ht-modal {
    padding: 24px 20px !important;
    border-radius: 16px 16px 0 0 !important;
    max-height: 95vh !important;
  }

  .ht-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
}

/* ----------------------------------------------------------
   RESPONSIVE — Mobile
   ---------------------------------------------------------- */
@media (max-width: 480px) {
  .ht-card-title {
    font-size: 15px !important;
    white-space: normal !important;
  }

  .ht-card-logo {
    width: 46px !important;
    height: 46px !important;
  }

  .ht-card-logo img,
  .ht-logo-ph {
    width: 46px !important;
    height: 46px !important;
    font-size: 18px !important;
  }

  .ht-single-header {
    gap: 16px !important;
  }

  .ht-section-block {
    padding: 18px !important;
  }

  .ht-sidebar-card {
    padding: 18px !important;
  }
}
