.career-apply-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.career-apply-backdrop[hidden] {
  display: none !important;
}

.career-apply-modal {
  width: 40%;
  max-width: 40vw;
  height: 80vh;
  max-height: 80vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.career-apply-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.career-apply-close {
  border: 0;
  background: #f1f5f9;
  color: #334155;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.career-apply-close:hover {
  background: #e2e8f0;
}

.career-apply-modal-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  flex: 1;
}

@media (max-width: 992px) {
  .career-apply-modal {
    width: 70%;
    max-width: 70vw;
  }
}

.career-phone-field .form-text {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.career-phone-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.career-phone-country {
  position: relative;
  flex: 0 0 auto;
}

.career-phone-country-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #ced4da;
  border-right: 0;
  border-radius: 0.375rem 0 0 0.375rem;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.career-phone-country-btn:hover,
.career-phone-country-btn:focus {
  background: #f1f5f9;
  outline: none;
}

.career-phone-flag {
  font-size: 18px;
  line-height: 1;
}

.career-phone-dial {
  min-width: 42px;
}

.career-phone-number {
  border-radius: 0 0.375rem 0.375rem 0 !important;
  flex: 1 1 auto;
  min-width: 0;
}

.career-phone-country-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  width: min(320px, 88vw);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.career-phone-country-panel[hidden] {
  display: none !important;
}

.career-phone-search {
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  padding: 10px 12px;
  font-size: 14px;
}

.career-phone-search:focus {
  box-shadow: none;
}

.career-phone-country-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 240px;
  overflow-y: auto;
}

.career-phone-country-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #0f172a;
}

.career-phone-country-list li:hover,
.career-phone-country-list li[aria-selected="true"] {
  background: #eff6ff;
}

.career-phone-country-list li[hidden] {
  display: none;
}

.career-phone-country-name {
  font-weight: 500;
}

.career-phone-country-dial {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.is-invalid-group .career-phone-country-btn,
.is-invalid-group .career-phone-number.is-invalid {
  border-color: #dc3545;
}

@media (max-width: 640px) {
  .career-apply-modal {
    width: 94%;
    max-width: 94vw;
    height: 88vh;
    max-height: 88vh;
  }

  .career-phone-country-btn {
    padding: 0 10px;
    gap: 4px;
  }

  .career-phone-dial {
    min-width: 36px;
    font-size: 13px;
  }

  .career-phone-country-panel {
    width: min(300px, calc(100vw - 48px));
  }
}
