/* —— Page title —— */
.jobs-page-title {
  margin: 0 0 1.25rem;
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

@media (min-width: 768px) {
  .jobs-page-title {
    font-size: 2rem;
  }
}

/* —— When tabs —— */
.when-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.when-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.when-tabs a:hover {
  border-color: #14aeee;
  color: #14aeee;
}

.when-tabs a[aria-current="page"] {
  background: #14aeee;
  border-color: #14aeee;
  color: #fff;
}

/* —— Filters —— */
.filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
  margin-bottom: 1.75rem;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  box-shadow: 0 8px 20px rgba(26, 19, 59, 0.05);
}

@media (min-width: 720px) {
  .filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .filters {
    grid-template-columns: 1.1fr 1.1fr 1.2fr 0.85fr auto;
  }
}

.filters .filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
}

.filters .filter-field label,
.filters label {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  min-height: 1.2em;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.filters select,
.filters input[type="search"],
.filters input[type="number"],
.filters input[type="text"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: #faf9fc;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.25;
}

.filters select:focus,
.filters input:focus {
  outline: none;
  border-color: #14aeee;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 174, 238, 0.15);
}

.filters .filter-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  /* Match label row so button lines up with inputs */
  padding-top: calc(0.8rem * 1.2 + 0.35rem);
}

.filters button[type="submit"] {
  width: 100%;
  margin: 0;
  min-height: 2.75rem;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  border: 2px solid #14aeee;
  background: #14aeee;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.filters button[type="submit"]:hover {
  background: #0f9ad4;
  border-color: #0f9ad4;
}

.autocomplete {
  position: relative;
}

.autocomplete-results {
  position: absolute;
  z-index: 20;
  width: 100%;
  margin: 0.25rem 0 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 12px 28px rgba(26, 19, 59, 0.12);
  max-height: 16rem;
  overflow-y: auto;
}

.autocomplete-results li {
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ink);
}

.autocomplete-results li:hover {
  background: #e8f7fd;
  color: #14aeee;
}

