/* Plugin UI overrides to align with AXXiS palette */
/* Uses theme CSS variables declared in :root in style.css */

/* Buttons and primary actions */
body a.button,
body .button,
body .btn,
body .btn-primary,
body .job-application .application_button,
body .job-application input[type="submit"],
body .apply-button,
body .apply-now,
body .view-details,
body .job-actions a,
body .job-actions .button {
  background-color: var(--aw-cta) !important;
  border-color: var(--aw-cta) !important;
  color: #fff !important;
  box-shadow: none;
}
body a.button:hover,
body .button:hover,
body .btn:hover,
body .btn-primary:hover,
body .job-application .application_button:hover,
body .job-application input[type="submit"]:hover,
body .apply-button:hover,
body .apply-now:hover,
body .view-details:hover,
body .job-actions a:hover,
body .job-actions .button:hover {
  background-color: var(--aw-cta-hover) !important;
  border-color: var(--aw-cta-hover) !important;
}

/* Secondary/outline buttons */
body .button.secondary,
body .btn-outline,
body .btn-secondary {
  background: transparent !important;
  color: var(--aw-cta) !important;
  border: 1px solid var(--aw-cta) !important;
}
body .button.secondary:hover,
body .btn-outline:hover,
body .btn-secondary:hover {
  color: #fff !important;
  background: var(--aw-cta) !important;
}

/* Cards / panels (keep plugin layout, align radius and borders) */
body .job-card,
body .job_listing,
body .listing-item,
body .rtcl-listing-item,
body .wpjm-job,
body .job-item {
  border-radius: .6rem;
  border: 1px solid rgba(182,185,193,.35);
  background: #ffffff;
  color: #141831;
}

/* Headings inside listings adopt our foreground color slightly darkened for white cards */
body .job-card h1,
body .job-card h2,
body .job-card h3,
body .job_listing h1,
body .job_listing h2,
body .job_listing h3 {
  color: #141831; /* near our deep indigo but readable on white */
}

/* Accents / badges */
body .badge,
body .badge-primary,
body .job-type,
body .listing-badge {
  background: var(--aw-gold) !important;
  color: #1b1f3b !important;
  border-radius: .4rem;
}

/* Check/ok icons in benefits */
body .icon-check,
body .dashicons-yes,
body .fa-check,
body .ti-check {
  color: var(--aw-cta) !important;
}

/* Meta label color */
body .job-meta .label,
body .job-meta dt,
body .listing-meta .label {
  color: var(--aw-muted) !important;
}

/* Fine-tune spacing for action area */
body .job-actions { gap: .5rem; display: flex; flex-wrap: wrap; }

/* Fix white-on-white in filters/search bars inside listing UIs */
body .job_filters,
body .job-filters,
body .search_jobs,
body .job-search,
body .listing-filters,
body .rtcl-search-form,
body .rtcl-listing-search,
body .filters,
body .wpjm-filters {
  background: transparent !important;
  color: #141831 !important;
}

body .job_filters label,
body .job-filters label,
body .search_jobs label,
body .job-search label,
body .listing-filters label,
body .rtcl-search-form label,
body .filters label,
body .wpjm-filters label { color: #141831 !important; }

body .job_filters input[type="text"],
body .job_filters input[type="search"],
body .job_filters input[type="number"],
body .job_filters select,
body .job_filters textarea,
body .search_jobs input[type="text"],
body .search_jobs input[type="search"],
body .search_jobs select,
body .search_jobs textarea,
body .job-search input[type="text"],
body .job-search input[type="search"],
body .job-search select,
body .listing-filters input,
body .listing-filters select,
body .rtcl-search-form input,
body .rtcl-search-form select,
body .rtcl-listing-search input,
body .rtcl-listing-search select,
body .filters input,
body .filters select,
body .wpjm-filters input,
body .wpjm-filters select {
  background: #ffffff !important;
  color: #141831 !important;
  border-color: rgba(20,24,49,0.25) !important;
}
body .job_filters ::placeholder,
body .search_jobs ::placeholder,
body .job-search ::placeholder,
body .listing-filters ::placeholder,
body .rtcl-search-form ::placeholder,
body .filters ::placeholder,
body .wpjm-filters ::placeholder { color: #6b7280 !important; }

/* Ensure listing pages do not force a white page background */
body .job-listings,
body .job_listings,
body .job-archive,
body .listings-archive,
body .rtcl-listings,
body .rtcl {
  background: transparent !important;
}

/* Additional contrast improvements */
/* Ensure error states have sufficient contrast */
body .error,
body .field-error,
body .validation-error,
body .woocommerce-error,
body .woocommerce-message {
  color: #ff6b6b !important;
  font-weight: 600;
}

/* Ensure success states have sufficient contrast */
body .success,
body .notice-success,
body .woocommerce-success {
  color: #22c55e !important;
  font-weight: 600;
}

/* Improve focus states for accessibility */
body input:focus,
body select:focus,
body textarea:focus,
body button:focus,
body .button:focus,
body a:focus {
  outline: 2px solid var(--aw-gold) !important;
  outline-offset: 2px !important;
}

/* Ensure sufficient contrast for disabled states */
body input:disabled,
body select:disabled,
body textarea:disabled,
body button:disabled,
body .button:disabled {
  background-color: #f3f4f6 !important;
  color: #6b7280 !important;
  border-color: #d1d5db !important;
  cursor: not-allowed;
}
