/* ApplicationFormModal styles (colocated with the component) */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #17222d55;
  z-index: 25;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal {
  width: min(560px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 40px #17222d22;
  max-height: 90vh;
  overflow: auto;
}

.modal-sm {
  width: min(440px, 100%);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
}

.modal-head p {
  color: #87949d;
  font-size: 11px;
  margin: 0 0 5px;
}

.modal-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.4px;
}

.modal-body {
  padding: 22px 24px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 11px;
  font-weight: 600;
  color: #53636e;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 13px;
  background: #fff;
  color: var(--foreground);
  outline: 0;
}

.field input:focus,
.field select:focus {
  border-color: #236bcc;
  box-shadow: 0 0 0 3px #236bcc1a;
}

.err-msg {
  color: #c25b5b;
  font-size: 11px;
  margin-top: 2px;
}

.btn {
  border: 1px solid var(--border);
  background: #fff;
  color: #53636e;
  border-radius: 7px;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 600;
}

.btn.primary {
  border: 0;
  background: #236bcc;
  color: #fff;
}

.btn.danger {
  background: #d9534f;
  border-color: #d9534f;
  color: #fff;
}

.btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.apply-job-info {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.apply-job-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--foreground);
}

.apply-job-location {
  font-size: 12px;
  color: #87949d;
  margin-top: 3px;
}

.apply-empty {
  text-align: center;
  padding: 24px 16px;
  color: #87949d;
}

.apply-empty svg {
  margin-bottom: 8px;
}

.apply-empty p {
  font-size: 12px;
}

.apply-applicant-list {
  display: grid;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
}

.apply-applicant-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.apply-applicant-item:hover {
  border-color: #236bcc;
  background: #f8fafc;
}

.apply-applicant-item.selected {
  border-color: #236bcc;
  background: #eef4ff;
  box-shadow: 0 0 0 2px #236bcc22;
}

.apply-applicant-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #d9e8fa;
  color: #246bce;
  font-weight: 700;
  font-size: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.apply-applicant-info {
  min-width: 0;
  flex: 1;
}

.apply-applicant-info b {
  display: block;
  font-size: 12px;
  color: var(--foreground);
}

.apply-applicant-info small {
  display: block;
  font-size: 11px;
  color: #87949d;
  margin-top: 2px;
}

.apply-applicant-cv {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #87949d;
  flex-shrink: 0;
}

.apply-applicant-cv svg {
  color: #246bcc;
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