/* —— Job grid —— */
.job-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .job-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* —— Job card —— */
.job-card {
  position: relative;
  margin: 0;
  height: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0;
  box-shadow: 0 10px 24px rgba(26, 19, 59, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(26, 19, 59, 0.12);
  border-color: rgba(20, 174, 238, 0.45);
}

.job-card--featured {
  border-color: rgba(240, 162, 2, 0.55);
  box-shadow: 0 10px 28px rgba(240, 162, 2, 0.18);
}

.job-card--featured:hover {
  border-color: #f0a202;
}

.job-card > a {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
  padding: 1.15rem 1.25rem 1.2rem;
  text-decoration: none;
  color: inherit;
}

.job-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.job-card__poster {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.job-card__poster img,
.poster-avatar {
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  width: 40px;
  height: 40px;
  background: #f0eef6;
}

.job-card__poster span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-card h2,
.job-card__title {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.job-card__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.job-card__footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.job-card__pay {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.job-card__pay small {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.job-card__openings {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #14aeee;
  white-space: nowrap;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.badge--featured {
  background: #f0a202;
  color: #1b1b1b;
  flex-shrink: 0;
}

.badge--state {
  background: #ebe7f4;
  color: var(--ink);
}

/* —— Nearby jobs —— */
.nearby-jobs {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.nearby-jobs__title {
  margin: 0 0 0.4rem;
  font-family: "Poppins", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.nearby-jobs__note {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* —— Empty state —— */
.empty-state {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 0.9rem;
  color: var(--muted);
}

.empty-state p {
  margin: 0 0 0.75rem;
}

.empty-state p:last-child {
  margin-bottom: 0;
}

/* —— Pagination —— */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 2px solid #14aeee;
  color: #14aeee;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
}

.pagination a:hover {
  background: #14aeee;
  color: #fff;
}

.pagination span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* —— Job detail —— */
.job-detail {
  max-width: 44rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem 1.35rem 1.75rem;
  box-shadow: 0 12px 28px rgba(26, 19, 59, 0.08);
}

@media (min-width: 768px) {
  .job-detail {
    padding: 2rem 2.25rem 2.25rem;
  }
}

.job-detail__badge {
  margin-bottom: 0.75rem;
}

.job-detail__title {
  margin: 0 0 0.65rem;
  font-family: "Poppins", sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.job-detail__meta {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.job-detail__when {
  margin: 0.75rem 0 0;
  font-size: 1.05rem;
  color: var(--ink);
}

.job-detail__pay-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin: 1.15rem 0;
  padding: 1rem 1.1rem;
  background: #f4f8fc;
  border-radius: 0.75rem;
  border: 1px solid #d6ebf5;
}

.job-detail__pay {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
}

.job-detail__pay-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.job-detail__openings {
  margin: 0 0 1.25rem;
  font-weight: 600;
  color: #14aeee;
}

.job-detail__body {
  margin: 0 0 1.25rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

.job-detail__section {
  margin: 0 0 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #eeeaf5;
}

.job-detail__section h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.job-detail__section p {
  margin: 0;
  line-height: 1.6;
  color: var(--ink);
}

.job-detail__actions {
  margin: 1.5rem 0 1.25rem;
}

.interest-form button[type="submit"] {
  width: 100%;
  max-width: 22rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid #14aeee;
  background: #14aeee;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.interest-form button[type="submit"]:hover {
  background: #0f9ad4;
  border-color: #0f9ad4;
}

.job-detail__poster {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eeeaf5;
  font-weight: 600;
  color: var(--ink);
}

.job-detail__poster img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0eef6;
}

.job-detail .report {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.job-detail .report summary {
  cursor: pointer;
  font-weight: 600;
}

.job-detail .report form {
  margin-top: 0.75rem;
}

.job-detail .report button.secondary {
  background: transparent;
  color: #14aeee;
  border: 2px solid #14aeee;
  margin-top: 0.5rem;
}

.job-detail--state .job-detail__body {
  color: var(--muted);
}

.job-detail--state .job-detail__actions a {
  display: inline-block;
  margin-top: 0.5rem;
}

/* —— Static pages (como funciona, regras, destaques) —— */
.static-page {
  max-width: 52rem;
  margin: 0 auto;
}

.static-page--narrow {
  max-width: 40rem;
}

.static-page__lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.static-page__cta {
  margin: 1.75rem 0 0;
}

.static-page__cta a[role="button"] {
  display: inline-block;
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.steps-list__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 0;
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  box-shadow: 0 8px 20px rgba(26, 19, 59, 0.05);
}

.steps-list__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #14aeee;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.steps-list__body {
  flex: 1;
  min-width: 0;
  padding-top: 0.25rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}

.steps-list__body strong {
  font-weight: 700;
}

.content-card {
  margin: 0;
  padding: 1.5rem 1.35rem 1.6rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(26, 19, 59, 0.07);
}

@media (min-width: 768px) {
  .content-card {
    padding: 1.75rem 2rem;
  }
}

.content-card p {
  margin: 0 0 0.9rem;
  line-height: 1.6;
  color: var(--ink);
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card__highlight {
  padding: 0.85rem 1rem;
  margin-bottom: 1.15rem !important;
  background: #f4f8fc;
  border: 1px solid #d6ebf5;
  border-radius: 0.65rem;
  color: var(--ink);
}

.content-card__list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--ink);
}

.content-card__list li {
  margin-bottom: 0.45rem;
  line-height: 1.5;
}

.content-card__list li:last-child {
  margin-bottom: 0;
}

.content-card--notes {
  margin-top: 1.5rem;
}

.content-card--notes .content-card__list {
  margin-top: 0;
}

/* —— Pricing (destaques) —— */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0 0 0.25rem;
}

@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-card {
  margin: 0;
  padding: 1.35rem 1.25rem 1.4rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  box-shadow: 0 10px 24px rgba(26, 19, 59, 0.06);
  text-align: center;
}

.pricing-card--featured {
  border-color: rgba(240, 162, 2, 0.55);
  box-shadow: 0 10px 28px rgba(240, 162, 2, 0.16);
}

.pricing-card__name {
  margin: 0 0 0.65rem;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.pricing-card__price {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.pricing-card__price span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
}

.pricing-card__note {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
}
