/* TDP Jobs — Careers & Applications (uses theme CSS variables) */

.tdp-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.tdp-job-card {
  background: var(--card, #fff);
  border: 1px solid var(--hairline, #E5E3DC);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tdp-job-card h2 {
  font-size: 24px;
  margin: 0;
}

.tdp-job-card h2 a {
  color: var(--heading, #101210);
  text-decoration: none;
}

.tdp-job-card h2 a:hover {
  color: var(--brand, #016C5A);
}

.tdp-job-excerpt {
  color: var(--text, #3E443E);
  margin: 0;
}

.tdp-apply-by {
  color: var(--muted, #8A8F88);
  font-size: 14px;
  margin: 0;
}

.tdp-job-cta {
  margin: auto 0 0;
}

.tdp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tdp-pill {
  background: var(--pill, #EFF3F5);
  color: var(--heading, #101210);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.tdp-pill-brand {
  background: var(--brand, #016C5A);
  color: #fff;
}

.tdp-btn {
  display: inline-block;
  background: var(--brand, #016C5A);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}

.tdp-btn:hover {
  background: var(--dark, #23231D);
  color: #fff;
}

.tdp-empty {
  background: var(--card, #fff);
  border: 1px solid var(--hairline, #E5E3DC);
  border-radius: 18px;
  padding: 36px;
  text-align: center;
}

/* Apply form */
.tdp-apply {
  margin-top: 48px;
  background: var(--card, #fff);
  border: 1px solid var(--hairline, #E5E3DC);
  border-radius: 18px;
  padding: 32px;
}

.tdp-apply h2 {
  margin-top: 0;
}

.tdp-apply-form .tdp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.tdp-field {
  margin-bottom: 18px;
}

.tdp-field label {
  display: block;
  font-weight: 600;
  color: var(--heading, #101210);
  margin-bottom: 6px;
}

.tdp-field .req {
  color: #B3261E;
}

.tdp-field .opt {
  color: var(--muted, #8A8F88);
  font-weight: 400;
  font-size: 14px;
}

.tdp-field input[type="text"],
.tdp-field input[type="email"],
.tdp-field input[type="tel"],
.tdp-field input[type="url"],
.tdp-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--hairline, #E5E3DC);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: var(--bg, #F8F7F4);
  color: var(--text, #3E443E);
}

.tdp-field input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px dashed var(--hairline, #E5E3DC);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: var(--bg-soft, #F3F1EC);
}

.tdp-field input:focus,
.tdp-field textarea:focus {
  outline: 2px solid var(--brand, #016C5A);
  outline-offset: 1px;
}

/* Phone field — flag + dial-code selector (owner reference style) */
.tdp-phone {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--hairline, #E5E3DC);
  border-radius: 12px;
}

.tdp-phone:focus-within {
  outline: 2px solid var(--brand, #016C5A);
  outline-offset: 1px;
}

.tdp-phone-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  border-right: 1px solid var(--hairline, #E5E3DC);
  border-radius: 12px 0 0 12px;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
  color: var(--text, #3E443E);
  cursor: pointer;
}

.tdp-phone-btn:hover {
  background: var(--bg-soft, #F3F1EC);
}

.tdp-phone-flag {
  display: inline-flex;
  flex-shrink: 0;
}

.tdp-phone-flag svg {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  display: block;
}

.tdp-phone-code {
  color: var(--muted, #8A8F88);
}

.tdp-phone-chev {
  width: 14px;
  height: 14px;
  color: #9AA39C;
  flex-shrink: 0;
}

.tdp-field .tdp-phone input[type="tel"] {
  flex: 1;
  min-width: 0;
  width: auto;
  border: none;
  background: transparent;
  border-radius: 0 12px 12px 0;
  padding: 12px;
  outline: none;
}

.tdp-phone-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  width: 100%;
  box-sizing: border-box;
  max-height: 264px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--hairline, #E5E3DC);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16, 18, 16, 0.14);
}

.tdp-phone-opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text, #3E443E);
}

.tdp-phone-opt-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tdp-phone-opt .tdp-phone-flag svg {
  width: 20px;
  height: 14px;
}

.tdp-phone-opt:hover,
.tdp-phone-opt.is-selected {
  background: var(--bg-soft, #F3F1EC);
}

.tdp-phone-opt-code {
  color: var(--muted, #8A8F88);
}

.tdp-privacy {
  color: var(--muted, #8A8F88);
  font-size: 14px;
}

.tdp-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tdp-msg {
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 16px;
}

.tdp-msg-success {
  background: var(--pill-mint, #D8F3E4);
  border: 1px solid var(--brand, #016C5A);
  color: var(--heading, #101210);
}

.tdp-msg-error {
  background: #FDECEC;
  border: 1px solid #F3B4B4;
  color: #7A1F1A;
}

@media (max-width: 640px) {
  .tdp-apply-form .tdp-row {
    grid-template-columns: 1fr;
  }
  .tdp-apply {
    padding: 22px;
  }
}
